Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

big_upgrade_contract

Switch a contract to a different subscription template to upgrade or downgrade it, optionally copying discounts, custom prices, and commission rules from the existing contract.

Instructions

Perform a big upgrade or downgrade on a contract by switching to a different subscription template entirely. This replaces the contract's subscription plan and can optionally inherit settings from the existing contract.

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

Input Schema

NameRequiredDescriptionDefault
upgradeDateNoThe date the upgrade should take effect, in YYYY-MM-DD format.
copyDiscountsNoWhether to copy discount configurations from the old contract to the new one.
contractNumberYesThe unique contract number to upgrade/downgrade.
copyCustomPricesNoWhether to copy custom prices from the old contract to the new one.
hintTextCustomerNoA hint or note text visible to the customer regarding this upgrade.
copyComissionRulesNoWhether to copy commission rules from the old contract to the new one.
inheritContractStartNoWhether to keep the original contract start date on the new contract.
contractSubscriptionTemplateNoThe UUID or identifier of the new subscription template to switch to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does disclose the key behavioral trait that the contract's subscription plan is replaced and that settings can optionally be inherited, which is useful. It does not state whether the change is reversible, what happens to discounts, custom prices, or commission rules that are not copied, or whether billing is prorated at upgradeDate.

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 zero filler, leading with the action and following with the mechanism and the optional inheritance behavior. Every clause earns its place and nothing is buried.

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 an 8-parameter mutation with no annotations and no output schema, the description covers the core operation but leaves meaningful gaps: no statement of required permissions, reversibility, or the resulting contract state. It is adequate to select the tool but thin for invoking it safely.

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 is already documented in the schema, establishing a baseline of 3. The phrase 'can optionally inherit settings from the existing contract' loosely frames the copy* and inheritContractStart booleans but adds no detail about their consequences or defaults beyond what the schema says.

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 ('Perform a big upgrade or downgrade on a contract') and explains the mechanism ('switching to a different subscription template entirely'), which is more than a restatement of the name. It does not, however, contrast itself with the obvious sibling 'small_upgrade_contract', so an agent must infer the big-vs-small distinction from the tool name alone.

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 qualifier 'big' suggests a threshold relative to a smaller upgrade path, and 'switching to a different subscription template entirely' hints at a full plan swap, but no explicit when-to-use, when-not-to-use, or alternative tool is named. The agent is left to guess the boundary between this and small_upgrade_contract.

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