Skip to main content
Glama
event4u-app

@event4u/agent-config

Official

run_tests

Execute vitest test suite with safety constraints, supporting optional test name filter or path restriction, and return results including pass/fail status, exit code, and duration.

Instructions

Run the consumer project's vitest test suite under a compiled safety envelope: fixed argv (no shell interpolation), 120s timeout, 64KB output cap per stream. Shell-exec pilot per the 2026-07-07 council cut — vitest projects only; other runners (Pest / PHPUnit, pytest, Jest) return an error until a future council round approves them. Pass filter (vitest --testNamePattern) or path (in-tree file or directory) to narrow the run. Returns runner, passed, exit_code, timed_out, truncated stdout/stderr, and duration_ms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRestrict to tests under this directory.
filterNoRestrict to tests matching this name pattern.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Since annotations are absent, description carries full burden. Discloses fixed argv, 120s timeout, 64KB cap, error for non-vitest runners, and return fields (runner, passed, exit_code, etc.). No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single dense paragraph, efficient but could benefit from bullet points. Every sentence adds value. Not overly long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Handles complexity well: no output schema, but description lists all return fields. Covers safety constraints, parameter usage, and supported runner. Complete for a test execution tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage with descriptions. Description adds value by mapping filter to vitest --testNamePattern and clarifying path as in-tree file/directory. Good but schema already does heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it runs the vitest test suite with a safety envelope. Explicitly differentiates from other test runners (Pest/PHPUnit, pytest, Jest) by stating they return an error. Verb+resource+scope are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear context: vitest projects only, shell-exec pilot per council cut. Explains how to narrow runs with filter and path. Does not directly name alternative tools among siblings, but siblings lack test runners.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/event4u-app/agent-config'

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