attach_card again to check whether they finished. Once attached, create_card automatically mints against the attached card.
If the card is not eligible (for example a business or non-US card, or an excluded issuer), fall back to create_card, which issues an Agentcard funded from the user’s cash balance.
This is the MCP counterpart of the REST card attachment flow (
POST /api/v2/attach). Use REST when your backend drives the flow with a platform token; use this tool when the user’s own agent drives it over an OAuth connection.Parameters
Returns
Astatus discriminator with a human-readable message:
attach_started: send the user the returnedattachUrl(withexpiresAt), then callattach_cardagain to check the result.pending: the user has not finished the link yet; ask them to complete it and check again.attached/already_attached: done. TheconnectedCardIdand the card’s brand and last4 are returned, andcreate_cardnow mints against the attached card.attach_ineligible: this card cannot be attached (areasonsuch asissuer_excludedorcommercial_cardsays why); fall back tocreate_card.byoc_unavailable: attaching is not available right now; fall back tocreate_card.user_info_required: collect a phone number and terms acceptance via submit_user_info first, then callattach_cardagain.
create_card’s connected_card_id. Unenroll one any time with remove_attached_card.