Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

validate_coupon_code

Checks a coupon code for validity and redeemability without redeeming it, considering validity dates, usage limits, and optional project, before showing redemption options to a customer.

Instructions

Validate a coupon code without redeeming it. Checks whether the given coupon code is valid and can be redeemed, considering the coupon configuration validity dates and usage limits. This is a non-destructive check — the coupon code remains unredeemed and available for future use. Use this before presenting redemption options to a customer.

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": "validate_coupon_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
couponCodeYesThe coupon code string to validate.
validationDateNoThe date to check validity against, in ISO 8601 format (YYYY-MM-DD). Defaults to today if not specified.
projectShortNameNoShort name of the project to validate the coupon code against. Limits validation 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 load and does well: it declares the operation non-destructive, states the code remains unredeemed and available for future use, and enumerates what validity considers (dates, usage limits). It stops short of describing the response shape or how an invalid/expired/ineligible code is surfaced, which matters since there is no output schema.

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?

Front-loaded with the core action and the key non-mutation caveat, and every sentence supports selection or behavior. The non-destructive point is made twice ('without redeeming it' and 'remains unredeemed'), a minor redundancy.

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?

A simple three-parameter read tool; the description covers purpose, safety profile, and the factors being checked. The only real gap is return-value expectations, which the description only implies rather than states despite there being no output schema.

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 coverage is 100%, so all three parameters are already documented in the schema. The description adds conceptual context by tying validation to validity dates and usage limits, but does not explain projectShortName scoping beyond what the schema says. 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?

States a specific verb and resource ('Validate a coupon code') and immediately scopes it with 'without redeeming it,' which cleanly separates it from the sibling redeem_coupon_code. The agent can tell what it does and what it does not do without opening the schema.

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?

Gives a concrete usage moment: 'Use this before presenting redemption options to a customer.' Combined with the repeated emphasis on non-redemption, it effectively routes the agent away from redeem_coupon_code, though it never names that alternative explicitly or states when-not to call it.

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