The safest pattern
1
Read the context
Call
get_chargefy_account_info and confirm organization, environment and
access.2
Discover the operation
Use
chargefy_api_search instead of guessing the operation_id.3
Read the contract
Check
chargefy_api_details, especially before a write.4
Verify the current state
Read the resource or find the right ID before changing anything.
5
Write with confirmation and idempotency
Show the operation,
data, ID and environment; then use a fresh
intent_id.Human confirmation is a client policy or an instruction of yours. The server
validates scope, capability, schema and idempotency, but it does not open a
confirmation screen on every write. Writing is split into
chargefy_api_create (additive) and chargefy_api_update (announced as
destructive), so clients that respect the annotation ask for confirmation
before each update.Recommended opening prompt
Use the Chargefy connection. First show the organization, the environments and the access level. Work in test. Do reads only until I authorize a change. Before any write, show the tool, the operation, the IDs, theThat prompt avoids three common mistakes: an implicit environment, a guessed operation and a change without review.dataand theintent_id.
Querying data
List customers
Ask:List the 10 most recent customers in the test environment. Do not change data.After confirming the context, the read call can be:
livemode can be omitted.
Filter by email
Filters belong to the operation. Checkchargefy_api_details before using them:
Retrieve by ID
Finding a resource without knowing the ID
Use the text search for customers, catalog, discounts, links and invoices:Discovering before executing
When the goal does not yet point at a clear operation, search:input_schema to build data. The reference at documentation_url explains product rules that do not fit in a schema.
Creating data
Create a customer
Ask:
In test, prepare a customer with the email name@email.com. Show the call and wait for my confirmation.
After the confirmation:
intent_id.
Create a link with an existing price
After confirming the price withprices.get, read the details of payment_links.create and execute:
payment_link object and its public URL. For an ad-hoc price, an inline product or recurrence, follow the variants in Create a payment link.
Updating without replacing
Updates merge: absent fields stay as they are.input_schema whether it accepts null or an empty string. Omitting a field does not remove it.
Planning a larger flow
For a goal spanning several resources, start with the planner:- confirm the plan;
- discover and detail each operation;
- read existing objects;
- use a different
intent_idfor each create or update; - validate the result of each step before moving on.
Investigating payments without moving money
MCP can query payment intents, charges, transactions, invoices, subscriptions, refunds and disputes. A useful prompt:
In the live environment and read only, retrieve the payment intent pi_Q3zX5Sqaeiq5n6WT. Load the related resources identified in the result and build a timeline with statuses, amounts and timestamps. Do not confirm, capture, cancel or refund anything.
Financial lifecycle operations do not exist on the MCP surface, so investigation stays separate from action.
Paginating
Lists use a cursor:1
Make the first read
Choose a
limit between 1 and 100. The default is 10.2
Read has_more
If it is
true, copy the id of the last object in data.3
Fetch the next page
Repeat the operation, environment and filters with
starting_after.ending_before to go back. Never send both cursors together.
Retrying
Changing the
intent_id after a timeout can turn the retry into a second change.
Fixing common errors
Keep the
request_id whenever it appears. It correlates the failure with Chargefy’s request log and can be sent through send_chargefy_mcp_feedback.
Ready-made prompts
Audit without changing
Audit without changing
“Use Chargefy for reading only. Confirm the test environment, list open
invoices and summarize amount, due date and status. Do not call
chargefy_api_create or chargefy_api_update.”Create with human review
Create with human review
“In test, prepare a customer with the email
name@email.com. Check the
schema, show data and intent_id, and only execute after my
confirmation.”Investigate a failure
Investigate a failure
“Retrieve the request
req_j8ii31CD75absd7t and whichever related objects
are available. Build a timeline and preserve the request_id. Do not change
any resource.”Build a catalog and a link
Build a catalog and a link
“Plan selling a monthly R$ 99.90 plan in test. After my approval, create the
product, the price and the link. Use a fresh
intent_id on each write and
validate every response.”Keep going
Tools and operations
Check arguments, limits and the full operation matrix.
Limits and security
Understand rate limits, auditing and actions that require the REST API.

