agentleFS
jmrplensjmrplens/gitlab-mcp-server/.github/skills/create-mcp-evaluation/SKILL.md

create-mcp-evaluation

Skill47 starsChanged 6 months agoMITView on GitHub

Create evaluation Q&A pairs to test MCP server quality. Use when validating how well an MCP server enables LLMs to accomplish real tasks, benchmarking tool design, or measuring server effectiveness through realistic question-answer evaluations.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Create comprehensive evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions using only …

    line 8
  2. Distinctive:

    Use READ-ONLY tools to explore available data

    line 25
  3. Distinctive:

    Create 10 evaluation questions following these requirements:

    line 32
  4. Distinctive:

    Use synonyms and paraphrases, not direct keywords from target content

    line 47
  5. Distinctive:

    Should stress-test tool return values across data modalities

    line 49
  6. Distinctive:

    Verify the answer is correct and stable

    line 67
  7. Distinctive:

    Ensure no write operations are needed

    line 69
  8. Distinctive:

    Put a couple of cases to a real model, which needs a key, consent and a ceiling:

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 Evaluation Creator

Create comprehensive evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions using only the tools provided.

Overview

The quality of an MCP server is measured by how well its implementations (input/output schemas, descriptions, functionality) enable LLMs with no other context to answer realistic and difficult questions.

Process

Step 1: Tool Inspection

  1. List all tools available in the MCP server
  2. Understand input/output schemas, descriptions, and annotations
  3. Identify read-only vs. write operations
  4. Note pagination capabilities and limits

Step 2: Content Exploration

  1. Use READ-ONLY tools to explore available data
  2. Identify stable data points that won't change over time
  3. Map relationships between resources (projects → issues → comments → users)
  4. Note interesting patterns, edge cases, and complex relationships

Step 3: Question Design

Create 10 evaluation questions following these requirements:

Core Rules

  • Questions MUST be independent (no dependency on other answers)
  • Questions MUST require ONLY read-only, non-destructive operations
  • Questions MUST be realistic — tasks humans with LLM assistance would care about
  • Each answer MUST be a single, verifiable value (string comparison)
  • Answers MUST be stable (won't change over time)

Complexity Guidelines

  • Require multiple tool calls (potentially dozens)
  • Multi-hop: answer depends on chaining information from multiple queries
  • Require deep exploration, not surface-level keyword search
  • Use synonyms and paraphrases, not direct keywords from target content
  • May require extensive pagination through results
  • Should stress-test tool return values across data modalities

Answer Diversity Cover diverse answer types:

  • Names (user, project, group)
  • IDs (project ID, issue IID)
  • URLs and paths
  • Timestamps and dates (specify format in question)
  • Counts and quantities
  • Boolean (True/False)
  • Status values

Step 4: Verification

For each question:

  1. Solve it yourself using only the MCP tools
  2. Verify the answer is correct and stable
  3. Confirm it requires multiple tool calls
  4. Ensure no write operations are needed

Step 5: Project Evaluator Execution

For this repository, the evaluation is test/e2e/modeleval: it boots a GitLab, drives the real cmd/server binary over stdio and puts the corpus to a model, so what is measured is the surface a client is served. Cases are typed declarations in internal/testutil/modelcorpus (ids such as MS-001, MF-001), each carrying its own answer key. See the developer guide for the full setting matrix.

A prompt may not name its own answer. The stimulus you write must not contain the tool, action or parameter names of that case's key, or TestContract_NoStimulusNamesItsOwnAnswer fails: a prompt that hands the model the call measures copying rather than tool selection. Where the literal really is the request, declare it in declarations.go with its reason.

Rehearse without spending anything. fake:perfect replays each case's key through the whole pipe and calls no provider:

MODELEVAL_MODELS=fake:perfect make modeleval-ce

Put a couple of cases to a real model, which needs a key, consent and a ceiling:

MODELEVAL_SPEND=yes \
MODELEVAL_BUDGET_USD=5 \
MODELEVAL_CASES=MS-001,MF-001 \
MODELEVAL_MODELS='anthropic:claude-haiku-4-5-20251001' \
make modeleval-ce

Output Format

<evaluation>
  <qa_pair>
    <question>Find the GitLab project that contains a CI/CD pipeline with a job named "deploy-prod". What is the default branch of that project? Answer with the exact branch name.</question>
    <answer>main</answer>
  </qa_pair>
  <qa_pair>
    <question>In the project with ID 42, find the merge request that was merged on 2024-01-15. Who authored it? Answer with the username.</question>
    <answer>jdoe</answer>
  </qa_pair>
  <!-- 8 more qa_pairs -->
</evaluation>

Example Question Patterns for GitLab MCP

  1. Cross-resource lookup: "Find the issue in project X that mentions Y. Who was assigned to it?"
  2. Multi-hop navigation: "Find the MR that fixed issue #N. What pipeline job failed first in that MR?"
  3. Aggregation: "How many open issues with label 'bug' exist across all projects in group Z?"
  4. Temporal reasoning: "What was the last commit to the develop branch of project X before 2024-06-01? Answer with the short SHA."
  5. Relationship tracing: "Find the user who created the most merge requests in project X during 2024. Answer with their username."

Quality Checklist

  • 10 questions created
  • All questions use only read-only operations
  • All questions are independent
  • All answers verified manually
  • Answers are stable (won't change)
  • Answers use direct string comparison
  • Questions cover diverse tool usage (projects, issues, MRs, pipelines, users)
  • Questions require multi-step reasoning
  • No questions solvable with a single tool call
  • Output format matches XML schema

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.