Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract_discount

Assign a discount configuration to a contract using its name and contract number. Optionally set a custom percentage and validity period.

Instructions

Assign a discount configuration to a contract. The discount is identified by its configuration name and can be customized with a specific percentage and validity period.

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>",
      "discountConfigName": "<discountConfigName>"
    },
    "name": "create_contract_discount"
  }
}

Input Schema

NameRequiredDescriptionDefault
validToNoThe end date of the discount validity in YYYY-MM-DD format.
validFromNoThe start date of the discount validity in YYYY-MM-DD format.
contractNumberYesThe unique contract number to assign the discount to.
discountPercentNoThe discount percentage to apply. If omitted, the default from the discount configuration is used.
discountConfigNameYesThe name of the discount configuration to assign.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not explain whether the assignment overwrites an existing discount, whether duplicate assignments are allowed, what permissions are required, or what side effects occur.

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?

The description is two sentences, front-loaded with the core action, and contains no unnecessary wording. Every sentence contributes to understanding the operation.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the description is too sparse. It covers the basic purpose and parameter customization, but it omits behavioral details such as overwrite behavior, permissions, side effects, and expected results.

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?

The input schema already documents all five parameters at 100% coverage, including the required contractNumber and discountConfigName and the optional discountPercent, validFrom, and validTo fields. The description adds only a general statement that the discount is customized with a percentage and validity period, without meaningfully extending the schema's parameter semantics.

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 states a clear verb and resource: assigning a discount configuration to a contract. It distinguishes the operation from creating a discount configuration itself, but it does not explicitly differentiate this mutation from the sibling update_contract_discount operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies that this tool assigns discounts, but it provides no explicit when-to-use guidance, no prerequisites, and no comparison to alternatives such as update_contract_discount. An agent must infer from the name and sibling context when this tool is appropriate.

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