Skip to main content
Glama

cancel_offer

Cancels a Fortnox offer by document number, keeping it in the list marked cancelled with totals zeroed; supports dry-run preview before applying.

Instructions

Cancel an offer (it stays in the list, marked cancelled, total zeroed).

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": {
      "document_number": "<document_number>"
    },
    "name": "cancel_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
document_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: the offer is not deleted but retained and marked cancelled with the total zeroed, which signals a reversible-looking soft-cancel rather than a hard delete. It omits permissions required, whether cancellation is undoable, and what the return looks like, so it is informative but incomplete.

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?

One sentence, front-loaded with the action, with the parenthetical delivering the operative detail about resulting state. Nothing is wasted and no scanning is required.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no annotations and no output schema, the description covers the post-cancellation state well but leaves dry_run entirely unexplained and says nothing about error conditions or required permissions. It is adequate to identify the tool but not fully sufficient to invoke it confidently.

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 description coverage is 0%, so the description must compensate; it explains the effect of cancelling but never mentions document_number or the dry_run flag. The dry_run parameter is particularly underserved—an agent gets no indication that it can preview the cancellation and zeroed total without committing, which is a real gap for a 2-parameter mutation tool.

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?

"Cancel an offer" is a specific verb plus resource, and the parenthetical clarifies the exact effect (stays in list, marked cancelled, total zeroed), which distinguishes it from siblings like cancel_invoice and cancel_order by resource alone. It does not explicitly contrast with update_offer or offer_to_order, but the purpose is unambiguous.

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?

The description gives no when-to-use or when-not-to-use guidance, no prerequisites, and no routing to alternatives such as update_offer (for edits) or offer_to_order. An agent must infer from the name alone when cancellation is appropriate versus modifying the offer.

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