Skip to main content
Glama

Coop

Leer fichero

leer
Read-only

Lee un fichero de texto con números de línea. Para ficheros largos usa desde/lineas.

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": {
      "codigo": "<codigo>",
      "ruta": "<ruta>"
    },
    "name": "leer"
  }
}

Input Schema

NameRequiredDescriptionDefault
rutaYes
desdeNo
codigoYesCódigo de Coop de la plaza (el que te dio el usuario, p. ej. coop-abc123…). Pásalo en TODAS las llamadas.
lineasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds two behavioral facts beyond that: it only handles text files, and results are line-numbered. It does not mention error behavior (missing file, binary content) or size limits, so it remains a mid-range disclosure.

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 short sentences, front-loaded with the core action and immediately followed by the pagination hint. No filler or repetition.

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

Completeness3/5

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

For a simple read-only file tool this covers the essentials, but with no output schema it still doesn't say what a result looks like beyond line numbers, nor how failures surface. The missing differentiation from sibling file tools is also a real completeness gap.

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 only 25% (only codigo is documented), so the description must compensate. It does add meaning for desde and lineas by tying them to long files, but leaves ruta's role implicit and gives no defaults, bounds, or unit details, leaving part of the gap unfilled.

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 ('Lee un fichero de texto') and adds the useful detail that output includes line numbers. It does not distinguish this from siblings like ver_archivo or ver_ficheros, so the agent cannot rule out the alternative from the description alone.

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

Usage Guidelines2/5

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

The only guidance is 'Para ficheros largos usa desde/lineas', which is about parameter usage, not tool selection. Nothing says when to pick this over ver_archivo, ver_ficheros, or buscar.

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