Skip to main content
Glama

Coop

Escribir fichero

escribir

Crea o sobrescribe un fichero completo (crea las carpetas necesarias). Para cambios parciales usa editar.

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>",
      "contenido": "<contenido>"
    },
    "name": "escribir"
  }
}

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.
contenidoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the critical risk: the file is overwritten in full and missing folders are auto-created. However, it says nothing about whether overwrites are recoverable (a guardar_version/historial sibling exists), whether pre-existing content is lost, or what a successful write returns.

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 with zero filler; the primary action is front-loaded and the alternative-tool note follows. Every clause earns its place.

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 three-parameter mutation tool with no annotations and no output schema, the definition covers purpose and the overwrite hazard but omits path resolution semantics, overwrite/versioning behavior, and error or return expectations. Adequate to start, not complete enough to call safely.

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, and that documentation lives in the schema, not the description. The description adds no meaning for 'ruta' (relative to what root? absolute path?) or 'contenido' (encoding, size limits), which is exactly what is needed at this coverage level.

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 pair (create/overwrite) and the resource (a complete file), plus the side effect of creating needed folders. It also names the sibling tool it is not (editar) for partial changes, so an agent can distinguish it 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 routes the agent: use this for whole-file writes, use editar for partial changes. The alternative and the condition that selects it are both stated, leaving little 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