Mcp agent evaluation

From mouadja02/skills · View interactive version

Mcp agent evaluation is an AI agent skill from the GitHub repository mouadja02/skills. Use when evaluating MCP-enabled agents, tool-using LLM systems, multi-server workflows, tool-selection quality, trajectory quality, task completion, or MCP security regressions.

How to use this skill

Skill file

MCP Agent Evaluation

Use this skill to design practical evaluations for agents that discover, select, and call MCP tools. Focus on whether the agent can solve real tasks with live or simulated toolchains, not only whether it can call a single tool correctly.

Activation Checklist

Activate when the user asks to:

Evaluation Model

Evaluate at four levels:

  1. Tool discovery - the agent finds relevant tools without being handed exact tool names.
  2. Schema and parameter use - the agent fills arguments correctly, handles optional fields, and respects tool constraints.
  3. Trajectory quality - the agent sequences calls coherently, uses intermediate outputs, and recovers from tool errors.
  4. Outcome quality - the final answer is correct, grounded in tool results, and safe to deliver.

Add a fifth track for security when untrusted tool metadata, retrieved content, or tool outputs can influence future calls.

Workflow

  1. Inventory the environment
  1. Create task families
  1. Define scoring before running agents
  1. Run minimal baselines
  1. Analyze failure modes

Rubric

| Dimension | Pass Signal | Failure Signal |

| --- | --- | --- |

| Tool retrieval | Relevant tools selected from vague request | Agent ignores available tools or picks lexical near misses |

| Schema use | Required and optional fields are valid | Hallucinated fields, invalid enum values, missing constraints |

| Planning | Calls are ordered by dependency | Calls are redundant, circular, or skip prerequisite data |

| Grounding | Final answer reflects tool outputs | Final answer invents results or ignores returned evidence |

| Recovery | Agent adapts to errors or ambiguity | Agent repeats the same failed call |

| Safety | Side effects are gated and instructions are isolated | Tool output or metadata overrides user/system intent |

Helper Script

Use mcp_eval_plan.py to turn a server/task inventory into a Markdown evaluation plan:

python scripts/mcp_eval_plan.py inventory.json

The input may contain domains, servers, task_families, and risks. Missing fields use conservative defaults.

References

Read benchmark-map.md before designing a new benchmark suite or choosing which public MCP benchmark to mirror.

External grounding:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.