add_tuning_candidate
Add a concrete rewrite or index experiment to a tuning session, persisting the fingerprint and optional artifact reference.
Instructions
Add one concrete rewrite or index experiment to a tuning session. Only its fingerprint and optional artifact reference are persisted.
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": {
"session_id": "<session_id>",
"candidate_sql": "<candidate_sql>",
"strategy": "<strategy>"
},
"name": "add_tuning_candidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | Yes | Candidate family: predicate, join, aggregation, cardinality, index, combined, or rewrite_plus_index. | |
| session_id | Yes | Tuning session identifier. | |
| artifact_ref | No | Durable artifact reference. rewrite_plus_index candidates require candidate:<parent-id>. | |
| candidate_sql | Yes | Concrete read-only candidate SQL. | |
| database_name | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||