Skip to main content
Glama

add_document

Ingest a document by providing its text content. Chunks and stores with source tracking. Good for PDFs, notes, reports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNoContext about this document
contentYesThe full text content of the document
filenameYesDocument name (used as source reference in all future results)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, so the tool is not read-only and not destructive. The description adds that it chunks and stores with source tracking, which is useful beyond annotations, but lacks details on idempotency or limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no wasted words. The description is front-loaded with the primary action and followed by relevance hints, making it efficient.

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?

The description explains the input and processing, but does not mention the output or return value, which is missing given no output schema. It adequately covers the tool's purpose but lacks completeness for a creation tool.

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 coverage is 100%, with each parameter having a clear description. The tool description does not add additional semantics beyond summarizing the input as text content, so baseline 3 is appropriate.

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 uses a specific verb 'Ingest' and resource 'document', clearly stating the action and its processing (chunks, stores, tracks source). It distinguishes from siblings by specifying 'text content' as input, contrasting with add_from_url which likely handles URLs.

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 mentions it is good for PDFs, notes, and reports, providing some context for when to use it. However, it does not explicitly state when not to use it or suggest alternatives like add_from_url for URLs.

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.