Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract_from_template

Creates a new customer contract from a subscription template with predefined items, pricing, and billing, optionally activating it and sending an order confirmation.

Instructions

Create a new contract from a subscription template. Uses a pre-configured template to set up the contract with predefined items, pricing, and billing configuration. Optionally activates the contract and sends an order confirmation immediately.

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": {
      "uuid": "<uuid>",
      "customerNumber": "<customerNumber>"
    },
    "name": "create_contract_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesThe UUID of the subscription template to create the contract from.
issueDateNoThe issue date of the contract in YYYY-MM-DD format.
customerNumberYesThe customer number who will own the new contract.
activateContractNoWhether to immediately activate the contract after creation.
sendOrderConfirmationNoWhether to send an order confirmation email to the customer.

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?

No annotations are supplied, so the description carries the full burden. It does disclose that the template supplies predefined items, pricing, and billing configuration, and that activation and confirmation email can happen — but the activation and email behavior is already documented in the schema's parameter descriptions. Missing: required permissions, irreversibility of activation/email, error behavior on invalid template, and what the response contains.

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 core action, then the template behavior, then the optional side effects. Efficient overall, though the third sentence largely restates the activateContract and sendOrderConfirmation parameters.

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 5-parameter mutation tool with no annotations and no output schema, the description is adequate but incomplete: it never says what is returned (presumably the new contract identifier), what happens on template/customer mismatch, or whether activation is reversible. An agent could call it, but lacks the context to predict the result.

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 all five parameters are already documented, establishing a baseline of 3. The description adds only light context (what the template contributes) and does not clarify issueDate semantics, defaults for the two booleans, or any constraints.

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 uses a specific verb and resource ('Create a new contract') and states its source ('from a subscription template'), which distinguishes it from the sibling create_contract_from_order and plain create_contract. It stops short of naming those alternatives explicitly, but the resource-and-source pairing is unambiguous.

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?

Usage is implied by the template-based source, so an agent can infer this is the right tool when a subscription template exists. There is no explicit when-to-use vs. when-not guidance, no mention of prerequisites (template must exist, customer must exist), and no comparison to sibling creation tools.

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