Toolschecker

LangChain for AI Agents & Tool Use

Validates function schemas and parameters against LLM tool call specifications to prevent runtime errors

Try the tool

client runner

Validation Results

Run the tool to see output.

Examples

Valid Search Call

{
  "tool_definition": "{name: 'search', parameters: {type: 'object', properties: {query: {type: 'string'}}}}",
  "parameters": "{query: 'test'}",
  "llm_provider": "OpenAI"
}

Expected output

{valid: true, message: 'Schema matches parameters'}

Missing Required Param

{
  "tool_definition": "{name: 'email', parameters: {type: 'object', properties: {to: {type: 'string'}, subject: {type: 'string'}}}}",
  "parameters": "{to: 'user@example.com'}",
  "llm_provider": "Anthropic"
}

Expected output

{valid: false, message: 'Missing required parameters: subject'}

How it works

Parses the provided function schema and compares it against the input parameters. Validates type consistency, required fields, and provider-specific constraints. Returns structured validation results for immediate feedback.

Related tools