Skip to main content
Glama

duplicate_screen

Deep-copy an existing screen while preserving all node IDs and assign a new lowercase name for wireframe variants or edits.

Instructions

Deep-copy a screen while preserving node ids. Example: {"source":"checkout","new_name":"checkout_error"}.

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": {
      "source": "<source>",
      "new_name": "<new_name>"
    },
    "name": "duplicate_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesLowercase identifier matching [a-z][a-z0-9_]{0,31}
new_nameYesLowercase identifier matching [a-z][a-z0-9_]{0,31}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a non-obvious trait — that node ids are preserved in the deep copy — but omits what happens when new_name already exists, whether the operation is reversible, and what is returned (there is no output schema).

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 core action, with no filler. The example is compact and immediately usable, though it substitutes for, rather than supplements, missing usage guidance.

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 simple two-parameter required-input tool this is close to sufficient to invoke correctly. However, as an unannotated mutation tool with no output schema, it should specify the collision behavior for an existing target name and the result of the operation.

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 description coverage is 100%, so both parameters are already documented with their pattern constraint. The inline example adds a small amount of concreteness by showing sample values, but explains nothing about the parameters' meaning beyond what the schema provides, so the baseline applies.

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?

"Deep-copy a screen" names a specific verb and resource, and "while preserving node ids" adds a distinguishing semantic detail that separates it from a plain screen creation. It doesn't explicitly name a sibling such as create_screen as the alternative, so it falls just short of full differentiation.

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 statement of when to use this tool versus create_screen or the other screen tools, nor any prerequisites. The example shows invocation syntax only, leaving an agent to infer that this is the tool for cloning an existing screen rather than authoring a new one.

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