Skip to main content
Glama

Mutate a map

mutate_map

Apply a natural-language instruction to an existing workspace. Valid mutations: filter a layer, remove a layer, change camera, change basemap. For ambiguous instructions the tool emits a clarification field. For unrelated instructions it emits outOfScope — build a new map in that case. The full Op catalog and predicate grammar are documented in the MCP resource showmeonmap://docs/workspace-ops-spec.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
map_idYesmap_id from a prior build_map call
rationaleNoOptional short label (≤300 chars) for the map edit history, e.g. "add wildfire layer". Omit it to send nothing beyond the tool arguments.
instructionYese.g., "filter to where magnitude is greater than 5", "change basemap to dark"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / rationale / description
      Previous value: -"Short audit-log label (≤300 chars) stating the user-facing goal this call serves, e.g. \"add wildfire layer for the user's California query\". Required on every call. Stored in the operations log so map edits stay traceable — we never see your chat history."New value: +"Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments."
    • changedInput schema / required
      Previous value: -[
      -  "map_id",
      -  "instruction",
      -  "rationale"
      -]New value: +[
      +  "map_id",
      +  "instruction"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare non-read-only, non-idempotent, open-world behavior; the description adds genuinely new context by disclosing the two special response states (clarification, outOfScope) that an agent must handle. It omits whether removed layers are recoverable or whether edits are undoable, which matters for a mutating tool.

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?

Four tight sentences, front-loaded with the core action, then valid mutations, then the two exceptional response paths, then the doc pointer. No filler or restatement of the tool name.

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?

Covers scope, ambiguity handling, out-of-scope routing, and defers the Op grammar to a named resource, which is complete for a natural-language mutation entry point. No output schema exists, so return shape relies on the description, which only partially names the emitted fields (clarification, outOfScope) rather than the full success response.

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 coverage is 100% and all three parameters (map_id, instruction, rationale) are documented in the schema with examples and constraints. The description adds no parameter-level syntax or format guidance beyond what the schema already provides, so baseline 3 applies.

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+resource ('Apply a natural-language instruction to an existing workspace') and enumerates the exact mutation scope (filter/remove layer, camera, basemap). This distinguishes it from atomic siblings such as filter_layer, remove_layer, and set_camera, which do the same work one operation at a time.

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?

Explicit routing rules: ambiguous instructions yield a clarification field, unrelated instructions yield outOfScope and the agent should 'build a new map in that case', naming the alternative sibling. It also points to the resource documenting the full Op catalog and predicate grammar.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources