Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

cancel_contract

Cancel a contract to undo its activation or abandon an unbilled contract, returning it to a non-active state.

Instructions

Cancel a contract. This reverts the contract, typically moving it back to a non-active state. Use this to undo an activation or abandon a contract that has not yet been billed.

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": {
      "contractNumber": "<contractNumber>"
    },
    "name": "cancel_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.6/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 the core effect: the contract is reverted to a non-active state. However, it says nothing about irreversibility, required permissions, or side effects on related records such as invoices or scheduled billing, and the hedge 'typically' leaves the actual outcome ambiguous.

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 effect and usage conditions; every sentence contributes. The opening 'Cancel a contract' is mild duplication of the tool name but serves as an anchor.

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 one-parameter mutation with no annotations and no output schema, the definition covers effect and intent adequately. It falls short on what 'typically' hedges, whether the operation is reversible, and how it differs from terminate_contract, all of which matter for a destructive action.

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?

There is a single required parameter with 100% schema description coverage, so the schema already explains contractNumber fully. The description adds no format, sourcing, or validation detail beyond 'the contract to cancel'.

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?

Names a specific verb and resource ('Cancel a contract') and adds the resulting state change ('reverts the contract, typically moving it back to a non-active state'), which is more than a restatement of the name. It does not distinguish itself from the sibling terminate_contract, which is the one alternative an agent most needs to separate from cancel.

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 two concrete when-to-use conditions: undo an activation, or abandon a contract not yet billed. The 'not yet been billed' qualifier implicitly scopes it against termination, but the exclusion is never made explicit and no sibling is named.

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

Deploy Server

Other Tools