Skip to main content
Glama

wais_confirm

Confirms a high-risk action or completes a payment challenge after user approval, automatically polling for completion when required.

Instructions

Confirm a high-risk action or complete a payment challenge.

Call after wais_execute returned a 402 confirmation challenge and the user has approved. If there was a payment link, the user must complete payment first. Polls for completion automatically if the challenge included a resolution object.

Args: site_url: The site.url from agents.json. challenge_id: The challenge_id from the 402 response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
challenge_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool polls for completion automatically if the challenge includes a resolution object. It implies a write/confirmation action but does not detail failure modes or side effects. The polling behavior adds transparency, raising the score above baseline.

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 fairly concise, with a clear header sentence followed by conditions and parameter explanations. It could be slightly more streamlined by integrating the 'Call after' condition more tightly, but overall it is well-structured and front-loaded with essential information.

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?

Given no annotations, the description covers the basic behavior, preconditions, and parameter sources. It mentions automatic polling, which is a key behavioral detail. The presence of an output schema (not shown but indicated) supplements the completeness. Could mention error handling or what to do if the challenge is already confirmed, but the description is largely adequate.

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?

Schema description coverage is 0%, but the description provides detailed explanations for both parameters in the Args section: site_url comes from agents.json, challenge_id from the 402 response. This adds significant meaning beyond the raw schema, which only lists names and types.

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 confirms a high-risk action or completes a payment challenge, specifying the context: after wais_execute returns a 402 confirmation challenge and user approval. The verb 'confirm' is specific and distinguishes it from sibling tools like wais_execute (preceding step) and wais_discover/wais_register/wais_status (different purposes).

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?

Explicitly states when to call: after wais_execute returns a 402 confirmation challenge and the user has approved. Also mentions that if there was a payment link, payment must be completed first, and describes automatic polling if a resolution object exists. This provides clear context and conditions for use.

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/deegerhq/wais-mcp'

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