Skip to main content
Glama

DELETE /api/files

api_delete_files
Destructive

Existing api/files API operation. Uses the OneSimpleAPI API (https://onesimpleapi.com/docs), with the same permissions, credits and storage. Supply API parameters in query or body. method defaults to DELETE. Outputs preserve HTTP status, headers and JSON/text/base64 body; redirects are returned without following them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
bodyNoAPI request body. Nested objects, arrays, HTML, base64 data and all API options retain their original meaning.
pathNo
filesNoMultipart uploads keyed by API field name (for example pdf). Supply file_name, base64 bytes and optional mime_type. Uploads use the existing API file validators.
queryNoURL query parameters. Sensitive API options must be in body as documented by the API.
methodNo
headersNoAPI request headers such as Idempotency-Key, Range and If-None-Match. Authentication and transport headers are managed by the connection.
content_typeNoDefaults to application/json, or multipart/form-data when files are supplied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description adds useful behavioral context beyond annotations: it notes shared permissions/credits/storage, that HTTP status, headers, and body are preserved, and that redirects are not followed. However, it does not explain what exactly gets deleted or whether the operation is irreversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably short and covers several points, but it is not front-loaded with the core purpose; the opening sentence is tautological and the useful behavioral details are buried later. Every sentence does contribute some information, but the structure could be clearer.

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 delete operation with seven parameters, no output schema, and nested objects, the description is incomplete. It never explains what files are targeted, what the url/status parameters mean, or what a caller must supply, leaving the generic schema descriptions ('Existing API parameter; processed by...') to carry meaning they do not provide.

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 71%, so the schema already documents most parameters, including the method enum and content_type defaults. The description adds only the general rule that API parameters go in query or body and that method defaults to DELETE, which is largely duplicative of the schema. It does not clarify the meaning of the url or status body/query parameters beyond the schema's generic controller references.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence, 'Existing api/files API operation,' largely restates the name and title without stating a specific verb or resource meaning beyond what is already encoded in 'api_delete_files' and 'DELETE /api/files'. It never explicitly says it deletes files, nor does it distinguish this operation from sibling delete tools such as api_delete_image_recipes_name or api_delete_shortener_delete.

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?

The description gives mechanical instructions ('Supply API parameters in query or body', 'method defaults to DELETE') but no guidance on when to use this tool versus alternatives, no prerequisites, and no indication of what resource or conditions it is intended for. An agent must infer usage entirely from the name and title.

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