validate_model
Check if a model ID exists in the OpenRouter.ai registry. Returns true if valid, false otherwise.
Instructions
Verifies if a given model ID exists within the OpenRouter.ai registry. Use this for a quick check of model ID validity before making other API calls. Returns a boolean value (true if valid, false otherwise).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "validate_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | (Required) The unique identifier string of the OpenRouter.ai model to check for validity. |