Skip to main content
Glama
rog0x

mcp-testing-tools

by rog0x

analyze_test_coverage

Analyzes source and test code to find untested functions, then prioritizes which need tests based on complexity, export status, and parameter count.

Instructions

Parse source code and test code to identify untested functions. Suggests which functions need tests most based on complexity, export status, and parameter count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_codeYesThe test code to check which functions are already tested
source_codeYesThe source code to analyze for functions
source_file_nameNoFilename for the source (used in output, default: "source.ts")
Behavior4/5

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

With no annotations, the description carries the full burden. It communicates that the tool is a read-only analysis operation through verbs like 'parse', 'identify', and 'suggests', and it discloses the ranking behavior by naming complexity, export status, and parameter count.

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 tightly written sentences deliver the tool's purpose, inputs, and ranking criteria with zero filler. The core behavior is front-loaded and every phrase adds information.

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?

The description adequately conveys what inputs are needed and what the output will contain at a high level. Since there is no output schema, a bit more detail about the returned suggestion format would help, but the core usage is clear enough for successful invocation.

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 parameter-level detail beyond the schema, which keeps it at the baseline 3.

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 opens with a specific action ('Parse source code and test code') and a concrete result ('identify untested functions'), then adds ranking criteria. This clearly distinguishes it from siblings like generate_tests, which would produce tests rather than analyze gaps.

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 use case is inferable: use this when you need to know which functions lack tests. However, it never explicitly states when not to use it or mentions alternatives, so the agent is left to infer the boundary with generate_tests and the other generation tools.

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/rog0x/mcp-testing-tools'

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