Skip to main content
Glama

copy_sprite_with_changes

Destructive

Copy a visible sprite, preserving its animations, hitboxes and colors, then apply reviewed part replacements, color changes or new parts composed from existing pieces. The source is never modified. All selected parts, styles and pieces must match templateId; pieces must also match the replacement part class.

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": {
      "name": "<name>",
      "baseId": "<baseId>",
      "templateId": "<templateId>"
    },
    "name": "copy_sprite_with_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
baseIdYes
colorsNo
partIdsNoComplete selected parts. Omit to preserve all source parts.
templateIdYes
partCompositionsNoOptional new parts assembled from existing pieces in the same template and part class. Shared source parts/styles/pieces are never edited.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare destructiveHint=true, and the description pushes in the opposite direction by repeatedly assuring that 'the source is never modified' and that 'shared source parts/styles/pieces are never edited' — useful clarification, but it never explains what the destructive aspect actually is (presumably the creation of a new sprite record). The 'visible sprite' precondition is a real behavioral constraint worth having. It adds context but leaves the agent's safety picture incomplete.

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?

Three sentences, front-loaded with the core action and the preservation guarantee, then the constraints. Every clause carries information; nothing is boilerplate. The sentences are dense and pack multiple rules each, which is efficient but slightly harder to scan than a bulleted constraint list.

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 complex tool with nested objects, six parameters and no output schema, the description covers the important semantics: preservation, non-mutation of source, the templateId/part-class matching rule, and the optionality of compositions. What is missing is the return behavior (what identifies the new sprite) and any definition of 'visible', which an agent may need before calling.

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

Parameters4/5

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

Schema description coverage is only 33%, so the description must carry weight, and it does: it explains that colors/partIds/partCompositions represent part replacements, color changes and composed parts, and that omitting them preserves source state. It also states a cross-parameter constraint absent from the schema — all selected parts, styles and pieces must match templateId, and pieces must match the replacement part class. The 'name' and 'baseId' parameters are only obliquely covered ('visible sprite'), keeping it below 5.

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?

The description opens with a specific verb and resource ('Copy a visible sprite') and immediately enumerates what is preserved (animations, hitboxes, colors) and what is layered on (part replacements, color changes, composed parts). That is far more informative than the name alone. It does not explicitly contrast itself with create_sprite or update_sprite, so sibling differentiation is only implied by the 'copy ... source is never modified' framing.

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 implied rather than stated: the agent can infer 'use this when you want a variant of an existing sprite without touching the original.' The templateId/part-class constraint gives a precondition for valid calls, which is valuable. However, there is no explicit when-not guidance and no named alternative such as update_sprite for in-place edits or create_sprite for from-scratch creation.

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