Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_contract_commission_rule

Create a contract commission rule by defining commission percentage, validity dates, applicable item types, and the contract or item that receives payment.

Instructions

Create a new commission rule for a contract. Defines the commission percentage, validity period, applicable item types, and which contract/item receives the commission payment.

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>",
      "commissionPercent": "<commissionPercent>"
    },
    "name": "create_contract_commission_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoArray of specific items the commission rule applies to.
validToNoThe end date of the commission rule validity in YYYY-MM-DD format.
useItemsNoWhether to use the items array to restrict which items the rule applies to.
applyModeNoThe commission apply mode.
validFromNoThe start date of the commission rule validity in YYYY-MM-DD format.
contractNumberYesThe unique contract number to add the commission rule to.
applyRecurrItemsNoWhether the commission applies to recurring items.
applyOneTimeItemsNoWhether the commission applies to one-time items.
commissionPercentYesThe commission percentage.
commissionItemNumberNoThe item number used for commission billing.
commissionContractNumberNoThe contract number that receives the commission.

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 state permission requirements, whether the rule takes effect immediately, whether existing rules are affected, what happens if required fields are missing, or what the response contains. For a mutation tool with 11 parameters, these omissions are significant.

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?

The description is two tight sentences with no filler and is front-loaded with the core action. It efficiently enumerates the rule's constituent parts. A slightly more structured breakdown of parameter groups could improve it, but there is no wasted wording.

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?

The tool has 11 parameters, is a mutation operation, and has no annotations or output schema. The description should therefore explain key behavioral details such as how item restriction works, how commission routing is decided, and what the caller should expect after creation. It gives only a high-level summary and leaves several complex parameters unexplained, so it is incomplete for this complexity level.

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 documents every parameter. The description adds high-level grouping by mentioning commission percentage, validity period, applicable item types, and recipient contract/item, which helps orient the agent. However, it does not clarify the interplay between useItems and items, the meaning of applyMode values, or how the recurring/one-time flags interact, so it stays at the baseline.

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 specific verb and resource: 'Create a new commission rule for a contract.' It further specifies the fields the rule defines (commission percentage, validity period, applicable item types, and recipient contract/item), which lets an agent understand the tool's scope. It does not explicitly distinguish itself from the sibling get_contract_commission_rules, but the create-vs-get distinction is clear from the verb.

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 offers no explicit guidance on when to use this tool versus alternatives, no prerequisite conditions, and no exclusions. Usage is only implied by the verb 'Create' and the contract context. An agent must infer that this should be used when adding a new commission rule rather than reading any stated rule.

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