Skip to main content
Glama

read_vault_chunk

Retrieve one bounded note chunk by path, chunk ID, outline hash, and original token budget; refresh the outline if the note or budget changed.

Instructions

Read one bounded chunk named by a read_vault_context outline.

Pass the path, chunk id, outline_hash, and the same max_tokens the outline was built with — chunk ids are positions in a split that depends on that budget. Returns chunk_id, uid, title, summary, heading_path, part, parts, estimated_tokens and content.

If the note changed, or max_tokens differs from the outline's, the result is {"error": "..."} naming both causes: call read_vault_context again with the budget you intend to use and read with its new outline_hash. Heading paths in an outline may be shortened for size; the chunk result carries the full one.

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": {
      "path": "<path>",
      "chunk_id": "<chunk_id>",
      "outline_hash": "<outline_hash>"
    },
    "name": "read_vault_chunk"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
commitNo
chunk_idYes
max_tokensNo
outline_hashYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.2

TDQS

A4.3/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 well: it discloses the failure mode (stale note or mismatched max_tokens yields an {"error": ...} naming both causes), the recovery procedure, a determinism caveat (chunk ids are positions in a split that depends on the budget), and a data-fidelity caveat (outline heading paths may be shortened; the chunk returns the full path). It does not state read-only/idempotency behavior or any size or rate limits, so it falls just short of exhaustive.

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?

It is front-loaded with the action, then the parameter coupling, then the return fields, then the error case — a sensible order with little waste. The parenthetical about chunk ids being positions in a split is dense but load-bearing; minor verbosity exists in the error sentence ('naming both causes').

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?

There is no output schema, and the description compensates by enumerating the returned fields (chunk_id, uid, title, summary, heading_path, part, parts, estimated_tokens, content). Error handling and the outline coupling are covered; the only real gap for a five-parameter tool is the undocumented 'commit' parameter.

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 has to compensate, and it does for four of five parameters: path, chunk_id (position in a budget-dependent split), outline_hash (must match the outline), and max_tokens (must equal the outline's budget). The 'commit' parameter is never mentioned in the description, leaving one parameter with no semantic meaning anywhere.

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 opens with a specific verb and resource plus scope: "Read one bounded chunk named by a read_vault_context outline." The 'one bounded chunk' framing plus the dependency on an outline implicitly separates it from read_vault (whole note) and from read_vault_context (which produces the outline/chunk 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 a concrete prerequisite (the chunk id must come from a read_vault_context outline) and a matching constraint (pass the same max_tokens used to build the outline), plus an explicit recovery path: re-call read_vault_context with the intended budget and use the new outline_hash. What's missing is an explicit statement of when to prefer read_vault instead of reading chunks.

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