Docs/Agent Tools/GET /v1/tool-call-validate

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

ParameterTypeRequiredDescription
schemastringYesJSON schema
argumentsstringNoJSON 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())