Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

calculate_contract_termination

Preview contract termination dates and financial impacts without executing the termination, so you can show customers what would happen if they cancel.

Instructions

Calculate and preview a contract termination without actually executing it. Returns information such as the effective termination date and any financial impacts. Useful for showing customers what would happen if they terminate.

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

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number to preview termination for.
terminationDateNoThe desired termination date in YYYY-MM-DD format. If omitted, the earliest possible date is calculated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral load; it usefully declares the tool is non-mutating (a preview that does not execute) and lists what is returned (effective termination date, financial impacts). It omits any mention of permission requirements, how the effective date is derived when terminationDate is omitted, or what happens on invalid/too-late dates.

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 core behavior and the non-destructive guarantee. The third sentence is somewhat redundant with the second but earns its place as routing guidance.

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 preview tool with no output schema and no annotations, the description supplies the essential missing pieces: it is a read-only simulation and it returns date plus financial impact. Deeper detail (error modes, how far in advance termination must be requested) is absent but not critical to calling 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%, so both parameters are already documented, which sets the baseline at 3. The description adds only mild value by implying the returned effective termination date may differ from the requested date, but gives no further semantics for either parameter.

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+resource ('Calculate and preview a contract termination') and immediately clarifies scope with 'without actually executing it', which separates it from the sibling terminate_contract. An agent can tell it apart from the write-path sibling without reading either 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 a concrete usage context ('showing customers what would happen if they terminate') that implies when to pick this over the actual termination. It stops short of explicitly naming terminate_contract as the alternative for when the termination should be committed, so the routing guidance is clear but not fully explicit.

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