format-grammar
Display a structured grammar summary showing rule lists, imports, options, and issue counts to provide a clear overview of ANTLR4 grammar organization.
Instructions
Display a structured summary of the grammar with proper formatting.
When to use: Get a high-level overview of grammar organization and structure.
Returns:
Grammar name and type
Complete rule list (organized by type)
Import declarations
Grammar options
Issue summary with counts
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "format-grammar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_file | No | Optional: path to a grammar file to read | |
| grammar_content | No | The content of the ANTLR4 grammar file |