Skip to main content
Glama

Coop

Editar fichero

editar

Aplica reemplazos exactos de texto en un fichero. Cada "buscar" debe aparecer exactamente una vez (o usa todas=true). Copia el texto tal cual, con su sangría.

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>",
      "cambios": "<cambios>"
    },
    "name": "editar"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Without annotations, the description carries the burden. It discloses a key behavioral trait beyond the schema: the exact-once match requirement and the todas escape hatch, plus a warning to copy text verbatim with its indentation. It does not say whether the write is atomic, what happens on a failed match (all-or-nothing?), or what the response contains.

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?

Three short sentences, front-loaded with the core action, each sentence adding a real constraint (exact match, todas, verbatim copying). No filler, though the guidance is terse and could be clearer about failure behavior.

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 mutation tool with no annotations and no output schema, the definition covers the matching semantics but omits failure modes, atomicity, and the meaning of codigo/ruta beyond the schema. Adequate minimum for a 3-param tool, but leaves gaps an agent would want.

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

Parameters2/5

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

Schema coverage is only 33%; only codigo is documented in the schema (and the description says nothing about it, though it repeats the 'pass it in all calls' need implicitly not at all). The description explains buscar semantics and todas=true but never mentions reemplazar or that up to 50 cambios apply, leaving gaps at low coverage.

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: applies exact text replacements in a file ("Aplica reemplazos exactos de texto en un fichero"). Clear what it does, though it does not distinguish itself from siblings like escribir or guardar_version by name.

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?

The description implies usage via the constraint that each "buscar" must appear exactly once unless todas=true, which hints at when the edit is applicable. But it gives no explicit when-to-use vs alternatives (e.g., use leer first, use escribir for full rewrites) and no prerequisites about reading the file beforehand.

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