Skip to main content
Glama
hedging8563

TokenLab MCP Server

by hedging8563

Delete file

delete_file
DestructiveIdempotent

Delete a batch file or bound image/reference file. Supports Anthropic Files API mode for bound workspaces.

Instructions

Delete file Deletes a batch file or a bound image/reference file. When the request includes anthropic-beta: files-api-2025-04-14, the route uses Anthropic Files API mode for the bound workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYesFile ID returned by the Files API.
anthropic-betaNoInclude files-api-2025-04-14 to use Anthropic Files API mode.
Behavior3/5

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

Annotations already mark destructiveHint=true and readOnlyHint=false. The description adds context about the types of files it can delete (batch, bound image/reference) and the optional beta mode, but does not elaborate on irreversible nature or side effects.

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?

Two sentences; the first is redundant ('Delete file' repeats the title). Could be tighter, but overall brief and front-loaded with the core action.

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 delete tool, the description covers the action and the special beta mode. However, it omits return value expected (no output schema), error behavior, and whether deletion is asynchronous. Adequate but with noticeable gaps.

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% with descriptions for both parameters. The main description adds no additional semantics beyond the schema; it mentions the beta header in passing but does not enhance parameter understanding.

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?

The description clearly states it deletes files, specifying types (batch file or bound image/reference file). It distinguishes from siblings like retrieve_file or list_files by its destructive action.

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?

No explicit guidance on when to use this tool versus alternatives like retrieve_file or edit_image. The only usage hint is about the anthropic-beta header for a specific API mode, but no context on when deletion is appropriate or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hedging8563/tokenlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server