Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

update_contract_discount

Update an existing contract discount by UUID to change its configuration name, percentage, or validity dates.

Instructions

Update an existing discount assigned to a contract. The discount is identified by its UUID. Can modify the discount configuration name, 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>",
      "discountUUID": "<discountUUID>",
      "discountConfigName": "<discountConfigName>"
    },
    "name": "update_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.
discountUUIDYesThe UUID of the discount assignment to update.
contractNumberYesThe unique contract number that owns the discount.
discountPercentNoThe discount percentage to apply.
discountConfigNameYesThe name of the discount configuration.

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 supplied, so the description carries the full behavioral burden. It never says whether this is a partial or full replacement update, what happens to fields omitted from the call, whether changes are reversible, or what permissions and error conditions apply — all critical for a mutation 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, front-loaded with the action and scope, with no filler. The identification sentence is slightly redundant with the schema's discountUUID description, which keeps it from a 5.

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 six-parameter mutation tool with no annotations and no output schema, the description leaves major gaps: update semantics for omitted fields, required permissions, and failure behavior. An agent could invoke it but could easily produce unintended changes to the validity period.

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 in the schema, making 3 the baseline. The description adds the useful framing that discountConfigName, discountPercent, and the validity dates are the modifiable set and that the assignment is keyed by UUID, but no format or interaction details beyond the schema.

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 uses a specific verb and resource ("Update an existing discount assigned to a contract") and names the fields that can be changed. It stops short of explicitly contrasting with siblings such as create_contract_discount or update_contract, but the operation itself is unambiguous.

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?

"Update an existing discount" implies the target must already exist, which is the only usage context offered. There is no guidance on when to use this instead of create_contract_discount or update_contract, and no stated prerequisites such as a valid contract number or owned discount.

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