Skip to main content
Glama

Radera dokument

delete_document
DestructiveIdempotent

Raderar ett dokument ur bolagets dokumentarkiv permanent. Använd bara när användaren uttryckligen vill ta bort dokumentet; hitta doc_id med list_documents. Vill du bara ändra namn, kategori eller vilka bolag det gäller, använd edit_document. Returnerar ok: true. Bieffekt: dokumentet raderas och kan inte återställas. Ett dokument som används som underlag på en kund- eller leverantörsfaktura eller hör till en inkorgspost kan inte raderas; då returneras ett fel. Kräver behörigheten manage_documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYesDokumentets id (heltal), t.ex. 31. Hämta med list_documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / doc_id / description
      Added value: +"Dokumentets id (heltal), t.ex. 31. Hämta med list_documents."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes further: irreversibility ('kan inte återställas'), the specific business rule blocking deletion (documents tied to invoices or inbox items return an error), the required permission (manage_documents), and the response shape (ok: true).

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?

Front-loads the destructive action and trigger condition, then layers in alternatives, error rule, and permission. Every sentence carries actionable content, though the description is on the longer side for a single-parameter tool.

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 destructive mutation with annotations but no output schema, the description covers trigger, alternatives, reversibility, failure conditions, permissions, and the return value. Nothing an agent needs to invoke it correctly is missing.

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?

Only one parameter and schema coverage is 100%; the schema already documents doc_id type, example value, and the list_documents retrieval hint. The description repeats that hint rather than adding new syntax or format detail, so baseline 3 applies.

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 ('Raderar ett dokument ur bolagets dokumentarkiv permanent') and immediately distinguishes itself from siblings by naming edit_document and list_documents. An agent can identify the tool's scope without opening the schema.

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

Usage Guidelines5/5

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

Explicit trigger condition ('Använd bara när användaren uttryckligen vill ta bort dokumentet'), named alternatives for the non-delete cases ('använd edit_document'), and a prerequisite ('hitta doc_id med list_documents'). Exclusions are also spelled out.

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