Skip to main content
Glama

yuque_get_doc_version_detail

Retrieve document version details including format, body content, diff, and metadata. Set raw=true to bypass truncation for payloads over 20,000 characters.

Instructions

Get version detail (format/body/body_md/body_html/body_asl/diff + meta). Fields over 20000 chars are truncated — pass raw=true for the full payload. GET /doc_versions/:id. 详见 references/api/doc_api.md

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": {
      "id": "<id>"
    },
    "name": "yuque_get_doc_version_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesVersion ID (required)
rawNoReturn raw full JSON (default false, returns trimmed fields)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose a non-obvious behavioral trait: fields over 20000 chars are truncated, with raw=true as the escape hatch. It also pins the underlying call (GET /doc_versions/:id). It stops short of noting auth/permission requirements or error behavior for missing versions.

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?

Front-loaded with purpose and returned fields, then the truncation caveat, then the endpoint. Dense and largely waste-free, though the trailing Chinese reference pointer is low-value clutter for an agent that cannot follow it inline.

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 simple two-parameter read tool with no output schema, the description compensates well by enumerating the return fields and the truncation rule. The main residual gap is that permissions/error conditions are unstated, which matters somewhat given the absence of annotations.

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 coverage is 100%, so both id and raw are already documented in the schema, giving a baseline of 3. The description reinforces the raw flag's purpose by tying it to the 20000-char truncation threshold, but adds no new semantics for id and no format details beyond what the schema states.

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 ("Get version detail") and enumerates the returned fields (format/body/body_md/body_html/body_asl/diff + meta), so an agent knows exactly what comes back. It implicitly distinguishes itself from the sibling list tool yuque_get_doc_versions via "detail", but never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the name and the detail-vs-list distinction, and the description gives one actionable rule ("pass raw=true for the full payload"). However, it never states when to prefer yuque_get_doc, yuque_get_doc_versions, or yuque_diff_doc_versions, nor any exclusions or prerequisites.

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