x402

Tool Call Validate (x402)

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

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

Query parameters

tool_namestring required
tool_inputobject required
expected_schemaobject required

Response

Success

validboolean
corrected_inputobject

Example response

{
  "valid": true,
  "errors": [],
  "tool_name": "test",
  "error_count": 0,
  "corrected_input": null,
  "corrections_applied": null
}

Changes

No recorded changes to this operation across all 1 revision of this API.