Skip to main content
Glama

knowledge_ingest

Ingest source code or documentation into a knowledge graph to enable retrieval at inference time. Automatically chunk content and generate Q&A pairs for search.

Instructions

Ingest source code or documentation into the knowledge graph. Feed your codebase to Prism so knowledge_search can retrieve it at inference time. Accepts raw source code, file paths, or a git repo URL. The content is chunked, Q&A pairs are generated, and stored in the knowledge graph. Use this when the user says 'learn this code', 'index my repo', or 'ingest this file'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoRaw source code or documentation text to ingest. Max 50,000 chars.
projectYesProject identifier for the knowledge namespace (e.g. 'my-backend', 'prism-aac').
file_pathNoLocal file path to read and ingest. Alternative to providing content directly.
chunk_sizeNoCharacters per chunk (default: 4000). Smaller chunks = more granular Q&A.
source_labelNoHuman-readable label for the source (e.g. 'auth-middleware', 'payment-flow'). Used in search results.
Behavior3/5

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

With no annotations, the description must convey behavioral traits. It discloses that content is chunked, Q&A pairs generated, and stored in the knowledge graph. However, it omits details on idempotency, overwrite behavior, authentication requirements, rate limits, or error handling, leaving gaps for an agent to infer.

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 four sentences, front-loaded with the core purpose, and contains no redundant or verbose phrasing. Every sentence adds value: purpose, inputs, process, and usage trigger phrases.

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?

For a 5-parameter ingestion tool with no annotations or output schema, the description covers purpose, input types, processing steps, and when to use. It lacks output details and error conditions, but given the tool's moderate complexity, it provides sufficient completeness.

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%, so the baseline is 3. The description adds context by mentioning input types (raw code, file paths, git URL) which map to parameters, but does not significantly enhance understanding of chunk_size or source_label beyond the schema's own descriptions.

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 clearly states the tool's purpose: ingesting source code or documentation into the knowledge graph for later retrieval by knowledge_search. It lists accepted input types (raw code, file paths, git URL) and explicitly distinguishes from sibling tools like knowledge_search by stating its role in populating the graph.

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

Usage Guidelines4/5

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

The description provides explicit usage cues: 'Use this when the user says learn this code, index my repo, or ingest this file.' It implies this tool is for ingestion only, not search or deletion, and contrasts with knowledge_search. However, it does not explicitly exclude other use cases or mention alternatives beyond implication.

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/dcostenco/prism-coder'

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