Skip to main content
Glama

Remove knowledge media

remove_knowledge_media
DestructiveIdempotent

Detach a media file from an agent's knowledge sources. Get ids from list_agents / list_media.

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": {
      "spaceId": "<spaceId>",
      "agentId": "<agentId>",
      "mediaId": "<mediaId>"
    },
    "name": "remove_knowledge_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesAgent ID from `list_agents`
mediaIdYesMedia ID to detach
spaceIdYesSpace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/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 word 'Detach' adds a useful hint that the association is unlinked rather than the media destroyed, but the description never confirms whether the underlying media file survives or whether the removal is reversible — an important question for a destructive tool.

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?

Two short sentences with the action front-loaded and the id-sourcing hint second. No filler, no restatement of the title.

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 destructive, three-required-parameter mutation with no output schema, the definition covers the action and id sourcing but omits what the agent should expect afterwards — whether the media remains in the space and whether a later add_knowledge_media can restore it. Annotations carry the safety signal, but the semantic ambiguity between 'remove' and 'detach' is left unresolved.

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 description coverage is 100%, so all three parameters are already documented in the schema, and the description correctly reinforces where agentId and mediaId come from. It adds nothing about spaceId or about id format beyond what the schema states, which is an appropriate baseline given full coverage.

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 and resource: 'Detach a media file from an agent's knowledge sources,' which clearly separates it from add_knowledge_media and remove_knowledge_project. It stops short of naming a sibling explicitly, so an agent must infer the distinction from the verb alone.

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?

Gives a concrete prerequisite path by naming `list_agents` / `list_media` as the source of required ids, which is exactly the context an agent needs before calling. It does not state exclusions or when to prefer a sibling such as remove_knowledge_project, leaving that comparison implicit.

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.