Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

small_upgrade_contract

Add or remove individual subscription items to upgrade or downgrade a contract without changing its template. Use it for add-ons or optional line items while keeping the contract structure intact.

Instructions

Perform a small upgrade or downgrade on a contract by adding or removing individual subscription items. This does not change the subscription template, only the items within it. Useful for adding add-ons or removing optional line items.

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

Input Schema

NameRequiredDescriptionDefault
itemsToAddNoArray of item objects to add to the contract. Each object describes a subscription item.
upgradeDateNoThe date the upgrade should take effect, in YYYY-MM-DD format.
itemsToRemoveNoArray of item numbers to remove from the contract.
contractNumberYesThe unique contract number to upgrade/downgrade.
copyCustomPricesNoWhether to copy custom prices from the current contract to the upgraded items.
hintTextCustomerNoA hint or note text visible to the customer regarding this upgrade.

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?

With no annotations, the description carries the full safety burden, and it does disclose one real behavioral trait: the change is item-scoped and leaves the subscription template untouched. However, for a mutation it says nothing about reversibility, proration or billing effects of mid-term item changes, what happens to removed items, or whether the operation can fail on locked/terminated contracts.

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 immediately followed by the scope constraint. There is minor redundancy between "adding or removing individual subscription items" and the later "adding add-ons or removing optional line items," but nothing is padded.

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 6-parameter mutation tool with no annotations and no output schema, the description covers purpose and scope but omits return information (does it return a new contract version or a task id?), error conditions, and permission requirements. It is adequate but leaves real gaps an agent would want filled.

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 coverage is 100%, so every parameter including upgradeDate, copyCustomPrices, and hintTextCustomer is already documented in the schema. The description only echoes the add/remove semantics of itemsToAdd and itemsToRemove and adds no new meaning, consistent with the baseline for fully documented schemas.

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: add or remove individual subscription items on a contract, and explicitly bounds the effect ("does not change the subscription template, only the items within it"). It contrasts with template-level changes but never names the obvious sibling big_upgrade_contract, so the small-vs-big distinction is only implied by the adjective "small".

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?

"Useful for adding add-ons or removing optional line items" hints at the intended scenarios, but there is no explicit statement of when to choose this over big_upgrade_contract or update_contract, and no prerequisites such as required contract state or permissions.

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