Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_contract_discounts

Retrieve all discounts assigned to a contract, including percentage, validity period, and configuration name, to review applied pricing adjustments.

Instructions

Retrieve all discount configurations currently assigned to a contract. Returns details about each discount including the percentage, validity period, and the underlying discount configuration name.

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

Input Schema

NameRequiredDescriptionDefault
contractNumberYesThe unique contract number whose discounts to retrieve.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.6/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 behavioral burden; it establishes read-only retrieval and usefully enumerates what comes back (percentage, validity period, discount configuration name). It does not cover permissions, pagination, or what an empty result means, so it is adequate but not rich.

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 sentences, front-loaded with the action and scope, then the return contents. Every clause carries information the agent can act on; there is no restatement of the tool name or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with no output schema and no annotations, the description covers the action, the scope, and the shape of the returned data. Only secondary details such as listing behavior or authorization requirements are absent.

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?

There is a single required parameter with 100% schema description coverage, so the schema already defines contractNumber fully. The description's phrase "assigned to a contract" only confirms the parameter's role and adds no format or edge-case detail beyond the schema, which matches the baseline-3 expectation.

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 pairs a specific verb ("Retrieve") with a specific resource ("discount configurations currently assigned to a contract") and names the returned fields, so an agent can tell it apart from update_contract_discount or create_contract_discount without inspecting schemas. It does not explicitly name those siblings, which keeps it short of a 5.

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 implied rather than stated: the word "Retrieve" and "currently assigned" signal a read operation scoped to one contract, but there is no explicit when-to-use or when-not guidance and no named alternative for creating or editing discounts. The agent must infer that mutation belongs to the sibling tools.

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