Skip to main content
Glama

Publish or republish a map

map_publish

Preview publishing a project as a new immutable map revision. Set targetMapId and expectedCurrentPublicationId to republish an existing map.

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": {
      "projectId": "<projectId>",
      "expectedSpecVersion": "<expectedSpecVersion>",
      "idempotencyKey": "<idempotencyKey>",
      "ownerHandle": "<ownerHandle>"
    },
    "name": "map_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNo
titleNo
projectIdYes
visibilityNoPRIVATE
descriptionNo
ownerHandleYes
targetMapIdNo
embedEnabledNo
idempotencyKeyYes
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
expectedSpecVersionYes
expectedCurrentPublicationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and closed-world, so the safety profile is largely covered; the description usefully adds that revisions are immutable. However, the leading 'Preview' conflicts with the mutation framing without explaining whether a confirmation step follows, and it does not describe what an unpublished target or stale expectedCurrentPublicationId produces.

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 short sentences, front-loaded with the primary outcome and followed by the key routing parameter. Nearly every word earns its place, with only the ambiguous 'Preview' wording costing clarity.

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

Completeness2/5

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

For a 12-parameter mutation tool with a required idempotency key and no output schema, the description is thin: it omits concurrency semantics, the meaning of expectedSpecVersion, and any indication of what the call returns or whether a subsequent confirm is needed. An agent could infer the republish path but would be guessing on the rest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 8% across 12 parameters, so the description carries most of the burden. It names targetMapId and expectedCurrentPublicationId with their republish meaning, which is genuinely useful, but leaves the required expectedSpecVersion (likely an optimistic-concurrency guard), idempotencyKey, ownerHandle, slug, title, visibility, and embedEnabled entirely unexplained.

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 action (publish a project as a new immutable map revision) and explicitly covers the republish variant via targetMapId. An agent can distinguish new-map publication from republishing without consulting another schema, though the word 'Preview' leaves it unclear whether the operation is a dry run or the actual write.

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?

Gives a concrete usage rule: set targetMapId and expectedCurrentPublicationId to republish an existing map, otherwise it creates a new revision. It says nothing about when to prefer this over siblings such as map_publication_activate or the confirm_action/cancel_action flow, and no prerequisites or exclusions are stated.

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