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

NameTypeRequiredDescription
querystringyesFree text in Spanish, searched across the resolution text (e.g. “libertad de expresión”). Optional when year or number is given.
typestringnoLimit to one resolution type. Default: all three.
yearnumbernoYear of the resolution (e.g. 2023).
numbernumbernoResolution number within its year and type (e.g. 52 for “Sentencia 52/2026”).
pagenumbernoResults 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

FieldTypeDescription
foundboolean
total_hitsnumber
pagenumber
page_sizenumber
approximate_matchboolean
filtersobject
resultsarray
sourcestring
coveragestring
notestring
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.

Regenerated from source · build December 4, 2026