Skip to main content
Glama
JaeHyeon-KAIST

pdf2zh-next-mcp

save_translated_segments

Save translated segments to a session, accumulating them across calls for complete document assembly.

Instructions

번역된 세그먼트를 세션에 저장합니다.

여러 번 호출하면 기존 세그먼트에 누적됩니다. 모든 세그먼트 저장 후 assemble_translated를 호출하세요.

Args: session_dir: extract_segments에서 반환된 세션 디렉토리 경로 segments_json: 번역된 세그먼트 JSON 배열 문자열

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_dirYes
segments_jsonYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the accumulation behavior across calls, which is important. However, it does not mention error handling, validation, or what happens if session_dir is invalid, leaving some behavioral gaps.

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?

The description is concise and well-structured: main purpose, accumulation behavior, sequencing instruction, then a clear Args list. Every sentence earns its place without redundancy.

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?

With an output schema present, return values need not be described. The description covers purpose, parameter origins, and workflow sequencing within the sibling tool context. It lacks edge-case behavior, but is complete for the primary use case.

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 compensates by explaining both parameters: session_dir as the path from extract_segments and segments_json as a JSON array string of translated segments. This adds meaning beyond bare names, though format details are not deeply specified.

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's purpose: 'Saves translated segments to the session' with a specific verb and resource. It also distinguishes itself from siblings by describing the accumulation behavior and the call to assemble_translated.

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?

The description provides explicit usage guidance: segments accumulate across multiple calls, and assemble_translated should be called after all segments are saved. It also explains that session_dir comes from extract_segments, giving a clear workflow context.

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/JaeHyeon-KAIST/pdf2zh-next-mcp'

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