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
- 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
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}'
Verify tool completeness
Document discovered tools — Create inventory of tools for systematic testing.
Phase 3: Functional Testing
For each discovered tool:
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
}'
Verify response structure
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
}'
Verify error response quality
Phase 4: Question-Based Evaluation
Generate and test with realistic user questions:
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)
Execute each question through MCP client or Inspector
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:
| Category |
Weight |
Criteria |
| Tool Discovery |
20% |
All operations exposed, proper naming |
| Basic Functionality |
30% |
Valid inputs return correct responses |
| Error Handling |
20% |
Graceful errors with actionable messages |
| Question Accuracy |
20% |
Test questions answered correctly |
| Performance |
10% |
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:
- List/Query: "Show me all [resources] that match [criteria]"
- Get Details: "What are the details of [resource] with ID [id]?"
- Create: "Create a new [resource] with [properties]"
- Update: "Update [resource] [id] to change [field] to [value]"
- Delete: "Remove [resource] with ID [id]"
- Aggregate: "How many [resources] exist with [status]?"
- Search: "Find [resources] where [field] contains [term]"
- 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'"
1---2name: mcp-server-evaluations3description: 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.4license: MIT5---67# MCP Server Evaluations Skill89Systematically evaluate MCP servers to ensure they function correctly, handle errors gracefully, and meet quality standards.1011## Workflow1213### Phase 1: Environment Verification14151. **Verify MCP server is running**16 ```bash17 curl -s http://localhost:3030/health18 # Expected: 200 OK19 20 curl -s -X POST http://localhost:3030/mcp \21 -H "Content-Type: application/json" \22 -d '{"jsonrpc":"2.0","id":1,"method":"ping"}'23 # Expected: {"jsonrpc":"2.0","id":1,"result":{}}24 ```2526### Phase 2: Tool Discovery27281. **List all available tools**29 ```bash30 curl -X POST http://localhost:3030/mcp \31 -H "Content-Type: application/json" \32 -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'33 ```34352. **Verify tool completeness**36 - [ ] All OpenAPI operations exposed as tools37 - [ ] Tool names follow consistent convention (e.g., `getUsers`, `createOrder`)38 - [ ] Descriptions are clear and actionable39 - [ ] Required vs optional parameters clearly marked40 - [ ] Parameter types match OpenAPI schema41423. **Document discovered tools** — Create inventory of tools for systematic testing.4344### Phase 3: Functional Testing4546For each discovered tool:47481. **Basic functionality test**49 ```bash50 curl -X POST http://localhost:3030/mcp \51 -H "Content-Type: application/json" \52 -d '{53 "jsonrpc": "2.0",54 "method": "tools/call",55 "params": {56 "name": "<tool_name>",57 "arguments": { <valid_arguments> }58 },59 "id": 260 }'61 ```62632. **Verify response structure**64 - [ ] Response contains expected data65 - [ ] Data types match schema66 - [ ] No unexpected null values67 - [ ] Pagination works (if applicable)68693. **Error handling test** — Call with invalid/missing arguments:70 ```bash71 curl -X POST http://localhost:3030/mcp \72 -H "Content-Type: application/json" \73 -d '{74 "jsonrpc": "2.0",75 "method": "tools/call",76 "params": {77 "name": "<tool_name>",78 "arguments": {}79 },80 "id": 381 }'82 ```83844. **Verify error response quality**85 - [ ] Error message is actionable86 - [ ] Missing required parameters identified87 - [ ] HTTP status codes propagated correctly8889### Phase 4: Question-Based Evaluation9091Generate and test with realistic user questions:92931. **Generate 10+ test questions** covering:94 - Simple single-tool queries95 - Multi-step workflows requiring multiple tools96 - Edge cases (empty results, large datasets)97 - Error scenarios (invalid IDs, unauthorized access)98992. **Execute each question** through MCP client or Inspector1001013. **Score responses** using evaluation criteria:102 - **Correctness**: Does the answer match expected result?103 - **Completeness**: Is all relevant information included?104 - **Clarity**: Is the response well-structured?105 - **Performance**: Response time within acceptable limits?106107### Phase 5: Quality Scoring108109Calculate overall quality score:110111| Category | Weight | Criteria |112|----------|--------|----------|113| Tool Discovery | 20% | All operations exposed, proper naming |114| Basic Functionality | 30% | Valid inputs return correct responses |115| Error Handling | 20% | Graceful errors with actionable messages |116| Question Accuracy | 20% | Test questions answered correctly |117| Performance | 10% | Response times < 5s for standard ops |118119**Pass threshold**: 80% overall score120121## Quick Evaluation Checklist122123Run this minimal check for fast validation:124125```bash126# 1. Health check127curl -s http://localhost:3030/health | grep -q "" && echo "✓ Health OK" || echo "✗ Health FAILED"128129# 2. MCP ping130curl -s -X POST http://localhost:3030/mcp \131 -H "Content-Type: application/json" \132 -d '{"jsonrpc":"2.0","id":1,"method":"ping"}' | jq -e '.jsonrpc == "2.0" and .result' > /dev/null && echo "✓ Ping OK" || echo "✗ Ping FAILED"133134# 3. Tools list135curl -s -X POST http://localhost:3030/mcp \136 -H "Content-Type: application/json" \137 -d '{"jsonrpc":"2.0","method":"tools/list","id":1}' | jq '.result.tools | length' | xargs -I {} echo "✓ {} tools discovered"138139# 4. Sample tool call (adjust tool name and args)140curl -s -X POST http://localhost:3030/mcp \141 -H "Content-Type: application/json" \142 -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"143```144145## Test Question Templates146147Use these patterns to generate effective test questions:1481491. **List/Query**: "Show me all [resources] that match [criteria]"1502. **Get Details**: "What are the details of [resource] with ID [id]?"1513. **Create**: "Create a new [resource] with [properties]"1524. **Update**: "Update [resource] [id] to change [field] to [value]"1535. **Delete**: "Remove [resource] with ID [id]"1546. **Aggregate**: "How many [resources] exist with [status]?"1557. **Search**: "Find [resources] where [field] contains [term]"1568. **Workflow**: "Create a [resource], then update it, then list all"157158## References159160For detailed documentation:161- [references/mcp-inspector-guide.md](references/mcp-inspector-guide.md) — Inspector setup & usage162- [references/evaluation-criteria.md](references/evaluation-criteria.md) — Quality metrics & scoring163- [references/question-templates.md](references/question-templates.md) — Test question generation164165## Example: Petstore API Evaluation166167```bash168# 1. Run health checks169curl -s http://localhost:3030/health170curl -s -X POST http://localhost:3030/mcp \171 -H "Content-Type: application/json" \172 -d '{"jsonrpc":"2.0","id":1,"method":"ping"}' | jq -e '.jsonrpc == "2.0" and .result' > /dev/null && echo "✓ Ping OK" || echo "✗ Ping FAILED"173174# 2. Tool discovery175curl -s -X POST http://localhost:3030/mcp \176 -H "Content-Type: application/json" \177 -d '{"jsonrpc":"2.0","method":"tools/list","id":1}' | jq '.result.tools'178179# 3. Test questions:180# - "List all available pets"181# - "Show details of pet with ID 1"182# - "Find pets with status 'available'"183# - "Create a new pet named 'Fluffy'"184```