Skip to main content
Glama

search_cases

Search and filter test cases in a Testmo project by folder, status, state, template, user, dates, and automation, with sorting and paging.

Instructions

Search for cases in a project with advanced filtering options.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "search_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
sortNoSort by field
orderNoSort order
per_pageNoNumber of cases per page (15, 25, 50, 100)
state_idNoFilter by state IDs
folder_idNoFilter by folder IDs
status_idNoFilter by status IDs
project_idYesThe project ID as integer
updated_byNoFilter by user IDs
template_idNoFilter by template IDs
created_afterNoFilter by cases created after (ISO8601 UTC)
created_beforeNoFilter by cases created before (ISO8601 UTC)
has_automationNoFilter cases with/without automation links
has_automation_statusNoFilter cases with/without automation status

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing: no permission requirements, no pagination behavior, no note that per_page defaults to 100 (a potentially large result set), and no indication of result ordering when sort/order are omitted.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity reflects under-specification rather than discipline given the tool's complexity.

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

Completeness2/5

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

For a 14-parameter search tool with no annotations and no output schema, the description should at minimum explain pagination, result ordering, and how filters combine. None of that is present, leaving key operational details to inference.

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% and all 14 parameters are documented in the schema, so the baseline is 3. The description adds only the phrase "advanced filtering options," which does not clarify filter combinations or defaults beyond what the schema already states.

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?

States a specific verb ("Search") and resource ("cases") scoped to a project, plus the notion of filtering. An agent can tell this is a filtered case query, but the description never differentiates it from siblings such as get_cases_details or the list_* tools.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no mention of alternatives. "Advanced filtering options" hints at the use case but leaves the agent to infer when to pick this over get_cases_details or browse_folders.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.