Skip to main content
Glama

Delete a file

delete_object
DestructiveIdempotent

Delete a file from its bucket. Use when the user asks to remove a stored file; this cannot be undone. Before: a file id from list_objects (needs storage read access). Returns the confirmation of the deletion. Scope: storage:write. Cost: free; the file stops being billed.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "obj_0123456789abcdef0123456789abcdef"
    },
    "name": "delete_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFile id (obj_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known; the description still adds real context beyond them: irreversibility, the prerequisite read access, the write scope, and the billing effect ('the file stops being billed'). It also states what comes back ('the confirmation of the deletion') in the absence of an output schema.

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?

It is a short, front-loaded block: what it does, when to use it, irreversibility, prerequisite, return, scope, and cost, each in a compact clause. No sentence is redundant and the riskiest fact (cannot be undone) appears early.

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 one-parameter, non-open-world destructive tool with no output schema, the definition covers trigger, precondition, permission scope, reversibility, and return shape. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the pattern for the obj_... id is documented in the schema, so the baseline would be 3. The description goes slightly beyond it by identifying where the id comes from (list_objects) and what access that lookup requires, which is genuinely new operational meaning rather than a restatement.

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 names a specific verb and resource ('Delete a file from its bucket') and scopes it to stored files, which is enough for an agent to tell it apart from neighboring read tools such as list_objects or get_object. The title alone is not doing the work; the sentence itself 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 Guidelines5/5

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

It gives an explicit when-to-use trigger ('when the user asks to remove a stored file'), an explicit consequence ('this cannot be undone'), a prerequisite ('a file id from list_objects') with its own access requirement (storage read), and the required scope (storage:write). That is the full when/how/precondition set an agent needs before calling a destructive operation.

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