Skip to main content
Glama

search_tests

Search existing test case documents in the knowledge base to check coverage and avoid duplicates. Returns ranked test chunks with scenario, steps, and expected results.

Instructions

Search test case documents in the knowledge base. Read-only, no side effects.

    Call BEFORE write_test_case() to check what is already covered and
    avoid duplicates. Equivalent to search_by_type(query, "test") but
    more intent-clear for test-coverage workflows.

    Args:
        query: What to search for (e.g. "authentication edge cases")
        top_k: Number of results to return (default: 5)
        project: Target project name (optional)

    Returns:
        Ranked test case chunks with scenario, steps, expected result,
        and status. Returns a prompt to call write_test_case() when empty.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo
projectNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Declares read-only and no side effects directly. Discloses that an empty result prompts calling write_test_case(). Missing potential details like authentication needs or rate limits, but sufficient given no annotations.

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?

Well-structured with summary, usage, args, returns sections. Each sentence adds value, though could be slightly more concise without losing clarity.

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

Completeness5/5

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

Covers all aspects: search functionality, parameter usage, return format (ranked chunks with fields), and empty result behavior. Output schema exists, so return details are complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Provides detailed parameter descriptions in the Args section (query purpose, top_k default and purpose, project optionality), fully compensating for the 0% schema description coverage.

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 it searches test case documents in the knowledge base, specifying read-only and no side effects. Differentiates from sibling 'search_by_type' by being more intent-clear for test-coverage workflows.

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

Usage Guidelines5/5

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

Explicitly recommends calling before write_test_case() to avoid duplicates. Also mentions equivalence to search_by_type but with clearer intent, guiding when to use this over 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/dl4rce/flaiwheel'

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