Skip to main content
Glama

get_testcase_details

Retrieve detailed information about a test case, including error messages, code snippets, and execution steps, to debug failures and understand how the test executed.

Instructions

Get detailed information about a specific test case. You can identify the test case in two ways: 1) By testcase_id (can be used alone), or 2) By testcase_name combined with testrun_id or counter (required because test cases can have the same name across different test runs). Returns error message, code snippet, file location, test steps per attempt, console logs, and optional artifacts (screenshots, videos, traces). Use steps_filter='failed_only' to return only steps that errored, stripping passing setup/hook steps. Use this to debug why a test failed or understand how it executed. Example: 'Get test case details for "Verify user can logout and login" in testrun #43'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1).
limitNoMax results to return (default: 1 for ID lookup, 50 for search, max: 1000).
counterNoTest run counter number. Alternative to testrun_id to identify the test run. Example: 43.
get_allNoReturn all matching results up to 1000 (default: false).
sort_byNoSort results by field (default: startTime).
by_statusNoFilter by test case status.
projectIdYesProject ID (Required). The TestDino project identifier.
sort_orderNoSort direction (default: desc).
testrun_idNoSingle test run ID to filter results. Example: 'test_run_6901b2abc6b187e63f536a6b'.
testcase_idNoTest case ID. Can be used alone to get test case details. Example: 'test_case_123'.
testrun_idsNoMultiple test run IDs (comma-separated, max 20). Example: 'test_run_abc,test_run_def'.
steps_filterNoFilter steps in each attempt. Use 'failed_only' to return only steps with errors, stripping passing setup and hook steps.
testsuite_idNoFilter by test suite ID.
history_limitNoMax number of history entries to return (default: 10).
testcase_nameNoTest case title (partial match, case-insensitive). Must be combined with testrun_id or counter when used alone. Example: 'Verify user can logout and login'.
include_tracesNoInclude Playwright trace links from test attempts. Default: false.
include_videosNoInclude video recording URLs from test attempts. Default: false.
by_code_snippetNoSearch in error code snippets (partial match, case-insensitive).
include_historyNoInclude historical executions of the same test case when searching by name. Default: false.
by_error_messageNoSearch in error messages (partial match, case-insensitive). Example: 'Timeout 15000ms exceeded'.
include_artifactsNoInclude all artifacts (screenshots, traces, videos, attachments) with authenticated URLs. Default: false.
testcase_fulltitleNoFull test case title including suite path (partial match, case-insensitive). Example: 'auth.spec.js > Login > Verify user can logout and login'.
include_attachmentsNoInclude all attachment metadata from test attempts. Default: false.
include_screenshotsNoInclude screenshot URLs from test attempts. Default: false.
Behavior4/5

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

Despite no annotations, the description discloses what the tool returns (error message, code snippet, file location, steps per attempt, console logs, optional artifacts) and explains the steps_filter behavior. It does not cover potential side effects, but as a read-only operation, this is sufficient.

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, starting with the primary purpose, then detailing identification methods, return values, and filtering options. While a bit lengthy, every sentence serves a purpose and adds clarity.

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 tool's complexity (24 parameters), the description provides a solid overview of usage patterns and return values. It does not cover every edge case or parameter interaction, but it is sufficiently complete for an AI agent to understand how to invoke the tool effectively.

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

Parameters4/5

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

With 100% schema coverage, the baseline is 3. The description adds value by explaining the two identification strategies, the steps_filter parameter's effect, and examples for testcase_name and counter. This goes beyond the schema's property descriptions.

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 that the tool retrieves detailed information about a specific test case, with explicit identification methods (testcase_id alone or testcase_name with testrun_id/counter). This distinguishes it from sibling tools like list_run_test_cases or get_run_details, which serve different purposes.

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 the tool ('to debug why a test failed or understand how it executed') and provides examples and explicit guidance on identification methods. It does not exhaustively list when not to use it, but the context is clear.

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/testdino-hq/testdino-mcp'

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