complete_consent
Complete a consent flow by providing the callback URL from the bank's redirect. Returns the final consent status.
Instructions
Completes a consent flow using the URL the bank redirected the user to after they finished logging in and authorizing.
Because FAPI-BR mandates response_mode=fragment, that URL's parameters live after a '#', not a '?' - copy the complete address bar contents after being redirected, not just the query string.
Args: callback_url: The full URL the user's browser landed on after authorizing (or denying) consent at the bank. ctx: MCP request context, providing access to shared dependencies.
Returns: The final consent status after completing the exchange.
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": {
"callback_url": "<callback_url>"
},
"name": "complete_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| callback_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | ||
| status | Yes | ||
| consent_id | Yes | ||
| subject_id | Yes |