Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

redeem_coupon_code

Apply a coupon code to activate its linked discount or credits, noting one-time codes cannot be reused; validate the code first to confirm eligibility.

Instructions

Redeem a coupon code, applying its associated discount or credits. This is a destructive operation — once redeemed, a one-time-use coupon code cannot be used again. The redemption applies the linked discount configuration or credits as defined in the coupon configuration. Always validate the coupon code first using validate_coupon_code before redeeming.

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

Input Schema

NameRequiredDescriptionDefault
couponCodeYesThe coupon code string to redeem.
redemptionDateNoThe date of redemption, in ISO 8601 format (YYYY-MM-DD). Defaults to today if not specified.
projectShortNameNoShort name of the project to redeem the coupon code against. Limits redemption to coupons associated with a specific project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the key behavioral trait: this is destructive and a one-time-use code is consumed permanently. It stops short of stating required permissions, what the response returns, or how redemption interacts with an existing project scope.

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 irreversibility warning and the validate-first instruction are front-loaded appropriately. The third sentence largely restates the first (applying the linked discount configuration as defined in the coupon configuration) and could be dropped without losing information.

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 three-parameter mutation with no annotations and no output schema, the definition covers the essential risks: permanence of redemption and the validation precondition. Only the return-value behavior and permission requirements are unaddressed, which is a modest gap.

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 couponCode, redemptionDate, and projectShortName are already documented in the schema. The description adds no format, default, or scoping detail beyond what the schema provides, so baseline 3 applies.

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?

The description states a specific verb and resource ("Redeem a coupon code") plus the effect ("applying its associated discount or credits"), which is enough to distinguish it from validate_coupon_code, which is explicitly named as a different, non-mutating step.

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

Usage Guidelines4/5

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

It gives an explicit prerequisite: validate the code with validate_coupon_code before redeeming. What's missing is guidance on when NOT to redeem (expired codes, multi-use coupons, project-scoped coupons), so the alternative-selection logic is one-sided.

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