Skip to main content
Glama

timps_unit_test_writer

Analyze source code to generate comprehensive test suites covering happy paths, edge cases, and error conditions. Returns a complete, runnable test file.

Instructions

Analyse source code and generate a comprehensive test suite: happy paths, edge cases, error conditions. Returns a complete test file ready to run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoProgramming languagepython
frameworkNoTest framework (auto-detected if omitted)auto
source_codeYesThe function or class source code to test
Behavior3/5

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

No annotations are provided, so the description carries the burden. It states the tool returns a complete test file ready to run, which is useful. However, it doesn't disclose potential side effects (e.g., whether it modifies files, requires network access, or has execution limits). For a code analysis tool, this is adequate but not rich.

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?

The description is a single sentence that efficiently conveys the core purpose and output. It's front-loaded with the action ('Analyse source code') and includes key coverage areas. No wasted words, though it could be slightly more structured with a second sentence for usage context.

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?

Given the tool's moderate complexity (3 params, no output schema), the description covers the main purpose and output. However, it lacks details on return format specifics (e.g., file path vs. string), how the framework auto-detection works, and any constraints on source code size or language support. It's adequate but leaves gaps for an agent to infer.

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 description coverage is 100%, so the schema already documents all three parameters. The description adds no additional parameter-level detail beyond what the schema provides (e.g., it doesn't explain what 'auto' framework detection means or how language affects output). Baseline 3 is appropriate since the schema does the heavy lifting.

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 the tool analyzes source code and generates a comprehensive test suite covering happy paths, edge cases, and error conditions, and returns a complete test file. It distinguishes itself from siblings like timps_test_intelligence and timps_flaky_test_detective by focusing on generation rather than analysis or detection, though it doesn't explicitly name alternatives.

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?

The description implies usage: provide source code to get tests. It doesn't explicitly state when to use this vs alternatives like timps_test_intelligence or timps_test_data_agent, nor does it mention limitations (e.g., only for functions/classes, not full projects). The context is clear but lacks explicit guidance on when not to use it.

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/Sandeeprdy1729/timps-swarm'

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