Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract

Creates a new Fakturia contract using a required customer number, with optional billing recurrence, trial periods, payment methods, tax settings, and custom invoice, credit note, and email text.

Instructions

Create a new contract in Fakturia. Requires at minimum a customerNumber. The contract can be configured with billing recurrence, trial periods, payment methods, tax settings, and custom text for invoices, credit notes, and emails.

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": {
      "customerNumber": "<customerNumber>"
    },
    "name": "create_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).
customerNumberYesThe customer number who owns this contract. Required.
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

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool. It never says whether the new contract starts active or as a draft, whether invoices or recurring payments are triggered immediately, what permissions are needed, or what the response contains; the enumeration of configurable areas largely restates schema fields.

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, front-loaded with the action and the required field, with no filler. It is efficient, though the final enumeration sentence is a list of capabilities rather than decision-relevant information.

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

Completeness2/5

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

For a 25-parameter mutation with no annotations and no output schema, the description is thin: it omits post-creation behavior (activation state, billing start, side effects) and gives no hint of valid values, while several fields (recurUnit, paymentMethod, taxConfig, zugferdProfile, documentDeliveryMode, trialPeriodEndAction) have zero enums defined in the schema. An agent can call it, but cannot confidently predict the outcome or supply valid enum-like strings.

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 25 fields and the baseline is 3. The description groups the fields into themes (recurrence, trial, payment methods, tax, custom text), which aids orientation but adds no syntax, format, or valid-value meaning beyond the schema.

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 states a specific verb and resource ('Create a new contract in Fakturia') and names the minimum required input, so an agent immediately knows what the tool produces. It does not distinguish itself from close siblings such as create_contract_from_order or create_contract_from_template, which is the only thing keeping it from a 5.

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 only guidance is a prerequisite ('Requires at minimum a customerNumber'), not a when-to-use rule. There is no statement about when to prefer this over creating a contract from an order or a template, nor any exclusion or precondition beyond the required field.

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