extract_parameter
Converts hard-coded literals in saved queries into parameters, adding a default from the original value.
Instructions
Turn a hard-coded value in a saved query into a parameter: every occurrence of the literal ('2026-01-01', 100) becomes @param, and a '-- param:' header line is added with the old value as its default.
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": {
"query": "<query>",
"literal": "<literal>",
"param": "<param>"
},
"name": "extract_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| param | Yes | ||
| query | Yes | ||
| dry_run | No | ||
| literal | Yes | ||
| description | No |