Skip to main content
Glama

run_unit_test

Execute targeted unit tests for specific agents to validate functionality and reduce test execution time by focusing only on relevant test patterns.

Instructions

Run tests for a specific agent only.

This tool runs tests that match the agent's patterns including both main agent tests and healthcheck tests, significantly reducing test execution time compared to running all tests. Use this tool when you need to focus on testing a specific agent component.

Args: agent: The agent to run tests for (e.g., 'qa_agent', 'backlog_agent') verbosity: Verbosity level (0=minimal, 1=normal, 2=detailed), default is 1

Returns: Dictionary containing test results and analysis

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYes
verbosityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It explains what the tool does (runs tests matching agent patterns) and mentions performance characteristics (reduced execution time), but doesn't disclose other behavioral traits like whether it's read-only vs. destructive, authentication requirements, rate limits, error handling, or what happens if tests fail. The description adds some context but leaves gaps in behavioral disclosure.

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 well-structured and front-loaded with the core purpose. Every sentence adds value: first states what it does, second explains scope and benefit, third gives usage guidance, and the Args/Returns sections efficiently document parameters and output. There's no wasted text.

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 2 parameters with 0% schema coverage, no annotations, but an output schema exists, the description does a good job explaining parameters and purpose. However, for a test execution tool, it could better address what happens during test failures, timeouts, or other edge cases. The existence of an output schema means it doesn't need to explain return values in detail.

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 description coverage is 0%, so the description must compensate. It provides clear semantics for both parameters: 'agent' is explained as 'The agent to run tests for' with examples, and 'verbosity' is defined with specific levels and default. This adds substantial value beyond the bare schema, though it doesn't explain parameter constraints or validation rules.

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 the specific action ('run tests for a specific agent only') and resource ('agent's patterns including both main agent tests and healthcheck tests'). It explicitly distinguishes this tool from running all tests, which helps differentiate it from potential sibling tools like 'run_tests_no_verbosity' that might run broader test suites.

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 provides clear context for when to use this tool ('when you need to focus on testing a specific agent component') and mentions the benefit ('significantly reducing test execution time compared to running all tests'). However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools (like 'run_tests_verbose' or 'analyze_tests').

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/Darkstar326/log_analyzer_mcp'

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