list_gift_card_merchants
List merchants selling gift cards.
MCP tool list_gift_card_merchants, called with tools/call on https://api.envoy.money/mcp (Streamable HTTP).
List merchants selling gift cards. Only a listed merchant can be bought; Envoy picks from amounts or amount_range for the cart total. discount_percent is an indicative product maximum; null means none reported. Say "up to". The actual purchase quote is authoritative; until available, payable is unknown. redeem_at says where the gift card is used: account — add it to the user's account balance on the merchant site, then check out normally; checkout — enter it at the merchant's payment step; null — not known yet. To buy, call start_purchase with rail "gift_card".
| Title | Service | Read only | Destructive | Idempotent | External sites |
|---|---|---|---|---|---|
| List gift-card merchants | shared | true | false | true | false |
The text content is a plain-English briefing, then one line of JSON with the slim agent data. structuredContent holds that same slim data. isError is true when the call failed and changed nothing. Diagnostics for support are in _meta["money.envoy/support"]; they are not for the model. Tool annotations describe effects; they do not grant permission. The HTTP API returns the full envelope: see the API reference page.
Input
Send an empty JSON object, {}.
Unknown fields are rejected. The exact input schema is on the schemas page.
Synthetic request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_gift_card_merchants",
"arguments": {}
}
}Success data
The text content opens with a briefing: one to three sentences for the user, then What to do: for the agent. Tell the user the first part in your own words and do what What to do says. One JSON line follows with these fields. Pass next.args unchanged to next.tool. Never show the JSON line, ids or codes to the user. Outputs may gain fields, so ignore ones you do not recognize.
| Field | Required | Type | Description and rules |
|---|---|---|---|
spending_closed | No | boolean | Spending access is closed: no further card details are released. It does not prove the issuer blocked the card, and recovery of any money continues separately. |
situation | No | "needs_details" | "needs_answer" | "waiting_for_user" | "working" | "ready" | "confirming" | "done" | "stopped" | "needs_support" | Where the purchase stands. The English briefing above says what it means. |
money | No | "not_charged" | "set_aside" | "charged" | "refunding" | "refunded" | "unknown" | What has happened to the user's money. |
purchase_id | No | string | Pass as purchase in later calls. Never show it to the user. |
checkout_by | No | "agent" | "envoy" | Who completes the merchant checkout. agent: you pay once with the one-time card Envoy releases. envoy: Envoy checks out itself; no card is released, so never open the merchant payment step. Absent until Envoy decides; it can change, so act on the latest reply. |
next | No | object | The call to make next: tool, args (pass verbatim) and wait_seconds before calling. |
purchase | No | object or null | question: the open question while situation is needs_answer or needs_details: id, kind and prompt. Show the user prompt word for word. funding: only for a gift-card pay_link task, the URL the user pays, amount and expiry. Never an approval link. |
follow_up | No | object | Optional feedback call after a completed purchase: tool and args. Add the user's words as answer. |
retry | No | "same_call" | "after_fix" | "check_status_first" | "new_purchase" | "no" | Whether and how to retry. |
fix | No | array | Input fields to fix before retrying. |
card | No | object | One-time card, only while ready. |
support_ref | No | string | Give this to the user only if they ask for help. |
account | No | object | Requested account sections. |
transactions | No | array | Spending transactions. |
merchants | No | array | Gift-card merchants: name, domain, amounts or amount_range, discount_percent (indicative product maximum; null: unreported). Say "up to". Actual purchase quote is authoritative; payable is unknown until available. Never infer price from payment method or card ownership. |
next_cursor | No | string | Pass as cursor to list_transactions for the next page. |
Synthetic result
Example synthetic-compatible-payload (synthetic data, the MCP text content; JSON is formatted here for reading but arrives on one line):
1 gift-card merchant available. Only a listed merchant can be bought. Each lists the gift card amounts it sells, or a range of any whole rupee; Envoy buys the gift card for the cart total when the purchase starts. discount_percent is an indicative product maximum: say "up to"; null means no discount is reported. The actual purchase quote is authoritative; until available, payable is unknown. Do not infer price from payment method or card ownership.
What to do: Offer only a listed merchant. To buy its gift card, call start_purchase with rail "gift_card"; without it Envoy may pay with a one-time card instead. Say any discount is "up to", never a promise. Never promise an unlisted merchant.
{
"merchants": [
{
"name": "shop.example.test",
"domain": "shop.example.test",
"amounts": [
{
"minor": 50000,
"currency": "INR",
"display": "₹500.00"
},
{
"minor": 100000,
"currency": "INR",
"display": "₹1,000.00"
}
],
"amount_range": null,
"discount_percent": 2.5,
"redeem_at": "checkout"
}
]
}Errors
A failure sets isError to true and changes nothing. The briefing says what happened and what to do; retry and fix in the JSON line say whether and how to retry. Branch on those, not on a code: these common codes appear only in _meta["money.envoy/support"], for support. See all error codes for the complete contract list.
| Code | HTTP status | Meaning | What the agent does |
|---|---|---|---|
INVALID_INPUT | 400 | Fix the supplied input. | Fix the fields listed in the data below and make the same call again. |
UNAUTHENTICATED | 401 | Reconnect through Central Auth. | Ask the user to reconnect Envoy, then try again. |
UNAVAILABLE | 503 | The service is unavailable; follow retryable and next. | Wait, then make the same call again. Don't pay any other way meanwhile. |