GET /v1/tool-call-validateValidate tool call arguments against schema
Agent Tools lf-agent-tools
Checks that the arguments an AI wants to hand to a tool follow the rules, before anything runs. Validates tool call arguments against a provided JSON Schema or OpenAI tool-call format schema.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
schema | string | Yes | JSON schema |
arguments | string | No | JSON arguments to validate |
Response Schema
valid (boolean): Whether arguments are valid
errors (array): Validation errors
cURL Example
curl 'https://lf-agent-tools.laminarforge.dev/v1/tool-call-validate?schema={"type":"object"}&arguments={}' -H 'Authorization: Bearer lf_YourApiKey'Python Example
import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/tool-call-validate'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'schema': '{"type":"object"}', 'arguments': '{}'}
response = requests.get(url, headers=headers, params=params)
print(response.json())