Skip to main content
Glama

¿Cómo va España?

Fetch a document (¿Cómo va España?)

fetch
Read-onlyIdempotent

Devuelve el documento completo de un resultado de search: los datos, su fuente oficial y la dirección de su página para citarla. / Returns the full document for a search result id.

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": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEl `id` de un resultado de `search`, por ejemplo «indicador:tasa-paro» o «ley:BOE-A-2023-12203». También vale la dirección de una página de la web.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYes
titleYes
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that the response carries the official source and a citable page address, which is useful framing but partly redundant with the existing output schema. It does not discuss error behavior for invalid or expired ids.

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?

Two short sentences, front-loaded with the return payload and followed by the input contract; nothing is padding. The bilingual duplication is a small redundancy but serves a Spanish-language tool and does not obscure the meaning.

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?

For a one-parameter, idempotent read tool with a full output schema and rich annotations, the description covers purpose, input source and response content. The only missing piece is guidance on what to do when the id is unknown or malformed.

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 coverage is 100% and the single `id` parameter already carries examples and the note that a page URL is also accepted. The description restates that the id is a `search` result id but adds no format or edge-case guidance beyond 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.

Purpose4/5

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

States a specific verb and resource: returns the full document for a `search` result id, and names what the document contains (data, official source, page URL for citation). It explicitly ties itself to the `search` sibling as the producer of the id. It does not distinguish itself from detail-oriented siblings like consultar_ley or consultar_indicador, which an agent might reasonably confuse it with.

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

Usage Guidelines4/5

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

The description clearly implies the usage context: call it with an id obtained from `search` to expand a result into its full document. It gives no explicit when-not or alternative routing, so the boundary with the consultar_* tools is left to inference.

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