Skip to main content
Glama

Delete Knowledge Base File

trillet_delete_kb_file
DestructiveIdempotent

Delete a knowledge base file from a call flow by specifying the flow ID and file key. Use this to remove outdated or unwanted files from the flow's knowledge base.

Instructions

Delete a knowledge base file from a call flow.

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": {
      "flowId": "<flowId>",
      "fileKey": "<fileKey>"
    },
    "name": "trillet_delete_kb_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowIdYesCall flow ID
fileKeyYesKnowledge base file key to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond them: it does not say whether the underlying file is permanently destroyed or merely unbound from this flow, whether other flows using the same fileKey are affected, or what permissions are required. For a destructive operation these are meaningful omissions.

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?

It is a single front-loaded sentence with zero filler, so structure is good. The brevity is arguably under-specification rather than conciseness for a destructive tool, which keeps it from a 5.

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

Completeness2/5

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

For a destructive, idempotent mutation with no output schema, the description should clarify the blast radius of the delete (file vs. binding) and any preconditions. It covers only the name-level fact of deletion, leaving an agent unable to predict side effects.

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%, with flowId ('Call flow ID') and fileKey ('Knowledge base file key to delete') both documented, so the baseline is 3. The description's phrase 'from a call flow' only echoes the flowId parameter and adds no format, identifier, or sourcing detail beyond the schema.

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 ('Delete a knowledge base file') and adds scope ('from a call flow'), which separates it from the other delete siblings such as trillet_delete_call_flow or trillet_delete_folder. It does not name an alternative or state what distinguishes deletion of a KB file from other delete operations, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no stated prerequisites (e.g. the file must already be attached to the flow), and no mention of alternatives. An agent must infer the calling context entirely from the tool name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.