Skip to main content
Glama

Get knowledge document text

get_knowledge_document_text
Read-onlyIdempotent

Read the text Skysay extracted from one document, a page of at most limit characters (default and at most 50,000) from offset.

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": {
      "project_id": "<project_id>",
      "document_id": "<document_id>"
    },
    "name": "get_knowledge_document_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
project_idYesThe workspace project the knowledge base belongs to.
document_idYes
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds that reads are paginated in characters from an offset, which is genuine behavioral context the annotations lack, but it says nothing about the response shape, truncation signalling beyond the limit, or behavior for unextracted documents.

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 compact sentence with the operation front-loaded and no filler. The trailing parenthetical 'default and at most 50,000' is redundant with the schema and the clause ordering ('a page of at most limit characters ... from offset') is slightly awkward, but the total length is well judged.

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?

There is no output schema, so the description carries the burden of saying what comes back, and it only implies a text page without stating the return type or how to detect the end of the document. For a five-parameter read tool this is adequate but leaves real gaps an agent would hit on the second call.

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?

With 40% schema coverage, two of the five parameters (document_id, and largely limit/offset) rely on the description, and it does clarify that offset is measured in characters and that limit is a per-page cap defaulting to 50,000. It adds no meaning for project_id or organization_id beyond the schema, and the limit maximum it restates is already in the schema.

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 uses a specific verb ('Read') plus a specific resource ('the text Skysay extracted from one document'), which clearly separates it from siblings like add_knowledge_document and list_knowledge_documents. The only weakness is that it never names a sibling or states that it returns extracted content rather than the source file, so differentiation is inferred from the resource phrase alone.

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

Usage Guidelines2/5

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

It implies the use case (fetching extracted text of a single document) but gives no explicit when-to-use, no prerequisites such as needing a document_id from list_knowledge_documents, and no note about what to do when extraction has not finished or the document is empty. The agent must guess how this fits alongside the other knowledge tools.

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.