Estimate tool schema token cost
agent-tool-schema_tool-schema-token-costEstimate tokens for caller-supplied tool names, descriptions, and schemas at four characters per token. The figure is an estimate, not a provider tokenizer count. Price $0.03 USDC. POST /api/v1/agent-tool-schema/tool-schema-token-cost. An unpaid call returns the x402 payment terms and does not run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agent-tool-schema_tool-schema-token-cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | No | tools, array. Optional. | |
| openapi | No | openapi, object. Optional. | |
| schemas | No | schemas, array. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | No | issues. Array. | |
| success | No | success. Boolean. | |
| analysis | No | analysis. String. | |
| warnings | No | warnings. Array. | |
| limitations | No | limitations. Array. | |
| recommendations | No | recommendations. Array. |