Skip to main content
Glama
brunovicco

openfinance-br-mcp

by brunovicco

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callback_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bankYes
statusYes
consent_idYes
subject_idYes
Behavior4/5

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

Annotations already indicate this is a non-read-only, non-idempotent operation. The description adds valuable context that the callback URL's parameters are in the fragment (due to FAPI-BR), that it handles both authorization and denial, and that it returns the final consent status. This goes beyond the structured metadata without contradicting it.

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?

The description is well-organized, with a clear opening action, a key practical tip, an Args section, and a Returns section. It is slightly longer than strictly necessary (for example, 'ctx' is an MCP context parameter likely auto-injected and not user-specified), but each sentence contributes useful information.

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 single-parameter tool with a moderate complexity and an existing output schema, the description covers all essential aspects: the exact scenario, the critical URL fragment pitfall, parameter specification, and the return value. The tool's context is fully understandable without needing to inspect sibling tools or external docs.

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

Parameters5/5

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

The input schema only lists 'callback_url' with no description (0% coverage), so the description carries full responsibility. It precisely explains the parameter's meaning, emphasizes that the full URL (including the # fragment) is required, and clarifies that the user may have authorized or denied consent. This is comprehensive and actionable.

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 clearly states the tool's function with a specific verb ('Completes') and resource ('a consent flow'), and further specifies the exact trigger (URL the bank redirected the user to). This distinguishes it from sibling tools like start_consent, check_consent_status, and complete_payment_consent.

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

Usage Guidelines4/5

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

The description gives a clear when-to-use context: after the user finishes logging in and authorizing at the bank. It also provides an important implementation note about the URL fragment, which is effectively a usage guideline. However, it does not explicitly mention when not to use it or point to alternatives, so it earns a 4 rather than a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brunovicco/openfinance-br-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server