Skip to main content
Glama

regloss_chapter_tokens

Refreshes EU target glosses on CJK-source chapters after a Gemini prompt fix, preserving Asian glosses and sentence translations. Use to update outdated EU glosses without recreating the chapter.

Instructions

Re-run Gemini per-token glossing on a CJK-source chapter using the current GeminiTokenTranslator prompt and overwrite its stored zip blob in place. Only EU target glosses (EN/FR/ES/DE/IT/PT) are refreshed — Asian target glosses (ZH/JA/KO) are preserved as-is from the original ingest's caller-supplied token_glosses, since the server no longer produces Asian glosses. Sentence translations and EU↔EU alignments are preserved.

Use after a Gemini prompt fix to refresh EU glosses on chapters glossed under the older prompt. To fix bad Asian glosses on an existing chapter, recreate it via create_chapter_from_marks with corrected token_glosses instead — regloss can't repair what it can't produce. Non-CJK chapters return skipped=true.

Returns {chapterId, sourceLanguage, skipped, skipReason?, markCount, cellsChanged, totalCells}. cellsChanged/totalCells is the diagnostic: if 0, EU glosses were already up-to-date.

Args: publication_id: Publication UUID. chapter_id: Chapter UUID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publication_idYes
chapter_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Despite no annotations, the description fully discloses behavioral traits: only EU glosses are refreshed, Asian glosses are preserved, non-CJK chapters return 'skipped=true', and the diagnostic fields 'cellsChanged/totalCells' indicate freshness. No contradictions.

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?

The description is well-structured with clear sections and a bullet-like list for returns. It is front-loaded with the main action. However, it could be slightly more concise (e.g., 'overwrite its stored zip blob in place' is slightly redundant). Still efficient.

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?

Given the output schema is described in the text, the definition covers input, behavior, output details, and usage context. It is complete for a specialized glossing tool.

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 0%, so the description must compensate. It lists the two parameters with their types (UUIDs) in the 'Args' section. While it doesn't add constraints beyond the schema, it provides sufficient context for an agent to identify them.

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?

The description clearly states the tool re-runs Gemini per-token glossing on CJK-source chapters, distinguishes between refreshing EU glosses and preserving Asian glosses, and explicitly differentiates from the sibling tool 'create_chapter_from_marks' for fixing Asian glosses.

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?

It explicitly states when to use (after a Gemini prompt fix) and when not to (for bad Asian glosses, use 'create_chapter_from_marks' instead). Provides an alternative tool, leaving no ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulmichaelstafford/cwmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server