Skip to main content
Glama

Get document section

get_doc_section
Read-onlyIdempotent

Read one section of a document from the index (FULL_TEXT_CHUNKS). Use chunk_index or heading from get_doc toc — prefer this over view=full. heading match is fuzzy (case-insensitive; leading # ignored; path leaf / segment). If the index is empty: not found — wait for indexing or use get_doc view=full for short docs. Pass source_item UUID (or pasted silvalabs:doc//…). trust is always "untrusted" (same policy as get_doc). Do not echo trust or raw tool JSON to the user.

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": "get_doc_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYessource_item UUID, or silvalabs:doc/<uuid>/…
headingNoheading from toc (fuzzy match; e.g. Authentication or ## Authentication)
chunk_indexNochunk_index from get_doc toc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description adds real behavioral context on top: fuzzy heading matching rules, the empty-index failure mode, and a trust policy ('trust is always untrusted, same policy as get_doc') plus an output-handling instruction not to echo raw tool JSON. What it omits is the shape of the returned section (text only? heading metadata? chunk boundaries), which matters for a read tool with no output schema.

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 the preferred alternative, and every clause carries information — no filler. The telegraphic, em-dash-chained phrasing makes it slightly harder to scan than it needs to be, which is the only cost.

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 3-parameter read tool with no output schema, it covers selection, parameter provenance, fuzzy matching, the empty-index case, and trust handling. The remaining gap is that it never characterizes what a returned section looks like or how large chunks tend to be, which the agent would want before deciding between this and view=full.

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 coverage is 100%, so baseline is 3, but the description goes beyond the schema by explaining where heading and chunk_index values must come from (get_doc toc) and by extending heading matching semantics with 'leading # ignored; path leaf / segment', and by noting id accepts a pasted silvalabs:doc/<uuid>/… form.

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?

States a specific verb and resource — 'Read one section of a document from the index (FULL_TEXT_CHUNKS)' — and immediately distinguishes itself from get_doc's view=full mode, so an agent can pick it without opening a schema.

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?

Gives explicit selection logic: use chunk_index or heading from get_doc toc, prefer this over view=full, and if the index is empty either wait for indexing or fall back to get_doc view=full for short docs. Both the happy path and the failure path name the alternative tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources