Skip to main content
Glama

wgr_write

Destructive

Run up to 50 set or create commands in one request when write access is enabled and get a separate success or error result per command; failures do not stop others and no deletes occur.

Instructions

Run set/create commands in one request. Each command is {"method": "Article.set", "params": {...}}, at most 50. Needs WGR_ALLOW_WRITE=1. Returns one {ok, result|error} per command: check each, a failed command does not stop the others. Never deletes.

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": {
      "commands": "<commands>"
    },
    "name": "wgr_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: an environment-variable gate, a hard 50-command cap, and the critical per-command failure isolation ('a failed command does not stop the others'). The 'Never deletes' claim sits slightly awkwardly with destructiveHint=true, since set operations can still overwrite existing values, but it narrows rather than contradicts the annotation.

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 verb and the command shape, then the prerequisite, then the return/failure semantics. Nearly every clause earns its place; only the trailing 'Never deletes' feels loosely attached.

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 generic batch write executor with an output schema already covering return values, the description supplies the essentials: auth gate, size limit, per-command result handling, and the non-destructive-to-records guarantee. The one real gap is discovery guidance for valid method names and their params.

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

Parameters4/5

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

Schema coverage is 0% and the single 'commands' array has no item documentation, so the description carries the full burden. It does so well by giving the literal command shape {"method": "Article.set", "params": {...}} and the batch ceiling, though it never says where valid method names come from.

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: it executes set/create commands in a single batched request. The read/write split against the sibling wgr_read is clear from the name and the 'set/create' wording, though it never explicitly says so.

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 prerequisite WGR_ALLOW_WRITE=1 and the limit of 50 commands give useful invocation context, and 'Never deletes' implicitly frames it as a non-delete write path. There is no explicit statement of when to prefer this over wgr_read or how to discover valid methods (e.g. via wgr_list_methods/wgr_describe_method).

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