validate_result
Verify data claims against Ontario datasets by re-executing the source SQL and cross-checking numbers and terms from the claim.
Instructions
Validate that a claim is supported by query results.
Call this after making a data claim to verify it against the source. Re-executes the SQL, extracts numbers and terms from the claim, and checks them against the actual data.
Args: sql: The SQL query that produced the data backing the claim claim: The natural-language claim to verify (e.g. "Toronto had 12,345 building permits in 2023")
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": {
"sql": "<sql>",
"claim": "<claim>"
},
"name": "validate_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| claim | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |