---
title: "Tool Call Validate (x402)"
method: GET
path: "/x402/v2/tool-call-validate"
tags: ["x402"]
---

# Tool Call Validate (x402)

`GET /x402/v2/tool-call-validate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/tool-call-validate`
- Auth: none required

Validate an LLM tool call against a JSON Schema. Auto-fixes type mismatches (string '42' → number 42). Algorithmic.

## Query parameters

- `tool_name` string, required
- `tool_input` object, required
- `expected_schema` object, required

## Response `200`

Success

- object
  - `valid` boolean
  - `errors` unknown[]
    - unknown
  - `corrected_input` object

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
