Skip to main content
Glama

Add knowledge to an agent

create_knowledge_base
Destructive

Add knowledge to an agent

Text knowledge, linked to the agent: the agent's AI context is rebuilt in the background, usually within a minute. The answer's message_weight says what the agent now reads (Main Instructions, active knowledge, active attachments' text, in characters) and what one of its replies costs; when it has a notice, pass it on to the user.

Input Schema

NameRequiredDescriptionDefault
nameYes
tagsNo
contentYesStored and given to the AI exactly as sent; send plain text. The dashboard shows content as rich text, so text shaped like an HTML tag, such as a placeholder in angle brackets, does not appear there and is lost if someone edits the entry in the dashboard.
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

With annotations already declaring the mutation and destructive profile, the description adds valuable context beyond them: the agent's AI context is rebuilt in the background 'usually within a minute,' and the response's `message_weight` and optional `notice` are explained. It does not cover permission errors, though the agent_id schema does.

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?

The description is front-loaded with the purpose and avoids filler. The sentence about `message_weight` is slightly dense but earns its place by explaining the response without an output schema.

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 create tool with no output schema, the description usefully explains the background rebuild and response fields. However, it leaves the required `name` parameter and `tags` array undocumented anywhere, which is a notable gap for an agent trying to invoke this correctly.

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 coverage is only 50%, and the description adds no meaning for the undocumented required `name` parameter or the `tags` array. The content and agent_id parameters are already well-documented in the schema, so the description does not 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 knowledge to an agent' and 'Text knowledge, linked to the agent.' An agent can tell this creates a text knowledge entry for an agent, but it does not differentiate from siblings like replace_knowledge_base or create_attachment.

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 phrase 'Text knowledge, linked to the agent' implies this is the tool for adding new text knowledge, but there is no explicit when-to-use guidance and no mention of when to prefer replace_knowledge_base or other alternatives.

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.

Resources