Skip to main content
Glama

project_docs_revise

Revise and fully replace an allowed .issueops project document after verifying repo evidence and preserving user consensus, with dry-run preview and SHA-256 confirmation for existing files.

Instructions

Revise (fully replace) one allowed .issueops project document after reading repo evidence and preserving user consensus. Dry-run unless confirm=true. Existing files require expected_sha256 from project_docs_read. Do not use for solved false cases or ADR entries; use project_docs_append there.

Input Schema

NameRequiredDescriptionDefault
cwdNo
repoNoTarget repository path. Defaults to current directory.
confirmNoSet true to write. Omit or false for dry-run preview.
contentYesFull replacement content for the one document. Preserve stronger existing local guidance and user decisions.
summaryYesShort reason for the update and how it maintains current consensus.
evidenceNoFiles, commands, tests, or user instructions that justify the update.
rel_pathYesAllowed project doc path under .issueops, for example .issueops/OPERATIONS.md.
authority_fileNoHTTP only: from `issueops mcp authorize`; omit over stdio.
workspace_rootNoAbsolute workspace root.
expected_sha256NoSHA-256 returned by project_docs_read. Required when the file exists.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnly=false, openWorld=false, idempotent=false; the description goes further by disclosing the dry-run-by-default safety gate, the optimistic-concurrency requirement that a file must be re-read to obtain expected_sha256 before overwriting, and the consensus-preservation behavior expected of the writer. Remaining gaps are modest: no mention of what happens on a sha mismatch or of the authority requirement (left to the schema).

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?

Three sentences, no filler, with the destructive-replacement semantics and dry-run default front-loaded ahead of the sibling routing note. Every sentence carries a distinct constraint an agent needs.

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 10-parameter mutating tool with no output schema, the description covers the risky parts: overwrite semantics, dry-run gating, the stale-read guard, and routing away from append. It leaves the "allowed paths" set and the authority_file/HTTP-vs-stdio nuance to the schema, which describes them adequately.

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 90%, so baseline is 3, but the description adds real meaning: "fully replace" disambiguates the content parameter (whole-file substitution, not a patch), "one allowed .issueops project document" constrains rel_path, and the expected_sha256 provenance ties that parameter to project_docs_read. It does not explain evidence or authority_file, which the schema already handles.

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?

"Revise (fully replace) one allowed .issueops project document" gives a specific verb, the exact resource, the scope restriction (one document, .issueops only), and the crucial replacement semantics. The final sentence names the sibling it is NOT for (solved false cases, ADR entries) and points to project_docs_append, so an agent can separate it from the append tool without reading 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?

It states the default mode ("Dry-run unless confirm=true"), the precondition for existing files ("require expected_sha256 from project_docs_read"), and an explicit negative case with the correct alternative. When-to-use, when-not-to-use, and prerequisites are all present.

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