Skip to main content
Glama
MCP-Gemini-FileSearch

MCP-Gemini-FileSearch

by amsminn

delete_document

Deletes a document from a Gemini file store using its document identifier, so you can remove outdated or unwanted files and keep search results current.

Instructions

Remove a document from the file store by its document identifier.

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

Input Schema

NameRequiredDescriptionDefault
doc_idYesDocument identifier to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about whether deletion is permanent, whether it requires ownership or elevated permissions, what happens if the doc_id does not exist, or whether related passages/indexes are also removed. For an irreversible mutation this is a significant gap; the only behavioral information conveyed is that the document is removed from the file store.

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?

One sentence, front-loaded with the verb and resource, with zero filler or redundancy. Nothing could be cut without losing meaning.

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?

The tool is structurally simple (one required parameter, no nested objects, no output schema), so the description is minimally sufficient to call it. However, for a destructive operation with no annotations and no described return behavior, an agent is left without irreversibility or failure-mode context it would need to act safely.

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% and the single parameter is already fully documented as "Document identifier to delete." The description's "by its document identifier" merely restates the schema rather than adding format, source, or lookup-hint details, so the baseline 3 applies.

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?

"Remove a document from the file store by its document identifier" names a specific verb (remove), resource (document), container (file store), and keying mechanism (identifier). It is unambiguous on its own, though it does not explicitly differentiate itself from siblings like list_documents or add_document beyond the obvious verb contrast.

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 guidance on when to use this versus alternatives, no prerequisite conditions, and no warning about when it should not be used. The only cue is the verb in the name, leaving the agent to infer that this is the destructive counterpart to add_document.

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