Guidelines for naming MCP tools, describing parameters, and documenting tools in a language- and framework-agnostic manner
97
Pending
Does it follow best practices?
Impact
97%
1.02xAverage score across 5 eval scenarios
Pending
The risk profile of this skill
CodeCraft Inc. has developed several MCP tools but the documentation quality varies. The development team was focused on functionality and didn't follow consistent documentation practices. Now they need to review and improve the tools before releasing them to customers.
You have been given three poorly documented tools:
getWeatherData - Gets weather information (uses str type, vague descriptions)file_operations - Handles file operations (mixed parameter naming, missing constraints)DBqueryTool - Database query tool (implementation details in docs, inconsistent structure)Sample tool definitions (with issues):
{
"name": "getWeatherData",
"description": "Makes HTTP GET request to weather API and returns JSON",
"parameters": [
{
"name": "loc",
"type": "str",
"required": true
},
{
"name": "units",
"type": "string",
"required": false
}
]
}{
"name": "file_operations",
"description": "File operations tool",
"parameters": [
{
"name": "filename",
"type": "string",
"description": "File to process",
"required": true
},
{
"name": "file_path",
"type": "string",
"description": "Path to file",
"required": false
},
{
"name": "operation",
"type": "string",
"description": "What to do",
"required": true
}
]
}{
"name": "DBqueryTool",
"description": "Uses psycopg2 to execute PostgreSQL queries",
"parameters": [
{
"name": "dbName",
"type": "string",
"required": true
},
{
"name": "sql",
"type": "str",
"required": true
}
],
"returns": "query results"
}Review these tool definitions and create improved versions that follow MCP tool documentation guidelines. Produce:
improved_tools.json - JSON file containing the three improved tool definitions with all issues fixed.
improvement_report.md - Markdown report explaining:
The improved tools should:
The goal is to transform these from poorly documented examples into models of good MCP tool documentation.