Skip to main content
Glama

apply_operations

Apply a batch of operations atomically to an Aseprite document at a specific revision, ensuring changes only occur if the document matches the expected state.

Instructions

在指定修订执行原子批次;操作格式见协议 v1。

Input Schema

NameRequiredDescriptionDefault
operationsYes
request_idNo
session_idYes
document_idYes
expected_contextNo
expected_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations, so the description carries the full burden. 'Atomic' usefully implies all-or-nothing semantics, but it says nothing about what happens on revision conflict, whether changes are persisted or reversible, whether a session must be opened first, or how request_id/idempotency behaves. The pointer to 'protocol v1' references a document the agent cannot see.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One tight sentence with no filler, but the compression is achieved by delegating the substance to an unavailable external spec rather than by being information-dense. Short is not the same as efficient here.

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?

A 6-parameter mutation tool with no annotations, no output schema, and 0% schema coverage needs substantial description. Instead the description punts on the single hardest part — the operations payload format — to a 'protocol v1' the agent has no access to, so the definition is not callable without outside knowledge.

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 0% across 6 parameters, including an opaque objects array and three concurrency/idempotency fields (expected_revision, expected_context, request_id). The description only obliquely gestures at 'specified revision' and defers the rest to an external protocol, leaving the agent unable to construct operations correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb and effect ('executes an atomic batch at the specified revision'), which is more than a restatement of the name. But it never says what an 'operation' is or what resource is being modified, so the agent cannot distinguish it from save_sprite or undo/redo beyond guessing. Purpose is inferable but vague.

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 undo, redo, or save_sprite, and no preconditions. The agent gets no routing signal at all.

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