Skip to main content
Glama
phoenice-labs

io.github.phoenice-labs/universal-test-framework

Official

validate_test_contract

Validate a test or test suite against the mandatory 8-section contract to ensure compliance and completeness in LLM-generated code testing.

Instructions

Validate a test or test suite against the 8-section contract.

Use this to check any existing test — generated or hand-written — for compliance. The contract requires all 8 sections: Test ID, Why Generated, Requirement Mapping, How it Exercises, Coverage Contribution, Expected Outcome, Gaps, Meaningfulness Check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_dictNoStructured test as dict with 8-section keys
tests_listNoList of raw markdown strings for suite-level validation
test_contentNoRaw markdown test text (paste any test here for quick validation)

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, the description carries full burden. It describes the validation purpose and required sections but does not disclose details about side effects, permissions, or return format. The output schema exists but is not referenced.

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 two sentences: first defines the action, second provides usage context and lists required sections. No filler, front-loaded.

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?

Complete enough for a validation tool with an output schema. It explains what the tool does and when to use it, though it could clarify which parameter to choose for different inputs.

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 baseline is 3. The tool description does not add meaning beyond the schema descriptions, which already explain each parameter's role.

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?

Clearly states the tool validates a test or test suite against an 8-section contract. The verb 'validate' and resource 'test or test suite' are specific and distinct from sibling tools like generate_tests or analyze_coverage.

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?

Explicitly says 'Use this to check any existing test — generated or hand-written — for compliance,' indicating when to use. However, it does not specify when not to use or mention alternatives.

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/phoenice-labs/Universal-Test-Framework'

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