Skip to main content
Glama

Delete document

delete_doc
Destructive

Write: soft-delete an agent-owned doc/card (source_type=api) only. Human url/file cards → forbidden via MCP. After success the doc is no longer visible to the agent (soft-delete, not a hard wipe). DELETE /api/v1/source-items/{id}/agent confirm_title must exactly match the effective title (display_title or title from get_doc). Needs ingest:write.

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": {
      "id": "<id>",
      "confirm_title": "<confirm_title>"
    },
    "name": "delete_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYessource_item UUID or silvalabs:doc/<uuid>/…
confirm_titleYesExact effective title to confirm delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructiveHint=true; the description adds what actually happens (soft-delete, not a hard wipe), the post-condition (doc no longer visible to the agent), the required permission (ingest:write), and the underlying endpoint. That is genuine behavior beyond the structured fields.

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

Conciseness4/5

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

The leading "Write:" marker and the eligibility constraint are front-loaded, and every sentence carries distinct information. The raw endpoint string is the only element of marginal value to an agent.

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 two-parameter destructive mutation with no output schema, it covers safety scope, permission requirement, post-delete visibility, and confirmation-value sourcing. Little an agent needs in order to call 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%, so the baseline would be 3, but the description adds real meaning: confirm_title must exactly match the effective title, defined as display_title or title from get_doc. That tells the agent where to source the value, which the schema does not.

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?

"Write: soft-delete an agent-owned doc/card (source_type=api) only" names a specific verb, resource, and eligibility scope in one clause. The exclusion of human url/file cards further narrows it, so an agent can tell this apart from update_doc_body or create_doc without opening a schema.

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?

It gives a clear when-not rule ("Human url/file cards → forbidden via MCP"), which is the main selection risk for a delete tool. It does not name a sibling alternative for those forbidden cases, so it stops short of full routing guidance.

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