agentleFS
mcp-com-aimcp-com-ai/mcp-server-evaluations-skills/SKILL.md

mcp-server-evaluations

Skill2 starsChanged 10 months agoMITView on GitHub

Test MCP servers for quality and reliability. Verify tool functionality, test error handling, generate tests, and assess response quality with no dependencies other than curl. Use this when validating MCP server implementations, testing OpenAPI-to-MCP conversions, or assessing API tool quality.

  • Sends data out

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this minimal check for fast validation:

    line 128
  2. Distinctive:

    Use these patterns to generate effective test questions:

    line 152

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Server Evaluations Skill

Systematically evaluate MCP servers to ensure they function correctly, handle errors gracefully, and meet quality standards.

Workflow

Phase 1: Environment Verification

  1. Verify MCP server is running
    curl -s http://localhost:3030/health
    # Expected: 200 OK
    
    curl -s -X POST http://localhost:3030/mcp \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'
    # Expected: {"jsonrpc":"2.0","id":1,"result":{}}

Phase 2: Tool Discovery

  1. List all available tools
    curl -X POST http://localhost:3030/mcp \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
  2. Verify tool completeness
    • All OpenAPI operations exposed as tools
    • Tool names follow consistent convention (e.g., getUsers, createOrder)
    • Descriptions are clear and actionable
    • Required vs optional parameters clearly marked
    • Parameter types match OpenAPI schema
  3. Document discovered tools — Create inventory of tools for systematic testing.

Phase 3: Functional Testing

For each discovered tool:

  1. Basic functionality test
    curl -X POST http://localhost:3030/mcp \
      -H "Content-Type: application/json" \
      -d '{
        "jsonrpc": "2.0",
        "method": "tools/call",
        "params": {
          "name": "<tool_name>",
          "arguments": { <valid_arguments> }
        },
        "id": 2
      }'
  2. Verify response structure
    • Response contains expected data
    • Data types match schema
    • No unexpected null values
    • Pagination works (if applicable)
  3. Error handling test — Call with invalid/missing arguments:
    curl -X POST http://localhost:3030/mcp \
      -H "Content-Type: application/json" \
      -d '{
        "jsonrpc": "2.0",
        "method": "tools/call",
        "params": {
          "name": "<tool_name>",
          "arguments": {}
        },
        "id": 3
      }'
  4. Verify error response quality
    • Error message is actionable
    • Missing required parameters identified
    • HTTP status codes propagated correctly

Phase 4: Question-Based Evaluation

Generate and test with realistic user questions:

  1. Generate 10+ test questions covering:
    • Simple single-tool queries
    • Multi-step workflows requiring multiple tools
    • Edge cases (empty results, large datasets)
    • Error scenarios (invalid IDs, unauthorized access)
  2. Execute each question through MCP client or Inspector
  3. Score responses using evaluation criteria:
    • Correctness: Does the answer match expected result?
    • Completeness: Is all relevant information included?
    • Clarity: Is the response well-structured?
    • Performance: Response time within acceptable limits?

Phase 5: Quality Scoring

Calculate overall quality score:

CategoryWeightCriteria
Tool Discovery20%All operations exposed, proper naming
Basic Functionality30%Valid inputs return correct responses
Error Handling20%Graceful errors with actionable messages
Question Accuracy20%Test questions answered correctly
Performance10%Response times < 5s for standard ops

Pass threshold: 80% overall score

Quick Evaluation Checklist

Run this minimal check for fast validation:

# 1. Health check
curl -s http://localhost:3030/health | grep -q "" && echo "✓ Health OK" || echo "✗ Health FAILED"

# 2. MCP ping
curl -s -X POST http://localhost:3030/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"ping"}' | jq -e '.jsonrpc == "2.0" and .result' > /dev/null && echo "✓ Ping OK" || echo "✗ Ping FAILED"

# 3. Tools list
curl -s -X POST http://localhost:3030/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}' | jq '.result.tools | length' | xargs -I {} echo "✓ {} tools discovered"

# 4. Sample tool call (adjust tool name and args)
curl -s -X POST http://localhost:3030/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"listPets","arguments":{}},"id":2}' | jq '.result' > /dev/null && echo "✓ Tool call OK" || echo "✗ Tool call FAILED"

Test Question Templates

Use these patterns to generate effective test questions:

  1. List/Query: "Show me all [resources] that match [criteria]"
  2. Get Details: "What are the details of [resource] with ID [id]?"
  3. Create: "Create a new [resource] with [properties]"
  4. Update: "Update [resource] [id] to change [field] to [value]"
  5. Delete: "Remove [resource] with ID [id]"
  6. Aggregate: "How many [resources] exist with [status]?"
  7. Search: "Find [resources] where [field] contains [term]"
  8. Workflow: "Create a [resource], then update it, then list all"

References

For detailed documentation:

  • references/mcp-inspector-guide.md — Inspector setup & usage
  • references/evaluation-criteria.md — Quality metrics & scoring
  • references/question-templates.md — Test question generation

Example: Petstore API Evaluation

# 1. Run health checks
curl -s http://localhost:3030/health
curl -s -X POST http://localhost:3030/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"ping"}' | jq -e '.jsonrpc == "2.0" and .result' > /dev/null && echo "✓ Ping OK" || echo "✗ Ping FAILED"

# 2. Tool discovery
curl -s -X POST http://localhost:3030/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}' | jq '.result.tools'

# 3. Test questions:
# - "List all available pets"
# - "Show details of pet with ID 1"
# - "Find pets with status 'available'"
# - "Create a new pet named 'Fluffy'"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.