Skip to main content
Glama

Clerk - IA Legal Dominicana

Consultar un expediente del Tribunal Constitucional

consultar_expediente_tc
Read-only

Los expedientes del Tribunal Constitucional, por su número («TC-04-2023-0202»), por el recurrente o por el recurrido: tipo de proceso, partes, fecha de ingreso, provincia y, si ya se falló, la sentencia con su número, su fecha de publicación y su enlace. Sirve para saber en qué está un recurso ante el TC y con qué sentencia se decidió.

Con un número exacto, o una sola coincidencia, trae expediente con su sentencia; con varias, la lista en expedientes (con_sentencia dice cuáles se fallaron) y la ficha de uno se pide con su id.

⚠️ La sentencia se lee con obtener_texto_completo y el tc de como_leer antes de decir qué decidió. Las partes las transcribe la secretaría: sirven para encontrar el expediente, no se citan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "consultar_expediente_tc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoEl `id` de un expediente de `expedientes`, para su ficha con la sentencia. O esto, o `consulta`.
porNoQué es `consulta`.numero
pageNoPágina de la lista, desde 0 (20 por página).
consultaNoEl número del expediente («TC-04-2023-0202», o parte de él: «TC-05-2026») o el nombre de una parte.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnlyHint) and scope (openWorldHint), yet the description adds genuine operational context: the response branches on match cardinality, `con_sentencia` flags which cases were decided, and there is a data-quality caveat that the partes are transcribed by the secretaría and are for locating, not citing. It does not address retrieval limits or error behavior for a nonexistent number, so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what the tool returns and what it is for, followed by the cardinality behavior and a clearly marked ⚠️ caveat. Dense but every sentence carries information; only the restatement of the purpose in the second half of the first sentence is mildly redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and four loosely constrained parameters (none required), the description is the only source of return-value shape, and it supplies it: single result in `expediente`, lists in `expedientes`, `con_sentencia`, and the `id` route to a ficha. Combined with the caveat to read the ruling via obtener_texto_completo, an agent has everything needed to call and interpret this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter (id, por, page, consulta) is already documented with its enum and default. The description adds an example number format and clarifies that a partial number is acceptable and that `id` must come from `expedientes`, but that meaning largely duplicates the schema. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (consultar expedientes del Tribunal Constitucional) plus the three lookup keys (número, recurrente, recurrido) and the fields returned (tipo de proceso, partes, fecha de ingreso, provincia, sentencia con número, fecha de publicación y enlace). It also names the sibling tool that handles the sentencia text, so an agent can separate this lookup from obtener_texto_completo without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states its purpose ('saber en qué está un recurso ante el TC y con qué sentencia se decidió') and routes to the alternative for reading the ruling: 'La sentencia se lee con obtener_texto_completo'. It also tells the agent which path to take depending on result cardinality: a single match returns `expediente`, multiple matches return `expedientes` and require the `id` for the ficha.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources