Skip to main content
Glama
@event4u/agent-config

@event4u/agent-config

Official

run_tests

Executes the consumer project's Vitest suite under a fixed-argv safety envelope with timeout and output caps, optionally narrowing tests by name pattern or directory and returning structured results.

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRestrict to tests under this directory.
filterNoRestrict to tests matching this name pattern.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • changedInput schema / properties / filter / description
      Previous value: -"Restrict to tests matching this pattern."New value: +"Restrict to tests matching this name pattern."
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the execution envelope: fixed argv with no shell interpolation, a 120s timeout, a 64KB per-stream output cap, and the error path for unsupported runners. This is exactly the runtime context an agent needs before invoking a non-read-only, open-world process runner that annotations alone cannot convey.

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?

Dense but front-loaded: the safety envelope comes first, then scope limits, then narrowing options, then return shape. The phrase 'Shell-exec pilot per the 2026-07-07 council cut' adds internal-process jargon that costs tokens without helping an agent decide or call correctly.

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

Completeness4/5

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

With no output schema, the description usefully enumerates the return fields (runner, passed, exit_code, timed_out, truncated stdout/stderr, duration_ms). Minor gap: 'the consumer project's' never specifies which working directory or project root the suite runs against, which matters for a process-executing 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 coverage is 100%, so the baseline is 3, but the description adds real meaning: filter maps to vitest's --testNamePattern, and path is restricted to an in-tree file or directory. That constraint ('in-tree') is not stated in the schema and prevents an agent from passing an out-of-tree path.

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?

States a specific verb and resource ('Run the consumer project's vitest test suite') and immediately bounds scope to vitest projects, explicitly excluding Pest/PHPUnit, pytest, and Jest. An agent knows exactly what this tool executes and what it refuses, without opening the schema.

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?

Gives clear when-to-use context (vitest projects only) plus explicit when-not behavior ('other runners return an error until a future council round approves them') and how to narrow a run via filter or path. It does not point to any sibling tool for adjacent needs, but no obvious alternative is named in the definition itself.

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