Skip to main content
Glama

atlas_publish

Idempotent

Records a new Work Order entry in docs/ARCHITECTURE.md after tests pass, verifying each symbol has callers and confirming the write by read-back.

Instructions

Append a new Work Order status entry to local Git documentation (docs/ARCHITECTURE.md) — gated by a code-wiring check and verified by read-back.

Use this tool as the FINAL step after tests pass to record a new Work Order in `docs/ARCHITECTURE.md`
(synced Google Docs remain read-only design sources by default). If the Work Order heading already exists
and you only need to flip `⬜ OPEN` to `✅ DONE`, use `atlas_set_status` instead.

Behavior & Output:
- Pre-write wiring gate: when `status='done'`, verifies that every symbol in `verify_symbols` (and
  `.atlas/wo-symbols.yml`) is both defined and referenced/called (`calls + references > 0`). If any
  symbol is dead code, returns `{written: false, refused: true, refusal: "..."}` without touching disk/network.
- Atomic verified write: appends the formatted status line, reads the document back to confirm presence,
  logs to `.atlas/mutations.log`, and returns `{written: true, verified: true, wo, line}`.

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": {
      "wo": "<wo>",
      "title": "<title>"
    },
    "name": "atlas_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
woYesWork Order number (positive integer, e.g. 7 for 'Work Order 7').
titleYesShort title of the Work Order (e.g. 'Critical Hit Calculation').
statusNoTarget Work Order status: 'done' (writes `✅ DONE`, default) or 'open' (writes `⬜ OPEN`).done
descriptionNoOptional summary of what was implemented and which files were touched.
verify_symbolsNoList of function or class names built in this Work Order (e.g. ['apply_crit_bonus']). When `status='done'`, each symbol is checked before writing: if any symbol is undefined or has 0 callers/references across the codebase, the write is refused.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.1
    • addedInput schema / properties / description / description
      Added value: +"Optional summary of what was implemented and which files were touched."
    • addedInput schema / properties / status / description
      Added value: +"Target Work Order status: 'done' (writes `✅ DONE`, default) or 'open' (writes `⬜ OPEN`)."
    • addedInput schema / properties / status / enum
      Added value: +[
      +  "done",
      +  "open"
      +]
    • addedInput schema / properties / title / description
      Added value: +"Short title of the Work Order (e.g. 'Critical Hit Calculation')."
    • addedInput schema / properties / title / minLength
      Added value: +1
    • addedInput schema / properties / verify_symbols / description
      Added value: +"List of function or class names built in this Work Order (e.g. ['apply_crit_bonus']). When `status='done'`, each symbol is checked before writing: if any symbol is undefined or has 0 callers/references across the codebase, the write is refused."
    • addedInput schema / properties / wo / description
      Added value: +"Work Order number (positive integer, e.g. 7 for 'Work Order 7')."
    • addedInput schema / properties / wo / minimum
      Added value: +1
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the pre-write wiring gate condition (defined AND calls+references > 0), the exact refusal payload, that nothing touches disk/network on refusal, the atomic write plus read-back, and the .atlas/mutations.log side effect. That is strong disclosure; the only ambiguity is why an appending write is claimed idempotent on repeat calls, which the description never reconciles.

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?

Front-loaded one-line summary, then a usage sentence with the sibling alternative, then a labeled 'Behavior & Output' block. Every sentence carries decision-relevant information — gate conditions, refusal shape, logging — with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool that writes to a tracked file and can refuse, the description covers preconditions, gating, side effects, success and failure returns, and the fallback to a sibling. Even though an output schema exists, restating the two return shapes is justified because refusal is a distinct, actionable outcome.

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 100% so the baseline is 3, but the description adds real meaning: verify_symbols is merged with a supplementary '.atlas/wo-symbols.yml' source, and the interaction between status='done' and the gate is spelled out. Return fields (wo, line, written, verified, refusal) are also tied back to specific parameters.

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 and resource — 'Append a new Work Order status entry to local Git documentation (docs/ARCHITECTURE.md)' — with the two gates (wiring check, read-back verification) named up front. It explicitly distinguishes itself from atlas_set_status for the case where a heading already exists and only the status marker must be flipped.

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?

Gives explicit when-to-use ('FINAL step after tests pass to record a new Work Order') and an explicit when-not-to-use with the named alternative ('If the Work Order heading already exists and you only need to flip ⬜ OPEN to ✅ DONE, use atlas_set_status instead').

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