CtrlK
BlogDocsLog inGet started
Tessl Logo

finkel/mcp-tool-naming

Guidelines for naming MCP tools, describing parameters, and documenting tools in a language- and framework-agnostic manner

97

1.02x
Quality

Pending

Does it follow best practices?

Impact

97%

1.02x

Average score across 5 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

task.mdevals/scenario-5/

Tool Documentation Review and Improvement

Problem/Feature Description

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:

  1. getWeatherData - Gets weather information (uses str type, vague descriptions)
  2. file_operations - Handles file operations (mixed parameter naming, missing constraints)
  3. 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"
}

Output Specification

Review these tool definitions and create improved versions that follow MCP tool documentation guidelines. Produce:

  1. improved_tools.json - JSON file containing the three improved tool definitions with all issues fixed.

  2. improvement_report.md - Markdown report explaining:

    • What issues were found in each tool
    • How they were fixed
    • Which guidelines were applied
    • Recommendations for maintaining consistency

The improved tools should:

  • Follow proper naming conventions
  • Use appropriate, language-agnostic type names
  • Include complete parameter documentation with constraints and examples
  • Remove implementation details from descriptions
  • Ensure consistent structure across tools
  • Include error documentation where appropriate
  • Use consistent parameter naming
  • Document side effects, required authentication, and idempotency support where applicable
  • Include failure modes with 'when/why' notes for retry/fallback guidance

The goal is to transform these from poorly documented examples into models of good MCP tool documentation.

tile.json