Skip to main content
Glama

Avbryt schemalagt utskick

cancel_scheduled_invoice_send
DestructiveIdempotent

Avbryter ett schemalagt utskick av en kundfaktura (se send_customer_invoice med send_at). Fakturan förblir bokförd och kan skickas senare. Scope book. Argument: orgnr, invoice_id.

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": {
      "orgnr": "<orgnr>",
      "invoice_id": "<invoice_id>"
    },
    "name": "cancel_scheduled_invoice_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
invoice_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the description is not carrying the safety burden alone. It still adds real value by bounding the destruction — the invoice stays booked and can be sent later — and by naming the required API scope ('Scope book'). It does not say what happens if no scheduled send exists, which would complete the mutation picture.

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?

Three short sentences, front-loaded with the action and followed by the consequence and scope. The trailing 'Argument: orgnr, invoice_id' is pure duplication of schema fields and earns no place, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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, the description covers the action, the preserving consequence, the API scope, and the related sibling. Missing only edge-case behavior (no schedule present, error/confirmation semantics) and any meaning for invoice_id.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: orgnr is documented in the schema with format and a pointer to list_companies, while invoice_id has no description at all. The description only restates the parameter names ('Argument: orgnr, invoice_id') and gives no format, source, or meaning for invoice_id, so it fails to compensate for the gap.

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 ('Avbryter ett schemalagt utskick av en kundfaktura') and immediately ties it to the originating action ('se send_customer_invoice med send_at'), so an agent can separate it from send_customer_invoice or cancel_customer_invoice 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?

The description makes the selecting condition clear: use this to stop a pending scheduled dispatch while keeping the invoice booked and sendable later. It names the sibling that created the schedule. It stops short of explicitly excluding cancel_customer_invoice or stating prerequisites, so it is strong but not fully explicit about alternatives.

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.