Skip to main content
Glama
mcp-knowledge-base

mcp-knowledge-base

by shelldon0x

ingest_document

Add a new Markdown or plain-text document to the local knowledge base, enabling AI assistants to search and retrieve it without external APIs.

Instructions

Add a new document (markdown or plain text) to the knowledge base.

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": {
      "title": "<title>",
      "content": "<content>"
    },
    "name": "ingest_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
contentYes
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool, and it discloses almost nothing: no permissions required, no duplicate/overwrite behavior, no indexing timing, no reversibility, no indication of what the call returns. The only behavioral detail given is the accepted content formats.

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?

A single compact sentence with no wasted words, and the core action is front-loaded. It is efficient, but the brevity is achieved by omitting necessary detail rather than by tight editing.

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?

For a simple three-parameter write tool with no output schema, the description covers the basic action and format, which is the minimum an agent needs to attempt a call. However, with no annotations and an undocumented nested metadata parameter, it leaves meaningful gaps around side effects and parameter usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, and the description clarifies only that 'content' takes markdown or plain text — nothing about 'title' constraints or the nested 'metadata' object with its string-or-string-array values. With nested objects present and zero schema documentation, the description fails to compensate for the coverage gap.

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 states a specific verb and resource ('Add a new document') plus the destination ('knowledge base') and accepted formats ('markdown or plain text'). That lets an agent distinguish ingestion from update_document or get_document, though it never names those siblings explicitly.

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 word 'new' weakly implies this is for first-time ingestion rather than modifying an existing entry, which hints at why one would pick it over update_document. There is no explicit when-to-use or when-not-to-use guidance, no prerequisite conditions, and no statement about duplicate handling.

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