Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_subscription

Create a subscription for a contract to define recurring billing, including term, notice period, auto-renewal, items, and advance or arrears billing.

Instructions

Create a new subscription for a contract. A subscription defines the recurring billing configuration including the contract term, notice period, auto-renewal behavior, and the list of subscription items (products/services) to bill on each cycle. Optionally specify whether billing occurs in advance or arrears.

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

Input Schema

NameRequiredDescriptionDefault
termUnitNoThe unit for the initial contract term (e.g. MONTH, YEAR).
noticeUnitNoThe unit for the notice period (e.g. MONTH, WEEK, DAY).
termPeriodNoThe initial contract term length (e.g. 12 for a 12-month term). Combined with termUnit.
continueUnitNoThe unit for the auto-renewal period (e.g. MONTH, YEAR).
noticePeriodNoThe notice period length required before cancellation. Combined with noticeUnit.
continuePeriodNoThe auto-renewal period length after the initial term expires. Combined with continueUnit.
contractNumberYesThe contract number to create the subscription for.
billedInAdvanceNoWhen true, the subscription is billed at the beginning of each billing period (in advance). When false, billing occurs at the end (in arrears).
subscriptionItemsNoThe list of items included in this subscription. Each item references a product/service from the item catalog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden for a mutating create operation, yet it says nothing about permissions required, side effects on the referenced contract, idempotency, or what happens if items are omitted or duplicated. The advance/arrears explanation is useful domain context but describes the data model rather than the tool's 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?

Three short sentences, front-loaded with the action and followed by a compact definition of the resource, with no filler. It is efficient, though the middle sentence is a fairly generic domain gloss that could be tightened.

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 9-parameter create tool with only contractNumber required and no output schema, the description is adequate but leaves gaps: it never states that only contractNumber is mandatory or that the term, notice, and auto-renewal fields are optional groupings. An agent can call it correctly by reading the schema, but the description does not add enough to stand on its own.

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 every parameter (termUnit, termPeriod, noticePeriod, continuePeriod, billedInAdvance, subscriptionItems) is already documented in the schema. The description restates the same concepts at a higher level without adding formats, defaults, allowed unit values, or the pairing rules between period and unit fields, so baseline 3 applies.

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 opens with a specific verb and resource ("Create a new subscription for a contract") and then defines what a subscription consists of (term, notice period, auto-renewal, line items), which is far more than a restatement of the name. It does not, however, distinguish this tool from siblings like create_subscription_item, which an agent could easily confuse it with.

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 first sentence establishes that a contract must already exist, and "Optionally specify" hints at which fields are discretionary. There is no explicit statement of when to use this versus update_subscription or create_subscription_item, and no prerequisites or error conditions are named.

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