Skip to main content
Glama

Mailrun Agent Identity

Delete a knowledge file

delete_knowledge
DestructiveIdempotent

Remove one knowledge file from the identity's hosted phone agent; its stored document and text are deleted. Calls already in progress keep what they loaded; the next call no longer sees it. A repeat answers not_found. Returns the remaining list.

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": {
      "identity_id": "<identity_id>",
      "file_id": "<file_id>"
    },
    "name": "delete_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesThe knowledge file id from list_knowledge or upload_knowledge.
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructiveHint and idempotentHint, and the description adds genuinely new context: in-flight calls retain what they loaded, the next call no longer sees the file, and a repeat returns not_found. This also reconciles with idempotentHint by clarifying the end state is stable while the repeat surfaces an error.

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?

Four compact clauses, front-loaded with the action and object, then effects. Every sentence carries information, though the return-value note could be folded more tightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with no output schema, the description covers what is destroyed, the effect on active calls, repeat-call behavior, and the return value. Nothing an agent needs to call it correctly is missing.

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 both file_id and identity_id are already documented with their sources (list_knowledge/upload_knowledge and list_identities). The description adds only the framing that the identity owns the hosted phone agent, so baseline 3 is appropriate.

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?

States a specific verb ('Remove') and resource ('one knowledge file') scoped to the identity's hosted phone agent, and clarifies what exactly is deleted (stored document and text). An agent can distinguish this from upload_knowledge and list_knowledge without inspecting either schema.

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 destructive delete semantics and the not_found-on-repeat behavior, but there is no explicit when-to-use or when-not-to-use guidance, nor a pointer to list_knowledge for discovering file_id (that hint lives only in the schema). Adequate but leaves routing to inference.

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