Skip to main content
Glama

Replace a knowledge base

replace_knowledge_base
DestructiveIdempotent

Replace a knowledge base

Replaces the name and content; tags change only when sent. A knowledge base can be shared by several agents and the change reaches all of them, so it is refused (403 shared_with_other_agents) unless the key can act on every agent using it.

Input Schema

TableJSON 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`.
knowledge_base_idYesA knowledge base linked to the agent. One that is not is `404 not_found`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious context: a KB can be shared across multiple agents, the change propagates to all of them, and it is refused with a specific 403 shared_with_other_agents unless the key can act on every consuming agent. That is meaningful disclosure beyond structured fields.

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?

Front-loaded with the core semantics before the sharing/error caveat. The opening restates the title verbatim, which is mildly redundant, but the body is dense and earns its sentences.

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 destructive, no-output-schema mutation tool with 5 params, the description covers the overwrite scope, the cross-agent propagation risk, and the 403 refusal condition. It does not state the return shape, but with no output schema that gap is minor.

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

Parameters4/5

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

Schema coverage is 60%, and the description compensates by clarifying the tags parameter's conditional behavior ('changes only when sent') and the overwrite semantics of name/content. The rich content and agent/knowledge_base_id error semantics live in the schema, so the description adds value mainly for tags and replacement scope.

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?

States a specific verb (replace) and resource (knowledge base) and clarifies the exact semantics: name and content are overwritten, tags only when sent. This distinguishes it from create_knowledge_base and get_knowledge_base, though the siblings are never named 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 description implies when this applies (full replacement of an existing KB) via the tags rule, but gives no explicit when-to-use versus update/create guidance or prerequisites beyond the error conditions. Usage is inferable but not spelled out.

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