apify-mcp-server: Skill for Claude Code

.claude/skills/creating-mcp-agent-evals/SKILL.md

creating-mcp-agent-evals is a skill for Claude Code from apify/apify-mcp-server. It costs 71 tokens per session (2,332 once invoked), scanned A, original, MIT.

A guide for creating evaluation cases for MCP tools, which let an AI agent use external services. It uses Langfuse, a system for recording and evaluating agent runs, to test whether tool families work for real user requests.

In plain words
What is it for?
Use it to build coverage for MCP tool families, check real API behavior before writing cases, separate expected errors from normal tests, and investigate failed evaluation traces.
Why use it?
It helps distinguish a faulty test case, tool, or tool description instead of assuming every failed evaluation has the same cause.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is apify/apify-mcp-server's own configuration. It tells Claude Code how to work on apify-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apify-mcp-server configures →

About the project

Apify MCP Server connects AI agents to Apify's collection of web scrapers, crawlers, and automation tools through the Model Context Protocol, allowing them to extract data from websites, search engines, social media, maps, and online stores. It is for users who want agents to collect web data through compatible clients such as Claude Code, Claude.ai, Cursor, or VS Code. The catalogue entries configure or extend agent use of this MCP server.

apify/apify-mcp-server · 13,682 stars · on GitHub · mcp.apify.com

Reuse

Borrowing it

Nothing to install: this file belongs to apify/apify-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apify/apify-mcp-server/master/.claude/skills/creating-mcp-agent-evals/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/apify/apify-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for creating-mcp-agent-evals

README.md
[![agentmods](https://agentmods.dev/badge/skills/apify/apify-mcp-server/creating-mcp-agent-evals/github.svg)](https://agentmods.dev/skills/apify/apify-mcp-server/creating-mcp-agent-evals)
Your own site
<a href="https://agentmods.dev/skills/apify/apify-mcp-server/creating-mcp-agent-evals"><img src="https://agentmods.dev/badge/skills/apify/apify-mcp-server/creating-mcp-agent-evals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creating-mcp-agent-evals

Your own site · 80×15
<a href="https://agentmods.dev/skills/apify/apify-mcp-server/creating-mcp-agent-evals"><img src="https://agentmods.dev/badge/skills/apify/apify-mcp-server/creating-mcp-agent-evals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02332
Opus 5.5 $0.00028 $0.00933
Sonnet 5.5 $0.00014 $0.00466
Haiku 4.5 $0.00007 $0.00233

Measured 16d ago against content hash 1f4f98ef8472, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

creating-mcp-agent-evals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/creating-mcp-agent-evals/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating MCP agent evals for an MCP tool family

Overview

Build a small, calibrated Langfuse eval suite for one tool family (tasks, storage, runs, …), then use its failures to fix the tools. Core principle: evals are designed from user intent, never from tool descriptions — the eval defines what should work; descriptions get fixed afterward to make naive agents pass it.

Commands, item shapes, probe patterns, and sweep queries: reference.md.

The flow

  1. Inventory the tools — every tool and every argument group needs at least one case (the coverage matrix at the end proves it).
  2. Probe the platform first. Before writing any case that depends on API behavior (required fields, uniqueness rules, limits, error messages), verify it with a throwaway tsx script against the real API. Never write a case on an assumed contract — that's how you get input values the schema rejects.
  3. Two datasets, one per CI gate. mcp-server-evals-pr (the --dataset default) holds the kind: "tool-call" items and gates PRs (PR open/reopen, or the validated label); mcp-server-evals-merge holds the kind: "agent" items and runs on push to master. Every item declares metadata.kind ("tool-call", single-turn, only the first tool call is asserted, no judge, nothing executes, or "agent", multi-turn, run to completion and scored by an LLM judge). A kind: "tool-call" case sets expectedTools (required) and, to pin arguments (not just the tool name), expectedArgs — a flat object, every listed key must deep-equal the captured call's same key, unlisted keys ignored; add mcpToolsOnly: true when a case must isolate MCP-vs-MCP tool choice from Claude Code's built-ins. A kind: "agent" case that provokes an error on purpose (a collision, a not-found, requirement discovery) sets metadata.expectedErrors to the tool name(s) allowed to fail on it — the zero-tool-error gate exempts only those, so it never masks an unrelated failure the way a blanket error-tolerant dataset would. Give the item id the dataset-prefixed shape — pr/<tool>/<slug> in the pr dataset, merge/<family>/<slug> in the merge one, where the middle segment is the tool or tool family (search-actors, tasks, web-fetch, …) and <slug> is the rest.
  4. Write cases in waves: 2–3 easy (single tool, explicit input) → 1–2 medium (cross-tool chains, run options) → 2–3 hard (vague user language, error recovery, collisions). Run and review each wave before writing the next.
  5. Calibrate on the strongest model first (Opus). A failure there is a case defect or a product gap — never a description problem. Only a calibrated suite (strong model 100%) can attribute weaker-model failures to descriptions.
  6. Ladder down (Sonnet → Haiku). Passes-on-Opus-fails-on-Haiku = the tool description or output doesn't carry a naive agent. That's the signal you built the suite for.
  7. Fix tools via outputs before descriptions. A steering sentence in the tool's response summary/nextStep reaches every agent on every call; description text gets skimmed. Both output nudges that fixed Haiku failures in the original build were response-text changes.

Read the full file on GitHub · 68 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed 1f4f98ef8472
  2. 19d ago Changed 7000de272333
  3. 1mo ago Changed bdb38d1005bc
  4. 1mo ago Changed · -1 lines e4aee19d3627
  5. 1mo ago First seen · 69 lines · 71 tokens per session scan A 076245cea666

Subscribe to this mod's changes

creating-mcp-agent-evals is a skill published in the GitHub repository apify/apify-mcp-server (13,682 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 2,332 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

testing-python

Write and evaluate effective Python tests using pytest. Use when writing tests, reviewing test code, debugging test failures, or improving test coverage. Covers test design, fixtures, parameterization, mocking, async testing, and CI integration.

AI-Riksarkivet/ra-mcp · 48 tokens

unity-qa-scene-coverage

Use for QA scene coverage: build scenes, tags, components, prefabs, test assemblies, and release blockers.

rachitkumarrastogi/unity-mcp-server · 31 tokens

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code.

Wide-Moat/open-computer-use · 17 tokens

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Wide-Moat/open-computer-use · 52 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Wide-Moat/open-computer-use · 35 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens