Skip to main content
Glama

Collect the approved IBANforge API key

poll_api_key

Collect the IBANforge API key after a human approves the pending request. Reuses the last session code when device_code is empty, returning pending, approved, denied, or expired status.

Instructions

Collect the API key once a human has approved the request opened by request_api_key. USE WHEN: you have called request_api_key and shown the code to your human. HOW TO CALL IT: leave device_code empty to reuse the last request from this session. The server usually waits up to thirty seconds before answering, and sometimes answers at once when it is busy — either way, calling it once per minute is enough, never in a tight loop. WHAT THE ANSWERS MEAN: authorization_pending is normal and means nobody has approved yet — wait retry_in_seconds and call again; approved carries the key ONCE and never again, so hand it to your human immediately together with config_line, or the header "Authorization: Bearer " for the hosted server; access_denied means somebody refused — tell your human, ask THEM whether to try again, and open at most ONE more request; expired_token means the code timed out — you may call request_api_key ONE more time, and if that expires too, stop and keep using the keyless allowance or x402; invalid_grant means this code can no longer be used at all — stop. This tool is free and does NOT count against the free allowance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "poll_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_codeNoOptional. Leave it empty to reuse the last request from this session.

Output Schema

NameRequiredDescriptionDefault
tierNoanonymous = the entry allowance, email/claimed/paid = the raised one.
emailNoAbsent on the anonymous tier: no address was ever given.
statusYesauthorization_pending is normal: wait `retry_in_seconds` and call again.
api_keyNoPresent exactly once, on the first approved poll.
messageYesOne sentence for the human.
expires_inNo
key_prefixNo
config_lineNoThe exact command line to give the human. Do not run it yourself.
monthly_limitNo
retry_in_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations carry only a title, so the description bears the full burden and does so: it discloses the ~30-second server hold, the possibility of an immediate answer, the one-time delivery of the key, and the requirement to hand the key to the human immediately. Cost behavior (free, not counted against the allowance) is also stated, which matters for retry decisions.

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 purpose, then clearly partitioned into USE WHEN / HOW TO CALL IT / WHAT THE ANSWERS MEAN. It is long, but nearly every clause carries operational value; the outcome catalogue is dense yet scannable, with only mild redundancy in restating the empty-device_code rule.

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 polling tool with a rich output and non-obvious state machine, the description covers timing, rate limits, and the meaning of each terminal vs. retryable answer. Since an output schema exists, it wisely explains interpretation and required follow-up actions rather than restating return fields.

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 the single parameter's schema text already says to leave device_code empty to reuse the last request from this session, so the description largely restates rather than extends it. Baseline 3 applies when the schema does the documenting work.

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 ("Collect the API key") plus the precondition ("once a human has approved the request opened by request_api_key"). This clearly separates it from the request_api_key sibling, which opens the request rather than collecting the result.

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?

Explicit "USE WHEN: you have called request_api_key and shown the code to your human" plus concrete when-not guidance: don't poll in a tight loop, once per minute is enough. It also defines escalation paths (keyless allowance, x402) and hard stop conditions for repeated failures, so an agent knows exactly when to stop rather than retry.

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