Skip to main content
Glama

Re-sync from source file

document_resync_source
DestructiveIdempotent

Re-parse the document from its STORED source file and re-align blocks (unchanged blocks keep translations). The file owns sources: block_update edits are NOT in the file, so a resync overwrites them — resync when the source file changed, not after block edits.

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_id": "<document_id>"
    },
    "name": "document_resync_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesId of one language version of a document (from document_list or document_create).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / document_id / description
      Added value: +"Id of one language version of a document (from document_list or document_create)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description tells the agent exactly what is destroyed — block_update edits that exist only in the database, not in the file — and that unchanged blocks retain translations. This is precisely the value annotations cannot carry.

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 dense sentences, front-loaded with the action and followed by the risk and the routing rule. Every clause earns its place, though the em-dash construction is compact to the point of being slightly terse.

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

Completeness5/5

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

For a single-parameter, destructive, no-output-schema tool, the description supplies the one thing that matters — what data loss to expect and when to invoke it instead of block_update. Nothing an agent needs in order to call it safely is missing.

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?

One parameter with 100% schema description coverage, so the schema already documents document_id and where to obtain it. The description adds no further parameter detail, which is acceptable at this coverage level.

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

Purpose5/5

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

States a specific verb+resource: re-parse the document from its stored source file and re-align blocks. It also draws the boundary against block_update, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives both the positive trigger (resync when the source file changed) and the explicit exclusion (not after block edits), and names block_update as the alternative for that case. Nothing is left to inference.

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.