Skip to main content
Glama

View Chunk Neighbor Context

view_chunk_context

Inspect adjacent chunk windows by chunk_id to diagnose chunk-boundary defects such as split Markdown tables, truncated paragraphs, or missing heading levels.

Instructions

根据 chunk_id 只读查看同一文档版本号内前后相邻窗口切片,并自动诊断 Markdown 表格跨块劈断、段落截断或标题层级缺失等切片边界问题。

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": {
      "chunk_id": "<chunk_id>"
    },
    "name": "view_chunk_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowNo前后扩展展示的相邻切片窗口半径,范围 0–5,默认 1
chunk_idYes目标切片 ID(可从 inspect_retrieval 结果中的 chunk_id 获取)
tenant_idNo可选:用于校验租户边界隔离

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose useful behavior: read-only, scoped to the same document version, and automatic boundary diagnostics. It omits error behavior for invalid chunk_id, how tenant isolation is enforced, and what the returned diagnostic payload looks like.

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?

A single dense sentence leads with the read-only neighbor-window view and then the diagnostic capability. Nothing is wasted, though the sentence is packed and could be split for faster scanning.

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

Completeness3/5

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

For a 3-parameter, read-only tool with no annotations and no output schema, the description covers the core scope and diagnostic purpose but leaves gaps around error handling, the tenant boundary parameter, and the shape of returned diagnostics. Adequate but not complete.

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 100%, so the schema already documents chunk_id, window radius, and tenant_id. The description's '前后相邻窗口切片' loosely reflects the window parameter but adds no syntax or constraints beyond what the schema states; baseline 3 applies.

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 states a specific verb and resource: read-only viewing of adjacent window chunks within the same document version, plus automatic diagnosis of chunk boundary problems. It is clear what the tool does, but it does not name a sibling such as inspect_retrieval, so the distinction from neighboring tools is only implied.

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?

The description implies when to use the tool, namely to inspect neighboring chunks and diagnose table splitting, paragraph truncation, or missing headings. However, it never states when not to use it or which sibling to prefer for a different task; the usage context is only implied.

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