Skip to main content
Glama

add_document

Add PDF or text files to the Commodore 64 knowledge base to expand searchable documentation for indexing and retrieval.

Instructions

Add a PDF or text file to the knowledge base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYesFull path to the PDF or text file
titleNoDocument title (optional, defaults to filename)
tagsNoTags for categorization (e.g., 'memory-map', 'sid', 'basic', 'assembly')
Behavior2/5

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

No annotations are provided, so the description must carry behavioral disclosure. It states 'add' but does not explain side effects (e.g., triggers entity extraction, overwrites existing, requires permissions) or return behavior, which is insufficient for a write operation.

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?

The description is a single, concise sentence with no wasted words. It is front-loaded and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and three parameters, the description should hint at what the tool returns (e.g., document ID or success message) and address edge cases like duplicate handling or file size limits. It lacks these details, making it incomplete for a file-adding 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 description coverage is 100%, so the baseline is 3. The description adds marginal value by confirming file types (PDF/text) matching the schema's 'Full path to PDF or text file', but it does not elaborate on how title and tags are used or provide additional semantic context beyond 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 clearly states the action 'Add' and the resource 'PDF or text file to the knowledge base', distinguishing it from siblings like add_documents_bulk (bulk) and scrape_url (from URL). However, it does not explicitly indicate it handles single documents only, which could be inferred but is not stated.

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?

No guidance on when to use this tool versus alternatives such as add_documents_bulk or scrape_url. No mention of prerequisites like file existence or permissions, leaving the agent without context for appropriate invocation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MichaelTroelsen/tdz-c64-knowledge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server