add_golden_sql
Save a SQL query as a Golden SQL example to build a knowledge base, recording the question it answers for future agent reuse.
Instructions
Save a SQL query as a Golden SQL example on a knowledge base.
Use the description to record the question the query answers - that is what makes it useful to the agents later.
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": {
"knowledge_base_id": "<knowledge_base_id>",
"golden_sql": "<golden_sql>",
"description": "<description>"
},
"name": "add_golden_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| golden_sql | Yes | ||
| description | Yes | ||
| knowledge_base_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |