Skip to main content
Glama
folio-pdf-translate

folio-pdf-translate

by BrotherMou

submit_translations

Submit translated strings for the current batch by item ID, validating missing or extra IDs and placeholder counts before rendering.

Instructions

Submit your translated text keyed by the pending batch's item IDs.

Supply every ID exactly once, with a nonempty translated string. Missing/extra IDs or changed placeholder counts are rejected before rendering. This submits one batch; continue fetching batches until get_translation_status is completed.

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": {
      "job_id": "<job_id>",
      "request_id": "<request_id>",
      "translations": "<translations>"
    },
    "name": "submit_translations"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
request_idYes
translationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden itself and does deliver substantive preconditions: every ID exactly once, nonempty strings, no missing/extra IDs, unchanged placeholder counts, all validated before rendering. That is useful failure-mode disclosure for a mutation tool. However, it says nothing about idempotency/retries, what a rejection looks like at the call level, or permission/auth requirements, so a significant share of behavioral context is still missing.

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

Conciseness5/5

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

Four short sentences ordered action, payload contract, validation rules, workflow continuation — the most decision-relevant content is front-loaded. No filler, no restatement of the tool name, and each sentence adds a distinct constraint.

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 three-parameter mutation tool with no annotations and no output schema, the definition covers the action, the payload contract, rejection rules, and the iteration loop, which is most of what an agent needs to call it correctly. The remaining hole is the semantics of the two identifier parameters and any retry/idempotency behavior.

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 0% across three required parameters, and the description compensates well for the one that matters most: 'translations' is explained as an object keyed by item IDs with exactly-one-entry-per-ID and placeholder-count preservation, which the bare schema cannot convey. But 'job_id' and 'request_id' receive no explanation at all, leaving the agent to guess whether request_id is an idempotency key or a handle returned by the batch fetch.

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 ('Submit your translated text') and immediately narrows the payload semantics ('keyed by the pending batch's item IDs'), so an agent knows this is the write half of the fetch-then-submit loop. It is clear without opening the schema, though it does not name get_pending_translations as the counterpart that produces the IDs.

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

Usage Guidelines4/5

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

It gives real sequencing guidance: 'This submits one batch; continue fetching batches until get_translation_status is completed,' which tells the agent this is a looping workflow rather than a one-shot call and names the terminal condition via a sibling. It stops short of stating when NOT to use it (e.g., no pending batch, already-completed job) and requires the agent to infer that the IDs come from get_pending_translations.

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