Skip to main content
Glama

create-gift-card

Create a gift card with a specified amount and ISO 8601 expiry date, optionally adding an internal note for tracking. Use it to issue new store gift cards programmatically.

Instructions

Create a new gift card with an amount and expiry date

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": {
      "amount": "<amount>",
      "expires_at": "<expires_at>"
    },
    "name": "create-gift-card"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoInternal note about the gift card
amountYesGift card value amount
expires_atYesExpiry date in ISO 8601 format (e.g. '2025-12-31')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses nothing about side effects, required permissions, idempotency, whether a duplicate card is created on retry, or what the response contains. For a mutation tool with zero annotation coverage this is a substantive gap.

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?

One short, front-loaded sentence with no filler. It is efficient, though it is arguably too terse for the amount of undisclosed behavior.

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?

No output schema and no annotations, so the description should say what is returned (card identifier, balance, status) and mention currency or the optional note field's intent. It covers only the minimum needed to guess the call.

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% and each of the three parameters is documented in the schema, including the ISO 8601 format and the 0.01 minimum. The description only restates amount and expiry date and adds no meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ("Create a new gift card") plus the two key inputs, so the operation is immediately identifiable. It does not distinguish itself from near-siblings such as topup-gift-card or create-coupon, which is where it stops short of a 5.

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?

There is no guidance on when to create a gift card versus topping one up, who can do it, or any prerequisites. The agent must infer usage purely from the name and the fact that a sibling exists for adding value.

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