tune_weights
Learn per-repository signal-fusion weights from the ranking ledger to optimize retrieval. Computes and optionally persists tuning overrides based on historical events.
Instructions
Self-tuning retrieval: read the persistent ranking ledger and learn per-repo signal-fusion weights, written to ~/.trace-mcp/tuning.jsonc. Requires telemetry.enabled in config. Read-only by default (dry_run=true unless explicitly disabled). Returns JSON: { applied, reason, weights?, before?, events_used? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | When true (default), compute weights without persisting to disk. | |
| min_events | No | Minimum ledger events required before writing a tuning override (default 25). |