Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

update_subscription

Update a contract's subscription configuration, including term lengths, notice periods, renewal and billing settings, and subscription items; only provided fields change while omitted fields remain unchanged.

Instructions

Update the subscription configuration for a contract. Allows modifying term lengths, notice periods, renewal settings, billing mode, and subscription items. Only the fields provided will be updated; omitted fields remain unchanged.

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_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 whose subscription should be updated.
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
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does clarify PATCH-style merge semantics for scalar fields, but it never says whether the subscriptionItems array merges or replaces existing items, nor what permissions are required or what the mutation returns. Partial-update semantics are a real contribution above what schema alone conveys, but a destructive mutation tool needs more.

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 purpose and followed by scope and update semantics. The opening sentence and the "Allows modifying..." sentence overlap slightly in framing, but nothing is wasted and the structure is easy to scan.

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?

No output schema and no annotations means the description is the only behavioral source. It handles the merge-omission rule but omits the highest-risk ambiguity for this tool: whether supplying subscriptionItems replaces or augments existing line items. Adequate for a scalar-field patch, insufficient for the nested array parameter.

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%, with each of the 9 parameters and nested item fields documented in-schema, so the baseline is 3. The description groups fields into conceptual buckets (term, notice, renewal, billing mode, items), adding mild orientation but no syntax or format details 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 opens with a specific verb and resource ("Update the subscription configuration for a contract") and enumerates the modifiable domains: term lengths, notice periods, renewal settings, billing mode, and subscription items. An agent can distinguish it from item-level siblings like update_subscription_item only by inference, since no sibling is named explicitly.

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?

It states the partial-update rule ("Only the fields provided will be updated; omitted fields remain unchanged"), which is genuinely useful for callers. However, there is no when-to-use guidance, no exclusion criteria, and no routing to update_subscription_item or calculate_subscription_item_price, leaving the agent to infer selection between overlapping siblings.

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