Skip to main content
Glama

generate_skill_tests

Generate YAML test suites from SKILL.md files to validate AI agent skills across multiple test categories, then execute them for comprehensive evaluation.

Instructions

Auto-generate test cases from a SKILL.md file. Call this when the user asks to create tests for a skill — it reads the skill definition and generates a ready-to-run YAML test suite covering explicit, implicit, contextual, and negative test categories. After generating, call run_skill_test to execute them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skill_pathYesPath to the SKILL.md file to generate tests from
output_pathNoWhere to save the generated test YAML (default: same directory as SKILL.md)
countNoNumber of test cases to generate (default: 10)

Implementation Reference

  • Implementation of the 'generate_skill_tests' tool which constructs the command line call to 'evalview skill generate-tests'.
    elif name == "generate_skill_tests":
        skill_path = os.path.normpath(args.get("skill_path", ""))
        if not skill_path:
            return "Error: 'skill_path' is required."
        cmd = ["evalview", "skill", "generate-tests", skill_path, "--auto"]
        if args.get("output_path"):
            cmd += ["-o", os.path.normpath(args["output_path"])]
        if args.get("count"):
            cmd += ["-c", str(int(args["count"]))]
  • Schema definition for 'generate_skill_tests' tool including input arguments.
    {
        "name": "generate_skill_tests",
        "description": (
            "Auto-generate test cases from a SKILL.md file. "
            "Call this when the user asks to create tests for a skill — it reads the skill "
            "definition and generates a ready-to-run YAML test suite covering explicit, "
            "implicit, contextual, and negative test categories. "
            "After generating, call run_skill_test to execute them."
        ),
        "inputSchema": {
            "type": "object",
            "required": ["skill_path"],
            "properties": {
                "skill_path": {
                    "type": "string",
                    "description": "Path to the SKILL.md file to generate tests from",
                },
                "output_path": {
                    "type": "string",
                    "description": "Where to save the generated test YAML (default: same directory as SKILL.md)",
                },
                "count": {
                    "type": "number",

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hidai25/eval-view'

If you have feedback or need assistance with the MCP directory API, please join our Discord server