Skip to main content
Glama

web_apply_write

Executes an integrity-web-gate-plan/v2 write only after explicit owner approval, DeviceLock, preimage drift checks, post-verification, and immutable rollback capture.

Instructions

Execute a integrity-web-gate-plan/v2 plan ONLY with explicit owner_go approval, DeviceLock, preimage drift check, post-verify, and immutable rollback artifact.

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": {
      "plan": "<plan>",
      "owner_go": "<owner_go>"
    },
    "name": "web_apply_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesCanonical integrity-web-gate-plan/v2 plan object.
out_dirNoOptional workspace-relative directory for rollback_plan.json.
owner_goYesExplicit Owner GO approval token/quote (required).
recipe_nameNoOptional recipe name override.
allow_uplinkNoExplicitly override uplink port guard (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose substantive behavior: an approval gate, a lock, a preimage drift check, post-verification, and an immutable rollback artifact. That is unusually rich safety context for a mutation tool, though it omits permission requirements beyond owner_go and what happens when verification fails.

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?

A single front-loaded sentence that leads with the action and the strongest constraint, with zero filler. Density of unexplained jargon costs it the top mark but nothing is wasted.

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 complex write tool with a nested plan object and no output schema, the definition covers preconditions and rollback safety but says nothing about failure modes, what the plan object must contain, or what a caller receives back. Adequate, but there are clear gaps given the tool's complexity.

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 description coverage is 100%, so the schema already documents all five parameters including owner_go and allow_uplink. The description only reinforces the owner_go requirement and adds no syntax, format, or override semantics beyond the schema — baseline 3 applies.

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 ('Execute') and a specific resource ('integrity-web-gate-plan/v2 plan'), which distinguishes it as the execution step relative to plan-authoring siblings like web_plan_write. It loses a point only because key terms (DeviceLock, preimage drift check) are undefined jargon an agent may not resolve.

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?

Gives a hard gating condition — 'ONLY with explicit owner_go approval' — which is real usage guidance for a write tool. It never routes the agent to an alternative or says what to do when the precondition is unmet (e.g., call web_plan_write first), so guidance is implied rather than explicit.

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