Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

calculate_contract_item_price

Calculate the price of a one-time contract item to preview costs based on performance period, currency, and quantity.

Instructions

Calculate the price of an item in a non-recurring (one-time) context within a contract. Useful for previewing what an item would cost given a specific performance period, currency, and quantity.

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>",
      "itemNumber": "<itemNumber>"
    },
    "name": "calculate_contract_item_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoThe currency code (e.g. EUR, USD) for the price calculation.
quantityNoThe quantity of items to calculate the price for.
itemNumberYesThe item number to calculate the price for.
contractNumberYesThe unique contract number to calculate the item price for.
performanceDateEndNoThe end of the performance period in YYYY-MM-DD format.
performanceDateStartNoThe start of the performance period in YYYY-MM-DD format.

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 supplied, the description carries the full burden; 'Calculate' and 'previewing' credibly signal a non-mutating read/compute operation, which is the most important behavioral fact here. However, it says nothing about permissions, what happens with invalid contract/item numbers, or whether any price is persisted, leaving real gaps for an unannotated tool.

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?

Two tight sentences with the operation stated first and the use case second; no filler. Slightly more could be cut, but nothing is redundant.

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?

There is no output schema, yet the description does not say what the calculation returns (a price amount, a currency-tagged value, a breakdown). For a six-parameter pricing tool the input side is well covered, but the result side is left entirely to inference.

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. The description echoes the key dimensions (performance period, currency, quantity) but adds no format, default, or interaction semantics beyond the schema, 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?

States a specific verb ('Calculate') and resource ('price of an item') and scopes it to a non-recurring/one-time contract context, which implicitly separates it from the recurring subscription-pricing siblings. It stops short of naming calculate_subscription_item_price directly, so the differentiation is inferential rather than explicit.

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?

The phrase 'Useful for previewing what an item would cost' gives one concrete use case (price preview before acting). There is no explicit when-not-to-use guidance and no mention of the alternative tools for recurring/subscription pricing, so the agent must infer the routing itself.

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