Skip to main content
Glama

Duplicate a project layer

project_duplicate_layer

Duplicate a map layer while preserving canonical GMS validity. expectedSpecVersion is required to prevent stale writes.

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>",
      "input": "<input>"
    },
    "name": "project_duplicate_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
projectIdYes
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

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. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, so the description's added burden is lighter. It does contribute real behavior: optimistic concurrency via expectedSpecVersion "to prevent stale writes." However, it does not say what happens on a version mismatch (error vs. overwrite), that repeated calls create multiple copies (despite idempotentHint=false), what permissions are needed, or what "canonical GMS validity" means in practice.

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 tight sentences with the operation stated first and the concurrency requirement second; nothing is redundant. The phrase "preserving canonical GMS validity" is unexplained jargon that occupies space without conveying actionable meaning.

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

Completeness3/5

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

For a nested-input mutation with no output schema and no annotations covering side effects, the definition should state what is returned (e.g., the new layer's ID) and the failure mode for a stale version. It covers the concurrency guard but leaves the result and error behavior to inference.

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?

At 25% schema coverage the description must compensate and it only partly does: it explains why expectedSpecVersion exists and the nested input fields (layerId, title) are documented in the schema. projectId and the semantics of a stale/mismatched version value are left undocumented in both places.

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?

"Duplicate a map layer" is a specific verb+resource, and the copy semantics implicitly distinguish it from creation siblings like project_add_layer. It stops short of naming a sibling explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use / when-not-to-use guidance and no routing to alternatives such as project_add_layer or project_update_layer_style. The only conditional statement concerns a parameter requirement (expectedSpecVersion), not tool selection.

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