Skip to main content
Glama

obtener_sentencia

Fetches official CENDOJ judgment text using ROJ, ECLI, or CENDOJ ID, returns its citation and link, and supports paging through long rulings.

Instructions

Texto oficial de una sentencia del CENDOJ, con su cita (ROJ, ECLI) y enlace.

Args: id: ROJ («STS 1802/2012»), ECLI («ECLI:ES:TS:2012:1802»), identificador CENDOJ o el id que devuelve buscar_jurisprudencia. parte: las sentencias largas se devuelven por partes de ~12.000 caracteres.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYes
parteNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a genuine behavioral trait: long sentences are returned in ~12,000-character chunks, which explains the `parte` mechanism and prevents an agent from assuming a truncated result. It also states the response includes the official text plus citation and link. It does not cover permissions, error behavior on unknown ids, or the total number of parts.

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

Conciseness5/5

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

Two lines: a front-loaded statement of what is returned, then an Args block limited to the two parameters. Nothing is repeated or wasted, and the chunking caveat sits right where an agent reading the parameters needs it.

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

Completeness4/5

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

An output schema exists, so the return structure need not be spelled out, and the chunking behavior is the one non-obvious fact an agent needs, which is covered. The remaining gap is minor: nothing about failure modes for malformed or unresolvable ids.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it does: `id` enumerates four accepted formats (ROJ like 'STS 1802/2012', ECLI, CENDOJ identifier, or a search-returned id) and `parte` is explained as the ~12,000-character pagination unit. This is meaning the schema alone does not convey.

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 ('Texto oficial de una sentencia del CENDOJ') and even names what comes bundled with it: the citation (ROJ, ECLI) and the link. An agent can immediately tell this is the fetch-the-full-text counterpart to the search tools, not another search.

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

Usage Guidelines3/5

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

Usage is only implied through the parameter note that `id` can be 'el id que devuelve buscar_jurisprudencia', which sketches a search-then-fetch flow. There is no explicit when-to-use vs. when-not statement, and no guidance on what to do if the id is ambiguous or the sentence is not found.

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