Skip to main content
Glama
admin0330

KnowledgeBase MCP

by admin0330

kb_read_document

Extract plain text from a document in your knowledge base for quoting or summarizing, with an optional character limit to control response size.

Instructions

Return the extracted plain text of one document (for quoting/summarising).

:param relpath: Path relative to the volume root, e.g. _Inbox/foo.pdf. :param max_chars: Maximum characters to return (1-50000).

Input Schema

NameRequiredDescriptionDefault
relpathYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 usefully discloses that the return is extracted text (not raw bytes), but says nothing about behavior on missing files, truncation signaling, or permission/error conditions. The output schema covers the return shape, which offsets this somewhat.

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?

One front-loaded sentence stating the purpose, followed by a compact param block. No wasted prose, though the Sphinx-style ':param' formatting is slightly redundant with the schema.

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?

An output schema exists so return values needn't be described, and both parameters are documented. The remaining gap is error/missing-file behavior and how truncation is indicated to the caller.

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 must compensate, and it does: relpath is defined relative to the volume root with a concrete example, and max_chars is bounded (1-50000). The default value of 6000 is only in the schema, and truncation semantics aren't spelled out, keeping it short of a 5.

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?

States a specific verb and resource: return the extracted plain text of one document. The 'one document' scope implicitly separates it from kb_search and kb_list_tree, though no sibling is named.

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 parenthetical '(for quoting/summarising)' implies a use case, but there is no explicit when-to-use/when-not guidance and no routing to kb_search for finding a path first.

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