tc_search
Pack: es-tc-case-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/tc_search for the schema, then POST the same URL with its arguments for the data.
Search the case law of the Spanish Tribunal Constitucional (sentencias, autos, declaraciones) in its own jurisprudence database. Free text over the full text of the resolutions, with optional filters for resolution type, year and number. Returns, for each hit: type, number, year, date, BOE reference, chamber, process type, descriptive synthesis, ECLI and the official URL of the resolution; 10 hits per page and the total hit count. A search with no hits returns found: false with the reason; when the Tribunal has no exact match and offers near matches, approximate_match is true.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Free text in Spanish, searched across the resolution text (e.g. “libertad de expresión”). Optional when year or number is given. |
type | string | no | Limit to one resolution type. Default: all three. |
year | number | no | Year of the resolution (e.g. 2023). |
number | number | no | Resolution number within its year and type (e.g. 52 for “Sentencia 52/2026”). |
page | number | no | Results page, 10 hits each. Default 1. |
Example call
Arguments
{
"query": "libertad de expresión",
"type": "sentencia",
"year": 2026
}
curl
curl -X POST https://gateway.pipeworx.io/es-tc-case-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tc_search","arguments":{"query":"libertad de expresión","type":"sentencia","year":2026}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('tc_search', {
"query": "libertad de expresión",
"type": "sentencia",
"year": 2026
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
total_hits | number | |
page | number | |
page_size | number | |
approximate_match | boolean | |
filters | object | |
results | array | |
source | string | |
coverage | string | |
note | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"total_hits": {
"type": "number"
},
"page": {
"type": "number"
},
"page_size": {
"type": "number"
},
"approximate_match": {
"type": "boolean"
},
"filters": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"type": {
"type": "string"
},
"year": {
"type": "number"
},
"number": {
"type": "null"
}
},
"additionalProperties": true
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"resolution_id": {
"type": "number"
},
"title": {
"type": "string"
},
"court_body": {
"type": "string"
},
"type": {
"type": "string"
},
"number": {
"type": "number"
},
"year": {
"type": "number"
},
"date_text": {
"type": "string"
},
"boe_reference": {
"type": "string"
},
"process_type": {
"type": "string"
},
"synthesis": {
"type": "string"
},
"analytical_synthesis": {
"type": "string"
},
"ecli": {
"type": "string"
},
"official_url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"source": {
"type": "string"
},
"coverage": {
"type": "string"
},
"note": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the es-tc-case-law pack
{
"mcpServers": {
"es-tc-case-law": {
"url": "https://gateway.pipeworx.io/es-tc-case-law/mcp"
}
}
}
See Getting Started for client-specific install steps.