Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

terminate_contract

Terminate an active contract with a chosen end date, optional extraordinary termination, customer notification, subscription auto-downgrade, and invoice correction control.

Instructions

Terminate an active contract. Supports ordinary and extraordinary termination, with options to notify the customer, auto-downgrade subscription items, and skip invoice corrections. The terminationDate controls when the contract ends.

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": "terminate_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number to terminate.
terminationDateNoThe date the contract should be terminated, in YYYY-MM-DD format. If omitted, the earliest possible date is used.
sendMailToCustomerNoWhether to send a termination notification email to the customer.
skipInvoiceCorrectionNoWhether to skip generating invoice corrections during termination.
extraordinaryTerminationNoWhether this is an extraordinary (immediate) termination, bypassing the normal notice period.
autoDowngradeSubscriptionItemsNoWhether to automatically downgrade subscription items upon termination.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

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 real side effects: customer notification email, invoice corrections, and subscription downgrades. However, it omits whether termination is immediate or effective at period end when terminationDate is omitted, whether the action is reversible, and what permissions or confirmations are required for a destructive write.

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 sentences, no preamble, purpose front-loaded followed by the option set. The final sentence about terminationDate largely duplicates what the schema already says about that parameter, so it is close to wasted space, but the overall structure is tight.

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 six-parameter destructive mutation with no annotations and no output schema, the description covers purpose and side-effect flags but leaves the agent guessing about reversibility, effective-date semantics, and the difference from cancel_contract. It is adequate but has meaningful gaps for a high-risk operation.

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 description coverage is 100%, so the parameters are already fully documented, including the YYYY-MM-DD format and the default-to-earliest behavior. The description only restates that terminationDate controls the end date plus a high-level gloss of the boolean flags, adding little beyond the schema; baseline 3 applies.

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?

The description names a specific verb and resource ("Terminate an active contract") and enumerates the supported modes (ordinary vs. extraordinary) and optional side effects. It is clear on its own, but it does not differentiate itself from near-neighbors such as cancel_contract or calculate_contract_termination, which an agent will likely hesitate between.

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

Usage Guidelines3/5

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

The phrase "active contract" implies a precondition, and the ordinary/extraordinary split implies when each mode applies, but neither is stated explicitly. There is no guidance on when to use this versus cancel_contract, nor any suggestion to preview the effect with calculate_contract_termination first.

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