Skip to main content
Glama

Remove a knowledge file from the agent

remove_agent_document

Remove an uploaded material from the agent (see get_agent → documents[].url). Free.

Input Schema

NameRequiredDescriptionDefault
idYesAgent id (UUID) — from list_agents
urlNodocuments[].url (preferred)
filenameNodocuments[].filename if you have no url

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and 'Free' is a genuinely useful disclosure about credit consumption that isn't in any structured field. That said, it omits whether the removal is reversible, whether it takes effect immediately on the agent's knowledge, and what permissions are required — significant gaps for a destructive operation with no annotation coverage.

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?

One sentence plus a one-word cost note — nothing padding. The core action is front-loaded, though the mid-sentence parenthetical slightly interrupts reading flow.

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, 100%-documented removal tool with no output schema, this covers the minimum. But with zero annotations on a destructive call, an agent still lacks confirmation of irreversibility and side effects, which is exactly what the description would need to supply.

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% and the schema already labels url as '(preferred)' and explains filename as the fallback, plus documents the id source. The description only restates the documents[].url hint, adding no format or precedence detail beyond the schema, so the baseline 3 applies.

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?

Specific verb ('Remove') plus a scoped resource ('an uploaded material from the agent'), which clearly separates it from add_agent_document and delete_agent. Minor friction: the name says 'document' while the description says 'material', requiring a small inference that the two are the same object.

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?

Usage is implied by the verb and resource, and the parenthetical pointing at get_agent → documents[].url tells the agent where to source the identifier. However, it gives no explicit when-to-use/when-not guidance and doesn't mention that no preview_* counterpart exists, so the agent must infer this is the direct destructive path.

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