Skip to main content
Glama

run_tests

Run pytest in a repository to verify changes or investigate test failures. Returns pass/fail status, summary, and failing test list using a fixed, safe command.

Instructions

Runs pytest in a repository using a fixed, MCPilot-chosen command (never an LLM-supplied command). Returns pass/fail status, summary, and list of failing tests. The repo path must be within allowed roots.

Use this when investigating test failures or verifying that changes haven't broken tests. Does not modify system state (runs read-only tests).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals key traits: the command is fixed (never LLM-supplied), the operation is read-only ('Does not modify system state'), and the repo path must be within allowed roots. These are important for an agent to use the tool safely and correctly, though it does not cover return format details (handled by output schema).

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?

The description is two short paragraphs, front-loaded with the primary purpose. Every sentence adds distinct information: operation, security constraint, return contents, usage context, and side-effect guarantee. No redundant or filler content.

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?

Given the simplicity of the tool (single parameter) and the presence of an output schema, the description covers all critical aspects: what it does, when to use it, constraints, and non-modification guarantee. Minor gaps like timeout or concurrency behavior are not present, but for a read-only test runner these are not essential.

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?

The schema for the only parameter 'repo' has no description (0% coverage). The description adds the constraint 'repo path must be within allowed roots', which provides some semantic value beyond the schema. However, it does not clarify path format or what constitutes a valid repository, leaving the agent to infer from the noun 'repository' used in the text.

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 clearly states a specific verb ('Runs') and resource ('pytest in a repository'), and specifies the output (pass/fail status, summary, list of failing tests). It is immediately distinguishable from all sibling tools, which are system monitoring and file/git operations.

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?

The description explicitly says 'Use this when investigating test failures or verifying that changes haven't broken tests.' This provides clear context for when to invoke the tool. It does not mention alternatives or exclusions, but given the sibling set, no direct alternative exists, so the guidance is adequate.

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/Ronit-k/MCPilot'

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