Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

update_contract

Modify an existing Fakturia contract by updating only the fields you provide, including billing, payment method, trial settings, and invoice or credit note text overrides.

Instructions

Update an existing contract in Fakturia. Only the provided fields will be changed. Can modify billing settings, payment methods, trial configuration, text overrides, and other contract properties.

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

Input Schema

NameRequiredDescriptionDefault
nameNoA human-readable name for the contract.
recurNoThe recurrence interval (e.g. 1 for monthly if recurUnit is MONTH).
dueUnitNoThe payment due period unit.
duePeriodNoThe payment due period value.
issueDateNoThe issue date of the contract in YYYY-MM-DD format.
recurUnitNoThe recurrence unit (e.g. MONTH, YEAR).
taxConfigNoTax configuration for this contract.
trialUnitNoThe trial period unit.
couponCodeNoA coupon code to apply to this contract.
projectNameNoThe project name to associate with this contract.
trialPeriodNoThe trial period length.
accountNumberNoThe billing account number to associate with this contract.
paymentMethodNoThe payment method for this contract (e.g. INVOICE, DIRECT_DEBIT).
contractNumberYesThe unique contract number to update.
customerNumberNoThe customer number who owns this contract.
hasTrialperiodNoWhether this contract has a trial period.
zugferdProfileNoThe ZUGFeRD e-invoice profile to use.
documentDeliveryModeNoHow documents should be delivered (e.g. EMAIL, MAIL).
trialPeriodEndActionNoAction to take when the trial period ends.
ccDisallowTerminationNoWhether to disallow termination from the customer center.
extraTextInvoiceEmailNoExtra text to include in the invoice email.
extraTextInvoiceFooterNoExtra text to include in the invoice footer.
extraTextInvoiceHeaderNoExtra text to include in the invoice header.
extraTextCreditnoteEmailNoExtra text to include in the credit note email.
extraTextCreditnoteFooterNoExtra text to include in the credit note footer.
extraTextCreditnoteHeaderNoExtra text to include in the credit note header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/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 behavioral burden. It usefully discloses that this is a partial update and lists categories of modifiable properties, but it does not mention permissions, reversibility, side effects on existing billing/invoices, or validation behavior.

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?

The description is three short sentences, front-loads the core action, and avoids repetition. The phrase 'and other contract properties' is slightly vague but does not undermine clarity.

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 26-parameter mutation tool with no annotations and no output schema, the description covers the essential partial-update behavior and broad field categories. However, it omits guidance on when to prefer specialized siblings and does not describe permissions or post-update effects, leaving meaningful context gaps.

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 schema already explains all 26 parameters. The description groups some fields into categories (billing settings, payment methods, trial configuration, text overrides) but adds no syntax, constraints, or enum guidance beyond what the schema provides; baseline 3 is appropriate.

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?

States a specific verb and resource (update an existing contract) and names the system Fakturia. It distinguishes this as a general contract update tool, but does not explicitly differentiate it from more specialized siblings such as update_contract_discount or update_contract_recurring_payment_config.

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 partial-update semantics (only provided fields change) but no guidance on when to use this tool versus the many specialized update_contract_* siblings. There are no exclusions or alternative-routing instructions, leaving the agent to infer that this broad tool should be used for general updates.

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