Skip to main content
Glama

Validate a gift card code

validate_gift_card

Check a gift card's remaining balance using its code. Public endpoint — no bearer required (gated on knowledge of the code).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesGift card code (full string as printed on the card).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It reveals that the endpoint is public and gated on code knowledge, which is a useful auth-related trait. It does not mention error cases or rate limits, but for a simple balance check, the key behavioral trait (no bearer required) is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences front-load the primary purpose and then provide key auth context. Every word earns its place, and there is no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter tool with no output schema, the description is complete. It explains what it does, the auth requirement, and implies the return value (remaining balance). The absence of an output schema is mitigated by the explicit statement of what is checked.

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?

The input schema already provides a 100% coverage description for the 'code' parameter ('Gift card code (full string as printed on the card).'). The tool description adds marginal value by mentioning 'using its code,' but this largely restates the schema. 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?

The description clearly states the tool's function: 'Check a gift card's remaining balance using its code.' It uses a specific verb+resource (check balance, gift card, code) and distinguishes itself from sibling tools like get_cart or list_products, none of which deal with gift cards.

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?

The description provides clear context: it is a public endpoint and no bearer token is required, gated on knowledge of the code. It does not explicitly mention alternatives or when-not to use it, but given the absence of related sibling tools, this is a minor gap and context is sufficient for an agent to select it appropriately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct entity or action: cart, customer, deals, brands, orders, payment links, products, and gift cards. There is no overlap or ambiguity between tool purposes.

Naming Consistency4/5

Tool names follow a consistent verb_noun pattern: get_ for single resources, list_ for collections, and validate_ for a specific action. The one outlier, get_customer_best_deals, still fits the get_ prefix pattern, so it's mostly consistent.

Tool Count5/5

With 8 tools, the set is well-scoped for a customer/catalog read API. Each tool serves a clear purpose and none are redundant.

Completeness4/5

The surface covers customer info, cart, orders, payments, products, brands, deals, and gift cards, which is comprehensive for a read-only domain. Minor gaps like lacking order details or product-level details are workable, and mutations are clearly out of scope.

Resources