compare-profiles
Compare two parsing profiles to measure optimization impact, validate grammar changes, and get performance verdicts with percentage changes.
Instructions
Compare two parsing profiles to measure optimization impact.
When to use: Validating grammar optimizations, A/B testing changes, regression testing.
Parameters:
profile1: First profile result (from profile-parsing)
profile2: Second profile result (from profile-parsing)
Returns:
Comparison metrics with % change
Performance verdict (improved, degraded, unchanged)
Key differences highlighted
Recommendations based on changes
Example: profile1: { parseTimeMs: 150, ambiguityCount: 5, ... } profile2: { parseTimeMs: 80, ambiguityCount: 0, ... }
Output:
Metric | Before | After | Change |
Parse Time | 150ms | 80ms | -46.7% ✅ |
Ambiguities | 5 | 0 | -100% ✅ |
Verdict: ✅ Improved - Parse time reduced by 46.7%
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": {
"profile1": "<profile1>",
"profile2": "<profile2>"
},
"name": "compare-profiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile1 | Yes | First profile result (baseline) | |
| profile2 | Yes | Second profile result (optimized) |