Skip to main content
Glama

Delete a document from Phở

delete_document
DestructiveIdempotent

Delete a document that was read through read_document from the user's Phở account: the stored file and its extracted text are removed. Call it only when the user asks to delete it. Files the user uploaded on pho.chat are not deleted here.

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": {
      "document_id": "<document_id>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the description is not obligated to restate the safety profile. It adds real value by specifying the blast radius — both the stored file and its extracted text are removed — and by scoping out pho.chat uploads. It does not say whether deletion is recoverable, which is the one notable gap for an irreversible operation.

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?

Two sentences, front-loaded with the action and its effect, then the gating condition, then the scope exclusion. Every clause carries distinct information; nothing is restated from the title or annotations.

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

Completeness4/5

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

For a single-parameter destructive tool whose annotations already carry the safety profile, the description covers what is deleted, when to invoke it, and where it does not apply. The remaining gaps are the undocumented document_id and the absence of any statement about permanence or failure behavior.

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

Parameters2/5

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

Schema description coverage is 0%: document_id has only a UUID pattern and no prose. The description never names the parameter, but it does imply its provenance by requiring the document to have been read through read_document, which narrows where a valid ID can come from. That is useful but thin compensation for a completely undocumented parameter.

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 and resource ("Delete a document") plus the exact scope: a document previously read via read_document from the user's Phở account, with the stored file and extracted text both removed. It also draws a hard boundary against pho.chat uploads, so an agent can separate this from read_document and list_documents without inspecting schemas.

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

Usage Guidelines4/5

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

"Call it only when the user asks to delete it" is an explicit gating condition, and the pho.chat exclusion tells the agent when this tool does not apply. What is missing is a named alternative for the excluded case — the agent learns the uploads case is out of scope but not which tool handles it.

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.