Skip to main content
Glama

verify_card_issuer_link

Complete the card issuer link with the account holder's code

Completes the link with the one-time code the account holder received from POST /start-card-issuer-link. No session id is needed: the pending code is held per account, and only the newest one works.

The account holder, never the agent, receives and enters the code. Send your human to their own inbox (or phone) and have them type the code into your interface. Never try to read the account holder's email or messages yourself, and never ask for their email password or access.

Consent. Completing the link records the account holder's consent with the card issuer. Show them the card issuer's connection disclosure next to the code input, and send consent_accepted: true only once they have accepted it.

Wrong codes. An incorrect code answers 400 invalid_code with attempts_left; the account holder can try again. After 5 incorrect entries, or once the code is 10 minutes old, it is discarded and a new one must be sent.

If the account is already linked this answers 200 with status: linked, so a retry after a lost response is safe. After linking, GET /get-card-issuer-status reads linked.

This route is free.

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": {
      "code": "<code>",
      "consent_accepted": "<consent_accepted>"
    },
    "name": "verify_card_issuer_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe one-time code exactly as the account holder entered it (digits).
consent_acceptedYesThe account holder has seen and accepted the card issuer's connection disclosure.

Output Schema

NameRequiredDescriptionDefault
noteNo
statusNoOne of: linked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

With annotations only covering safety flags, the description adds substantial behavior: consent is recorded by completing the link, error semantics (400 invalid_code with attempts_left), the 5-attempt and 10-minute expiry rules, retry safety on an already-linked account, and that the route is free. This is far beyond what the annotations convey.

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?

Purpose is front-loaded, then clearly partitioned under bold leads (Consent, Wrong codes). It is slightly long, but each section carries a distinct, non-redundant operational fact, so the length is largely earned.

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?

An output schema exists, so return values need no explanation, and the description still covers everything an agent needs to call it correctly: consent handling, code source, error/retry behavior, and cost. Nothing material is missing for a two-parameter mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description meaningfully extends the parameters: it stresses the account holder (never the agent) must enter the code, and that consent_accepted should be true only after the disclosure is accepted. That timing/ownership nuance is real added meaning beyond the schema text.

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 names a specific verb (complete/verify the card issuer link) and resource, and identifies the exact input required (the account holder's one-time code). It is clearly distinguishable from the sibling start_card_issuer_link (which initiates the flow) and get_card_issuer_status (which reads state).

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

Usage Guidelines5/5

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

It states the prerequisite ('the one-time code the account holder received from POST /start-card-issuer-link'), clarifies no session id is needed, and points forward to GET /get-card-issuer-status as the post-link check. The when-to-use path is explicit and leaves nothing to inference.

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.

Resources