get_style_guide
Retrieve coding style guidelines in Markdown format for a specified programming language to ensure consistent code quality and maintainability.
Instructions
Get coding style guidelines for the specified language in Markdown format
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": {
"language": "<language>"
},
"name": "get_style_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- server.py:60-65 (handler)The main handler function for the 'get_style_guide' tool. It is registered via the @mcp.tool() decorator and implements the tool logic by reading and returning the corresponding style guide template file for the given language.
@mcp.tool() def get_style_guide(language: str) -> str: """Get coding style guidelines for the specified language in Markdown format""" filename = f"{language}_style_guide.md" return read_template(filename)