Skip to main content
Glama

Replace a map's content

replace_map_content
DestructiveIdempotent

Overwrite an existing map's layers, markers, name, description and casualty bar (and style, if given) with an import JSON of up to about 1 MB. The link and publish state stay; the old content is backed up.

Input Schema

NameRequiredDescriptionDefault
mapYesThe map in the Moving Polygons import format, as a JSON object or a JSON string
mapIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already flag destructive and idempotent, and the description goes well beyond them: a roughly 1 MB payload ceiling, the guarantee that the link and publish state survive, that old content is backed up, and that style is only replaced "if given". These are exactly the consequences an agent needs before triggering a destructive overwrite.

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?

Two dense sentences, front-loaded with the destructive action and the preserved state right after. Every clause carries information, though the list of replaced fields and the preservation note could be ordered slightly more crisply.

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 no-output-schema destructive tool this covers the essentials (scope of destruction, preservation, backup, payload limit). It stops short of stating authorisation requirements and what the call returns, minor gaps given the annotations.

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 50%: the map parameter is documented in the schema, mapId is not. The description adds real value for map (import format reference plus the ~1 MB limit) but says nothing about mapId beyond the notion of an existing map, so it only partly closes the gap.

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 ("Overwrite") plus the resource (an existing map) and enumerates exactly which parts are replaced: layers, markers, name, description, casualty bar, style. "Existing map" implicitly separates it from create_map, though no sibling is named explicitly.

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?

Usage is only implied: the word "existing" and the preserved link/publish state tell an agent this is for an already-created map, but there is no explicit when-to-use vs create_map or get_import_format, and no stated preconditions (e.g. ownership or required permissions).

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