Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

create_coupon_config

Create a reusable coupon template that sets validity dates, discount linkage, starting credits, and single-use rules so generated coupon codes inherit its settings.

Instructions

Create a new coupon configuration in Fakturia. A coupon configuration serves as a template for generating coupon codes. It defines the validity window, the linked discount configuration, optional starting credits, and whether the coupon is single-use. Coupon codes generated from this configuration inherit its settings.

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

Input Schema

NameRequiredDescriptionDefault
nameYesUnique name for the coupon configuration. Used to identify and reference this coupon template.
validToNoEnd date after which coupon codes generated from this configuration are no longer valid, in ISO 8601 format (YYYY-MM-DD).
validFromNoStart date from which coupon codes generated from this configuration become valid, in ISO 8601 format (YYYY-MM-DD).
oneTimeUseNoWhether coupon codes generated from this configuration can only be redeemed once. If true, a code becomes invalid after its first redemption.
descriptionNoHuman-readable description of the coupon configuration explaining its purpose, target audience, or promotion details.
projectNameNoName of the project to associate this coupon configuration with.
startCreditsNoInitial credit amount granted when a coupon code from this configuration is redeemed. Used for credit-based coupons rather than percentage discounts.
discountConfigNameNoName of the discount configuration to link to this coupon. When a coupon code is redeemed, the linked discount configuration determines the discount percentage and applicability rules.
startCreditsCurrencyNoCurrency code (ISO 4217, e.g. "EUR", "USD") for the startCredits amount.

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 usefully discloses that the created object is a template whose settings are inherited by generated codes, which is real behavioral context, but it omits permissions required, what happens on a duplicate name beyond the schema's "unique" hint, and whether later edits propagate to existing codes - significant gaps for a mutation tool with zero annotation coverage.

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 sentences, front-loaded with the verb and resource, and no wasted preamble. The final sentence about inheritance is slightly redundant with the "template for generating coupon codes" framing, but it earns its place by stating an inheritance behavior the earlier sentence only implies.

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?

For a nine-parameter mutation tool with no annotations and no output schema, the description covers purpose and inheritance semantics but leaves prerequisites, uniqueness failure behavior, and what is returned after creation unspecified. It is adequate to call the tool, but not sufficient to predict its side effects.

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 all nine parameters are already documented, and the description adds only a conceptual mapping (validity window, linked discount configuration, starting credits, single-use). It adds no format, constraint, or interaction detail beyond what the schema states, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a new coupon configuration in Fakturia" gives a specific verb plus resource, and the rest of the description defines what a coupon configuration actually is (a template for generating coupon codes). That concept definition separates it from create_discount_config, which it explicitly names as a linked object, so an agent can tell the two creates apart.

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?

The description makes the usage context inferable - you create a configuration when you need a coupon template from which codes will be generated - but it never states prerequisites, when to prefer this over create_discount_config, or when not to use it. No explicit alternative is routed to.

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