Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

calculate_order_template_prices

Calculates signup page order prices from a template, including taxes, discounts, and currency conversion, so you can preview order totals before submission.

Instructions

Calculate prices for a signup page order based on a specific template. Computes pricing including taxes, discounts, and currency conversion based on the provided customer details and selected items. Useful for previewing order totals before submission.

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": {
      "pageId": "<pageId>"
    },
    "name": "calculate_order_template_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoList of items with quantities to calculate prices for. If omitted, default template items may be used.
pageIdYesThe unique ID of the signup page template to calculate prices for.
countryNoCountry code (ISO 3166-1 alpha-2, e.g. "DE", "US") used to determine applicable tax rates.
euTaxIdNoEU VAT identification number. If provided for a business customer, may result in reverse-charge (tax-free) pricing.
currencyNoDesired currency for price calculation in ISO 4217 format (e.g. "EUR", "USD").
couponCodeNoA coupon or discount code to apply when calculating prices.
customerTypeNoType of customer (e.g. "private", "business"). Affects tax calculation and pricing rules.

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 burden. It signals that this is a computation rather than a mutation and that the result depends on customer details and selected items, but it never states explicitly that no state is changed, nor does it mention auth requirements, side effects, or whether the calculation is deterministic. The coverage is meaningful but incomplete 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?

Three short sentences with the core action front-loaded and no filler. Slightly repetitive between the first and second sentence on what is being calculated, but nothing is wasted.

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, so the description should hint at the shape of the result; 'previewing order totals' suggests a total figure but says nothing about whether a per-item breakdown, tax lines, or currency details are returned. Combined with no annotations, the definition is adequate but leaves gaps for a 7-parameter pricing tool.

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 the schema already explains pageId, items, country, euTaxId, currency, couponCode, and customerType. The description only loosely refers to 'provided customer details and selected items' and adds no format or edge-case detail beyond the schema; the 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 gives a specific verb and resource: it calculates prices for a signup page order based on a template, and enumerates what goes into the price (taxes, discounts, currency conversion). The phrase 'signup page order based on a specific template' does enough to separate it from generic price calculators, though it never names a sibling such as get_contract_prices or calculate_subscription_item_price.

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 previewing order totals before submission' implies this is a read-only preview step preceding an order creation, which is real context. However, no alternative is named and there is no explicit when-not guidance (for example, that it does not create the order), so an agent must infer the boundary with create_order.

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