Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract_from_order

Convert an existing order into a billing contract in Fakturia to enable recurring billing and subscription management for ordered products or services.

Instructions

Create a new contract from an existing order. This converts the order items and details into a billing contract in Fakturia, enabling recurring billing and subscription management for the ordered products or services.

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": {
      "orderNumber": "<orderNumber>"
    },
    "name": "create_contract_from_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNumberYesThe unique order number of the order to create a contract from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.6/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. It usefully discloses the core effect — order items and details become a billing contract enabling recurring billing — but says nothing about whether the source order is modified or consumed, whether the call is idempotent, what permissions are required, or what happens if a contract already exists for the order.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the operation front-loaded and the consequence second. Every clause contributes new information; there is no filler or repetition of the tool name.

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 single-parameter creation tool with no annotations and no output schema, the description covers what is created and why, which is the essential information. It falls short only on side effects to the source order and error/edge-case behavior, which an agent would plausibly want before invoking a creation call.

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?

Only one parameter exists and its schema description already explains it fully (100% coverage), so the baseline of 3 applies. The description adds no format hints, lookup guidance, or examples for the orderNumber beyond restating that the order must exist.

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 gives a specific verb and resource ('Create a new contract') plus the source object ('from an existing order'), and the second sentence clarifies that order items and details are converted into a billing contract. This is far clearer than a bare 'create_contract' and implicitly separates it from template-based siblings, though it never names an alternative outright.

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 only implied: the mention of 'recurring billing and subscription management' signals the scenario, but there is no explicit statement of when to choose this over create_contract, create_contract_from_template, or create_contract_from_order's sibling flows. Preconditions (the order must exist and be in an approppriate state) are not stated.

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