Skip to main content
Glama

Edit Map

edit_map
Destructive

Read a Map or edit one typed section—Destination, Notes, fog patches, or out-of-scope items—without rewriting the rest, and pass expected_revision to prevent concurrent clobbering.

Instructions

Read a Map's Destination and Notes, or edit one typed section — set Destination or Notes, add or graduate a fog patch, rule something out of scope — without rewriting the others. Decisions-so-far is generated from resolved Tickets and never accepted as input. Mutations pass expected_revision from a prior read so concurrent sessions cannot clobber each other.

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": {
      "effort": "<effort>"
    },
    "name": "edit_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoWorkspace directory. Defaults to the session workspace.
notesNoReplace the Notes section.
createNoStart a missing Effort and its Map. Only for Effort/Map that do not exist yet — not a flag to send on every call. Does not change revision rules for mutations on an existing Map; create with no section fields reads an existing Map like a plain read.
effortYesEffort slug whose Map to read or edit.
add_fogNoAppend a fog patch under Not yet specified. One line.
rule_outNoAppend a hand-ruled item under Out of scope. Never touches Decisions-so-far. One line.
destinationNoReplace the Destination section.
graduate_fogNoRemove a fog patch matched on its text. Fails when none match.
expected_revisionNoRevision from a prior edit_map read. Required when overwriting an existing Map; omitted when creating one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • changedInput schema / properties / add_fog / description
      Previous value: -"Append a fog patch under Not yet specified."New value: +"Append a fog patch under Not yet specified. One line."
    • changedInput schema / properties / rule_out / description
      Previous value: -"Append a hand-ruled item under Out of scope. Never touches Decisions-so-far."New value: +"Append a hand-ruled item under Out of scope. Never touches Decisions-so-far. One line."
  2. Changed1 schema field changedv0.4.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / create / description
      Previous value: -"Start the Effort and its Map if neither exists. Otherwise an unknown slug fails."New value: +"Start a missing Effort and its Map. Only for Effort/Map that do not exist yet — not a flag to send on every call. Does not change revision rules for mutations on an existing Map; create with no section fields reads an existing Map like a plain read."
  4. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the key behaviors: single-section edits leave other sections intact, Decisions-so-far is derived from resolved Tickets and never accepted as input, graduate_fog fails when no patch matches, and mutations use optimistic concurrency via expected_revision to prevent clobbering. That is substantial context an agent could not recover from destructiveHint=false/idempotentHint=false alone.

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?

Front-loaded with the read-or-edit framing in the first clause, then scoped to the per-section semantics and concurrency rule. The long dash-delimited enumeration is dense but every clause carries information; only the nested em-dash structure costs a little readability.

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 9-parameter, no-output-schema tool with annotations, the description covers the read path, the typed edit paths, the create case, and the revision requirement. It stops short of describing what a read returns (section contents, current revision) or how a revision mismatch surfaces, which an agent needs to plan a retry.

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 already 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema does not: expected_revision is required when overwriting and omitted when creating, and create does not alter revision rules on an existing Map. It also clarifies that Decisions-so-far is not a parameter at all, heading off a likely errant argument.

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?

The description names a specific resource (the Effort's Map) and enumerates the exact operations: read Destination and Notes, set Destination or Notes, add/graduate fog, rule out of scope. An agent can tell precisely what the tool does and which typed section each call touches.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real usage constraints — expected_revision from a prior read for mutations, create only for Effort/Map that do not exist yet and explicitly 'not a flag to send on every call', and that create with no section fields behaves as a plain read. It never names a sibling alternative (e.g. spec or get_board) as the better choice, so routing guidance stops short of a 5.

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