Skip to main content
Glama

Search Test Cases

search_test_cases
Read-onlyIdempotent

Search for test cases using simple name/tag filters or advanced AQL queries. Supports pagination and project scoping.

Instructions

Search for test cases by name, tag, or AQL query.

Find test cases matching your search criteria. Supports simple name/tag search or advanced AQL (Allure Query Language) for complex filtering.

Simple Query Syntax (use 'query' parameter):

  • Plain text: Searches in test case names (case-insensitive)

  • tag:value: Filters by exact tag match

  • Combined: "login tag:smoke" finds test cases with "login" in name AND "smoke" tag

Important: see https://docs.qameta.io/allure-testops/advanced/aql/ for the full AQL syntax reference. AQL Syntax (use 'aql' parameter):

  • Operators: and, or, not

  • Precedence: and binds tighter than or; use parentheses to group

  • Strings are double-quoted; numbers are unquoted; booleans are true/false

  • Comparison operators: =, !=, ~= (contains), in, not in

  • Field examples: status, tag, name, createdBy, automated, layer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aqlNoRaw AQL (Allure Query Language) for complex searches. Important: see https://docs.qameta.io/allure-testops/advanced/aql/ for the full AQL syntax reference.Supports AND, OR, NOT operators, parentheses for grouping, and field filters. Strings must be double-quoted. Examples: - 'status="failed" and tag="regression"' - '(createdBy = "John" or createdBy = "Jane") and name ~= "test"' - 'tag in ["smoke", "e2e"] and automated = true' - 'not status = "Draft" and layer = "API"'
pageNoZero-based page index.
sizeNoNumber of results per page (max 100).
queryNoSimple search query. Examples: 'login flow', 'tag:smoke', 'tag:smoke tag:regression', 'authentication tag:security'. Ignored when 'aql' is provided.
project_idNoAllure TestOps project ID to list test cases from.
output_formatNoOutput format: 'json' (default) or 'plain'.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds meaningful behavior details: the query syntax rules, case-insensitive name search, exact tag matching, and the precedence of AQL over query when both are provided. It does not contradict 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?

The description is well-structured with separate sections for simple query and AQL syntax. It is front-loaded with the purpose. While slightly verbose, every sentence adds value. Minor improvements could be removing the repeated link to AQL documentation (already in schema).

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 the complexity (6 parameters, no output schema), the description covers query and AQL syntax adequately. It addresses the key modes of use and links to external documentation. It does not explain the return format or pagination behavior, but these are partially covered by the schema (page/size parameters).

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?

Schema coverage is 100%, but the description adds substantial meaning beyond the schema descriptions. It explains the query syntax in detail (plain text, tag:value, combined), and provides a comprehensive overview of AQL syntax (operators, precedence, comparison operators, field examples). This helps the agent understand how to construct valid queries.

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 tool searches for test cases by name, tag, or AQL query. It distinguishes from the sibling tool 'list_test_cases' by offering search functionality with two distinct modes (simple and advanced). The verb 'search' and resource 'test cases' are specific and unambiguous.

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 explains when to use simple query (name/tag search) vs AQL (complex filtering). It provides examples and syntax guidance. However, it does not explicitly tell the agent when NOT to use this tool (e.g., when listing all test cases without criteria, the sibling 'list_test_cases' might be more appropriate).

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/ivanostanin/lucius-mcp'

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