Skip to main content
Glama

Run Jest Tests

run-test

Execute Jest tests on implementation and test files in an isolated workspace, returning detailed results including pass/fail status, error messages, stack traces, and code coverage metrics.

Instructions

Execute Jest tests on provided implementation and test files in an isolated workspace. Returns detailed test results including pass/fail status, individual test results, error messages, stack traces, and code coverage metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
implementationFileYesImplementation file to test
testFileYesTest file containing Jest tests
languageNoLanguage of the filestypescript
workspaceIdNoOptional workspace ID to reuse existing workspace
timeoutMsNoTest execution timeout in milliseconds
Behavior4/5

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

With no annotations, the description carries full burden. It discloses return details (pass/fail, errors, stack traces, coverage) and mentions isolation. However, it does not clarify side effects like workspace creation or cleanup.

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?

Two sentences: first sentence clearly states action and context, second describes output. No wasted words, front-loaded with key info.

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?

Description covers what the tool does and what it returns, which is important since no output schema exists. It mentions isolation but could clarify workspace lifecycle. Still fairly 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.

Parameters3/5

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

Schema coverage is 100% with parameter descriptions. The tool description does not add extra semantic meaning beyond the schema, so baseline 3 is appropriate.

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

Purpose4/5

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

The description clearly states it executes Jest tests on provided files in an isolated workspace, specific verb and resource. However, it does not explicitly differentiate from sibling tool 'run-specific-tests', so it's not a perfect 5.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'run-specific-tests' or what conditions are necessary. The description only states what it does without any contextual usage advice.

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/jpnqs/tdd-mcp'

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