Skip to main content
Glama
brunovicco

openfinance-br-mcp

by brunovicco

complete_payment_consent

Finalize a payment consent by providing the bank's callback URL after user authorization, returning the final consent status.

Instructions

Completes a payment consent flow using the URL the bank redirected the user to after authorizing (or denying) the payment.

Args: callback_url: The full URL the user's browser landed on after authorizing (or denying) the payment consent at the bank. ctx: MCP request context, providing access to shared dependencies.

Returns: The final payment 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 indicate non-read-only and non-idempotent behavior. The description adds context by explaining that the tool handles both authorized and denied states and returns the final status, without contradicting the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured, with a one-sentence summary followed by Args and Returns sections. It stays under 100 words and every sentence adds value, with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers what the tool does, when to use it, and its return value, which is sufficient given the output schema exists and annotations are provided. It does not explicitly reference prerequisites or sibling tools, but the flow context makes them implied.

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 provides zero description for callback_url, but the description explains it thoroughly: 'The full URL the user's browser landed on after authorizing (or denying) the payment consent at the bank.' This fully compensates for the schema gap, and the ctx parameter is also documented.

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 identifies the tool's purpose: completing a payment consent flow using the callback URL from the bank. It specifies the exact trigger (after authorization or denial) and the output (final consent status), distinguishing it from siblings like start_payment_consent and check_payment_consent_status.

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 provides clear context for when to use the tool: after the user's browser lands on the callback URL from the bank. It does not explicitly mention alternatives or exclusions, but the wording implies this is the completion step in the payment consent flow.

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