LegalTech Logo

LegalTech

← Back to blog

Published on by Miguel Gonzalez Herrera

Portugal’s Tribunal Constitucional publishes all its acórdãos since 1983 on its website. Its search works, but to see what was decided you have to open each ruling and scroll to the end. In this guide you will connect the legaltech/tribunal-constitucional-pt connector to Claude or ChatGPT so you can search those rulings and get their operative part directly, asking in English.

✅ Why this instead of just asking the AI: if you ask Claude or ChatGPT about case law from memory, it may give you a convincing answer with made-up decisions. With the connector, the AI doesn’t answer from memory: it goes to the official source, searches it and brings back real decisions with their links so you can check them.

⚖️ What does the legaltech/tribunal-constitucional-pt connector cover?

The legaltech/tribunal-constitucional-pt connector queries the Court’s official database and returns:

🔌 How to add Apify to Claude (5 minutes, first time only)

You don’t need to know how to code. You will copy one address and paste it into Claude’s settings. You do it once; after that you just ask your questions.

1. Create your free Apify account. Apify is the service that searches the official source for you. Sign up (you can use your Google account) and stay logged in in your browser. The free plan is enough to try it.

Create a free Apify account

2. Open Claude’s connectors.

3. Click “Add custom connector”. On the phone it is under the + in the top-right corner.

4. Fill in the form and click “Add”. There are only two fields:

https://mcp.apify.com/?tools=actors,docs,runs,storage,tasks,legaltech/tribunal-constitucional-pt

Leave the other fields (the “OAuth” ones) empty.

5. Click “Connect”. An Apify window opens: click Allow and you will be back in Claude with the connector ready.

6. Try it. Open a new chat and paste the first prompt from the example below. The first time, Claude will ask for permission to use Apify: click Allow.

💡 Already have Apify in Claude? Don’t install it again: start your question with “Use the connector legaltech/tribunal-constitucional-pt” and Claude will run it.

If you get stuck, the installation guide has a screenshot of every step. Using ChatGPT? The steps are different: follow the ChatGPT guide.

🧪 Worked example: euthanasia in preventive review

Portugal’s medically assisted death law went before the Constitutional Court several times before it was enacted, at the request of the President of the Republic. Let’s ask for the preventive-review rulings:

Use the connector legaltech/tribunal-constitucional-pt and find me the plenary rulings in preventive review on euthanasia since 2021

Claude translates the query into Portuguese and applies the filters:

{
  "searchTerms": ["eutanásia"],
  "species": "Preventivo",
  "section": "plenario",
  "dateFrom": "2021-01-01",
  "maxResults": 4,
  "includeDecision": true
}

Result of a real run:

RulingDateReporting judgeSubjectDecision
123/202115 Mar 2021Pedro MacheteDecree 109/XIV of the Assembleia da RepúblicaArt. 2(1) unconstitutional and, as a result, arts. 4, 5, 7 and 27
5/202330 Jan 2023Maria Benedita UrbanoDecree 23/XV of the Assembleia da RepúblicaArt. 2(f) read with art. 3(1) unconstitutional and, as a result, arts. 5, 6 and 7 and part of art. 28; the other provisions not unconstitutional

The connector extracts the operative part of each ruling, so the common thread is clear at once: in neither case does the Court strike down euthanasia as such, but the lack of determinacy of the law (arts. 2 and 165(1)(b) of the Constitution), by reference to the inviolability of human life in art. 24(1). In 2021 the problem was the notion of “lesão definitiva de gravidade extrema”; in 2023, the definition of “sofrimento de grande intensidade”. Both rulings carry many separate opinions, which the connector returns if you ask for the full text.

You can carry on:

💡 More prompt ideas

✅ Good practice

If you have questions or get stuck, write to us at legaltechnologybootcamp@gmail.com.

Written by Miguel Gonzalez Herrera

← Back to blog
Sources from: