Skip to main content
Glama

Run tests

run_tests

Run Python pytest or Java Maven/Gradle tests by file, class, method, or keyword, and report the exact Selenium locator and usage location for each failing test.

Instructions

Run the project's tests. Python: pytest (target = file or node id; keyword = -k). Java: Maven or Gradle (target = Class, pkg.Class or Class#method). Failing tests include the exact Selenium locator they were waiting for and where it is used.

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
targetNo
keywordNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and it does disclose a genuinely useful behavior: failing tests report the exact Selenium locator awaited and where it is used. It is silent on the 600s timeout behavior, what happens when the timeout elapses, and whether an environment or session must already exist — meaningful gaps for a long-running execution tool.

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?

Very compact and front-loaded, with the core purpose in the first clause and per-framework detail after. The telegraphed fragment style ('Python: pytest (target = ...; keyword = -k)') saves space but is slightly terse for uninitiated readers.

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

Completeness3/5

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

For a tool with no annotations, no output schema and 0% schema description coverage across three parameters, the description covers framework selection and failure reporting but omits timeout semantics and any environmental prerequisites. Enough to invoke it in the common case, not enough to predict behavior on timeouts or in an unprepared environment.

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 0%, so the description must supply all parameter meaning, and it does well for two of three: 'target' is explained per ecosystem (file or node id for pytest; Class, pkg.Class or Class#method for Maven/Gradle) and 'keyword' is tied to pytest's -k flag. 'timeout_s' is never mentioned, leaving one parameter entirely undocumented in both schema and description.

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?

States a specific verb and resource ('Run the project's tests') and immediately names the concrete runners, so the agent knows exactly what operation is performed. It does not explicitly contrast with siblings such as write_test or heal_locator, so the differentiation is left to the verb alone.

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

Usage Guidelines3/5

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

Usage context is implied by the build-system breakdown (Python vs Java), but there is no statement of when to reach for this tool versus checking/healing locators or writing tests first. No preconditions (built project, live app, saved login state) are named, so the agent must infer the place of this tool in the workflow.

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