Skip to main content
Glama

Ta bort instruktion

delete_instruction
DestructiveIdempotent

Tar bort en sparad instruktion permanent. Använd när användaren ber dig glömma en regel eller när den inte gäller längre. Argument: instruction_id (från list_instructions). Returnerar id och texten som togs bort. Kräver behörigheten manage_documents i bolaget; instruktioner för alla bolag tas bara bort av kontots administratör.

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": {
      "instruction_id": "<instruction_id>"
    },
    "name": "delete_instruction"
  }
}

Input Schema

NameRequiredDescriptionDefault
instruction_idYesInstruktionens id från list_instructions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds value beyond that by disclosing the required 'manage_documents' permission and that cross-company instructions are restricted to the account administrator, plus what is returned.

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?

Four short, dense sentences: purpose, trigger, argument, return value, and permission. Nothing is wasteful and the destructive framing leads.

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?

No output schema exists, and the description compensates by explaining the return value (id and deleted text). Permissions and scope restrictions are covered, so an agent has everything needed to call it correctly.

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 schema field description already states 'Instruktionens id från list_instructions', which the description merely repeats. With the schema doing the heavy lifting, this is the baseline 3.

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 ('Tar bort en sparad instruktion permanent') with the permanence qualifier front-loaded. An agent can immediately distinguish this from update_instruction or list_instructions without consulting 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 Guidelines4/5

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

Gives concrete triggering conditions ('när användaren ber dig glömma en regel eller när den inte gäller längre'). However, it does not explicitly contrast with update_instruction as the non-destructive alternative, leaving that inference to the agent.

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