Skip to main content
Glama

app_sync_state

Saves the app canvas state, optionally submits annotated images and multi-reference sheets, and notifies connected clients to keep boards synchronized.

Instructions

保存应用端画板状态,按需提交标注图与多图参考拼版并通知其他客户端。

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": {
      "document": "<document>"
    },
    "name": "app_sync_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNo
documentYes
submittedNo
baseRevisionNo
annotatedPngBase64No
referenceSheetPngBase64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 burden, and it does disclose two genuinely useful traits: the tool can attach annotated PNG and multi-image reference sheet payloads, and it notifies other clients as a side effect. However, it says nothing about the baseRevision parameter's concurrency/conflict behavior, whether existing board state is overwritten, what permissions are needed, or what a rejected sync looks like.

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?

A single sentence that front-loads the primary save action before the optional side effects, with no filler. It is efficient, though the compression contributes to the missing detail elsewhere.

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 mutating, client-notifying sync tool with a nested free-form document object, six undocumented parameters, and no output schema, the description covers the headline action but omits conflict semantics and result shape. It is enough to attempt a call but not enough to call it safely.

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 six parameters, so the description must compensate and largely does not. It loosely maps '标注图' and '多图参考拼版' to the two base64 parameters and '保存画板状态' to document, but 'source' and especially 'baseRevision' — the optimistic-concurrency token that determines whether the write succeeds — are left completely 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?

The description gives a specific verb and resource ('保存应用端画板状态') and adds two secondary effects (submitting annotated images / reference sheets and notifying other clients), which lets an agent tell it apart from the read-oriented sibling app_get_state. It stops short of naming an alternative explicitly, so it is clear but not fully differentiated.

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?

The only usage cue is '按需' (as needed), which signals that the image submissions are optional but never says under what conditions to include them. There is no when-not-to-use guidance, no mention of which sibling to prefer for reading or drafting state, and no prerequisite information for a write-and-notify operation.

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