Skip to main content
Glama

Run the chosen API call

apiosk_execute
Destructive

Run the offer the user chose and return the result. Apiosk settles the call from the connected balance, at the price that was shown. Pass offer_token exactly as apiosk_discover returned it for the row the user picked, prompt set to the job you searched for, and max_price_usdc set to the price you showed — the call is refused rather than settled if the real price is above it. The token pins the endpoint and the price together, so there is nothing else to state and no price for you to restate. Before calling: say the exact price to the user and have them choose; never pick for them and never call this to explore. A token is good for an hour — if the user takes longer, run apiosk_discover again and use the fresh one. If the buyer's rules require a human to approve, this returns status: approval_required with an approval_id: poll apiosk_approval_status, then call this again with the same offer_token once approved. If it returns status: payment_required, the balance is empty or over its limit: call apiosk_connect to see which, and do not retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputNoThe request body, in the provider's own schema.
queryNoOptional query-string parameters.
promptYesThe job you searched for, in the user's own words. Recorded with the pick so the purchase reads back as an answer to a question rather than a bare charge.
operationNoOptional explicit operation id or path.
approval_idNoOptional approval id returned by apiosk_execute after an approval_required hold.
input_partsNoOptional exact split of provider inputs by path, query and body. The Apiosk approval card supplies this automatically.
offer_tokenYesThe row the user chose, as `offer_token` from apiosk_discover. Opaque: pass it back exactly as given. It pins the endpoint AND the price the user was shown, and is good for one hour.
path_paramsNoOptional path parameters.
max_price_usdcYesThe price ceiling — the exact price you showed the user. The call is refused, not paid, if the real price exceeds it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses the real side effect: settlement from the connected balance at the shown price, refusal if the actual price exceeds max_price_usdc, one-hour token expiry, and the approval_required status with retry semantics. This is exactly the behavioral context an agent needs for a paid action, and it does not contradict 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 longer than average but every sentence earns its place: action, settlement effect, required parameter values, user-consent guardrail, token expiry, and approval retry. It is front-loaded with the core purpose and proceeds in a clear operational order.

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?

Given nine parameters, nested optional inputs, an output schema, and a transactional side effect, the description covers all critical agent decisions: when to call, which values to pass, what happens on price mismatch, token expiry, and approval-required handling. Nothing necessary for safe invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds cross-parameter guidance: offer_token, prompt, and max_price_usdc must come from the exact discovery row and displayed price, and the token pins endpoint and price together so the agent should not restate them.

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 states a concrete action: run the user-chosen offer, settle it from the connected balance, and return the result. It distinguishes itself from discovery/compare/approval siblings by tying offer_token to apiosk_discover and by explicitly saying not to use this tool for exploration.

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

Usage Guidelines5/5

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

It gives explicit preconditions: show the exact price, get user choice, never choose for them. It also covers when to rerun apiosk_discover for an expired token and when to poll apiosk_approval_status before retrying, so the agent is told both the primary and exceptional paths.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.3/5.0
Disambiguation3/5

discover, compare, and the bare apiosk tool all take a plain-words job and return offers or prices, so an agent could easily pick the wrong one at the start. The descriptions clarify that discover is the initial sweep, compare is the side-by-side follow-up, and apiosk is a single-best-offer shortcut, but the boundaries are not immediately obvious from names alone.

Naming Consistency4/5

Most tools follow an apiosk_<verb> pattern such as discover, compare, execute, and connect, and all names are lowercase snake_case. The bare apiosk tool and the noun-style apiosk_approval_status are minor deviations from the otherwise consistent scheme.

Tool Count5/5

Six tools map cleanly to the paid-API purchase lifecycle: connect, discover, compare, execute, approval status, plus a single-best-offer shortcut. The count is well-scoped for the server's purpose and each tool has a distinct role in the workflow.

Completeness5/5

The workflow is covered end to end: account status, discovery, price comparison, execution, approval polling, and payment-retry guidance. There are no obvious dead ends or missing lifecycle operations for making and completing a paid API call.

Resources