Every tool on Paygynt's MCP server, what it takes and gives back, the errors agents meet and what to do about each. Read it as Markdown
The MCP server is at https://mcp.paygynt.com/mcp. It acts only on Paygynt, and only for the agent that is connected.
Finding and buying
search_offerings
Read only
Search what the agent may buy, within its rules.
Input
What it is
q
Words to search for, such as weather forecast.
category
A category, such as data, or a type, such as data.geo.
kind
Fixed price, by time or by units.
region
Where it runs.
seller_id
One seller's offerings.
sort
relevance, price_asc or price_desc.
limit
How many to give back.
Gives back Offerings and their plans. A plan says if it is over_budget or needs_approval; an offering says if the agent has a task_in_progress with it.
get_quote
Read only
Price a purchase, or an extension of a task. Valid for 5 minutes.
Input
What it is
variant_id
The plan to buy, for a new purchase.
quantityrequired
How much, such as 10 calls.
extends
A task's latest hold_id, to extend that task instead.
Gives back A quote_id and the price, with tax and fee estimates.
place_hold
Changes something
Buy what a quote priced, setting the money aside from the budget.
Input
What it is
quote_idrequired
From get_quote.
idempotency_keyrequired
A unique string for this purchase. The same one retries it safely.
notify_at_percent
Send extension_due when this much is used. 0 sends none.
notify_at_seconds
Or send it this long before the limit.
Gives back The hold_id, the task_id and the token to call the service with. Over the approval amount: the error needs_approval, with an approval_id.
get_approval
Read only
See whether a purchase waiting for approval was approved.
Input
What it is
approval_idrequired
From the needs_approval error.
Gives back pending while it waits; once approved, the hold, the task and the token.
Running tasks
get_task
Read only
A task: what it has used, its status, and a fresh token.
Input
What it is
task_idrequired
The task.
Gives back Its holds, units used, status, whether an extension is due, and a fresh token.
decline_extension
Cannot be undone
Say no extension is coming, so the task ends at its limit.
Input
What it is
task_idrequired
The task.
Gives back The task.
release_hold
Cannot be undone
End a task, or one hold, early. What is unused goes back to the budget.
Input
What it is
task_id
The task to end.
hold_id
Or one hold to end.
Gives back What was released.
Budget and spending
get_budget
Read only
What is left to spend this month.
No inputs.
Gives back The monthly limit and what is left, the extra for finishing running tasks, and the company's card limit.
get_usage
Read only
The agent's bills and spending.
Input
What it is
seller_id
One seller's.
status
Bills in one status.
Gives back Bills with their lines, and spending by seller, offering and task.
flag_usage
Changes something
Question a line on a bill while the bill is in review.
Input
What it is
invoice_line_idrequired
The line.
reasonrequired
What looks wrong.
Gives back The flag.
Errors
A refused call is a tool error whose text is JSON: {"error": {"code": "…", "message": "…"}}