Skip to main content
Glama

run_tests

Run the project's test suite using the command detected from the repository. Failures are summarized with extracted failure lines, letting you jump from test failures to the responsible code.

Instructions

Run the project test suite using the command detected from the repository. Failing output is summarised with the failure lines pulled out, so you can go straight from "tests failed" to the responsible code. This is the tool to use in an implement → test → fix loop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoSubdirectory (module) to run in. Defaults to the detected location.
targetNoOptional test selector appended to the command (e.g. "-Dtest=PortfolioRiskServiceTest", "src/foo.test.ts").
commandNoOverride the detected test command.
workspaceNoWorkspace alias. Defaults to the active workspace.
timeout_secondsNoPer-run timeout. Defaults to the bridge configuration.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses two key behaviors: command auto-detection and summarization of failing output with failure lines pulled out. This adds meaningful context beyond the raw schema, though it omits details like timeout handling or potential side effects.

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

Conciseness5/5

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

Three sentences, front-loaded with the primary action. Every sentence adds value: purpose, behavior, and usage context. No fluff.

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?

For a 5-parameter tool with no output schema, the description covers the essential purpose, usage loop, and output behavior. It doesn't explain return format or timeout behavior, but the schema covers parameters and the description provides enough context for a typical test-running workflow.

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

Parameters3/5

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

Schema covers 100% of parameters with thorough descriptions, so the baseline is 3. The tool description adds no additional parameter-level detail, relying on the schema to document path, target, command, and timeout.

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?

The description uses a specific verb ('Run') and resource ('project test suite'), and adds scope by noting command auto-detection. This clearly distinguishes it from sibling tools like run_build or run_lint.

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?

Explicitly states 'This is the tool to use in an implement → test → fix loop', providing clear situational guidance. It does not name alternatives or exclusions, but the context is unambiguous.

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/zcrossoverz/repo-bridge'

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