check_endpoint_schema tool inspects an endpoint to learn its price, supported methods, input/output schema, and auth mode without making a payment.
Equivalent CLI command: npx agentcash check <url>
Parameters
string
required
The endpoint URL to check.
string
Specific HTTP method to probe. If omitted, AgentCash probes multiple methods and checks the OpenAPI spec.
string[]
Additional headers to include. Each entry must use
Name: value format.Response
string
Cost per request in USDC.
string[]
Supported HTTP methods (GET, POST, etc.).
object
Expected request body format (JSON schema).
object
Response body format (JSON schema).
string
Authentication mode:
x402, siwx, mpp, or none.Behavior
- Sends a probe request to the endpoint
- Reads the
402 Payment Requiredresponse for pricing and auth details - Fetches the OpenAPI spec (if available) for schema information
- Probes multiple HTTP methods in parallel to determine which are supported
- Returns all metadata without making a payment
Example
Ask your agent:Check the pricing and schema for https://stableenrich.dev/api/company/lookup using AgentCash.