Skip to main content
Glama

Document Remove

document_remove

Remove a specific document from the project store by category and name to keep guidelines and context current.

Instructions

Remove a document from the store by category and name.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • category (required): string

    • Category the document belongs to

  • name (required): string

    • Document name to remove

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": {
      "args": "<args>"
    },
    "name": "document_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for document_remove tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

C2.8/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 for a destructive operation. "Remove" implies deletion but the text never states whether it is permanent or reversible, whether confirmation or elevated permissions are required, or what happens on a missing document. The session_id prose is transport guidance, not behavior about the removal itself.

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 lead sentence is short and front-loaded, which is good. The Arguments section, however, duplicates the input schema's own descriptions word for word and pads the definition without adding information, so not every line earns its place.

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?

This is a destructive removal with no annotations and no output schema, so the description is the only place to learn about irreversibility, failure modes, and side effects — and it says none of that. For a nested-args mutation tool, this leaves meaningful gaps before an agent can call it confidently.

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 100% and both required parameters already carry descriptions in the schema. The Arguments block restates them essentially verbatim, adding no new meaning such as case sensitivity, path-vs-name semantics, or whether category must already exist, 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?

The opening sentence names a specific verb and resource ("Remove a document") plus the two identifying dimensions (category and name), which is unambiguous. It does not, however, distinguish itself from plausible siblings such as document_update or category_collection_remove, so an agent must infer the boundary itself.

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 document_update or the category_collection_* tools, and no stated preconditions. Nothing tells the agent what to do if the named document does not exist, or whether session_id is needed for a deletion to be attributed correctly.

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