Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

QTM4J: Get Automation History

qtm4j_get_automation_history
Read-onlyIdempotent

Retrieve paginated automation upload history for QTM4J projects to audit CI/CD results and check import status.

Instructions

Retrieve a paginated history of past automation result uploads for a QTM4J project.

Toolset: Test Automation

Parameters:

  • startAt (number): Zero-indexed starting position for pagination (default: 0). (default: 0)

  • maxResults (number): Maximum number of records to return per page (default: 20, max: 100). (default: 20)

Output Description: Paginated list of automation import history. Each record includes: format, processStatus, importStatus, startTime, endTime, trackingId, detailedMessage, and a summary array. summary[0] contains: testCycleIssueKey, testCycleSummary, testCasesCreated, testCaseVersionsCreated, testCaseVersionsReused, testStepsCreated. Render as individual cards separated by dividers, NOT a table. Show '1–N of total' count above. Never show raw fileName.

Use Cases: 1. Review past automation result uploads for a project 2. Check the status of recent automation imports 3. Audit CI/CD automation upload history 4. Paginate through all historical automation uploads

Examples:

  1. Get the first page of automation upload history (default page size 20)

{}

Expected Output: Paginated list of automation history records with upload status and metadata

  1. Get the second page of automation upload history

{
  "startAt": 20,
  "maxResults": 20
}

Expected Output: Next 20 automation history records

  1. Get up to 50 records starting from the beginning

{
  "startAt": 0,
  "maxResults": 50
}

Expected Output: Up to 50 automation history records

Hints: 1. NO PROJECT CONTEXT REQUIRED: Do NOT call set_project_context and do NOT ask the user for a project key, project ID, or any other project details. This tool works independently. 2. PAGINATION: startAt is zero-indexed (default: 0), maxResults controls page size (default: 20, max: 100). Increment startAt by maxResults to fetch the next page. 3. Returns an empty data array (not an error) when no history records exist. 4. DISPLAY FORMAT: Show '1–N of ' above all cards. Render each record as a card separated by --- dividers. Each card has two sections:

PRIMARY SECTION (always first): heading with status emoji (✅ SUCCESS / ❌ FAILED) + test cycle key and name; then format, start→end time, message, summary stats (test cases/versions created/reused/test steps), tracking ID.

EXTRA DETAILS SECTION (at the bottom of the card, under a 'Details' sub-label): any remaining non-null fields from the record such as fileSize, extraAttributes values, etc.

Skip any field that is null, missing, or false. NEVER show the raw fileName. NEVER use a table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startAtNoZero-indexed starting position for pagination (default: 0).
maxResultsNoMaximum number of records to return per page (default: 20, max: 100).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
totalNo
startAtNo
maxResultsNo
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description goes well beyond these by disclosing that the tool returns an empty data array rather than an error when no history exists, that pagination is zero-indexed with a max of 100, and that it works without any project context. These behaviors are meaningful and not inferable from the annotations alone.

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 and front-loaded with the core purpose, then organized into Parameters, Output Description, Use Cases, Examples, and Hints. However, it is somewhat verbose: defaults are repeated ('(default: 0)' twice, '(default: 20)' twice), and display-format instructions appear both in the Output Description and again in Hints #4. Nearly all content is useful, but the redundancy prevents a perfect score.

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?

For a tool of this complexity—paginated, read-only, with specific display rendering and a project-context pitfall—the description is complete. It covers the output record fields, the summary sub-structure, edge behavior (empty array), formatting rules, and explicitly warns against unnecessary context calls. An agent has everything needed to call this tool correctly and render the result as intended.

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?

Although the schema already documents both parameters at 100% coverage, the description adds substantial practical semantics: it explains that startAt is zero-indexed, that maxResults controls page size, and explicitly states 'Increment startAt by maxResults to fetch the next page.' The three JSON examples demonstrate first-page, second-page, and larger-page usage, which is especially helpful for an agent selecting pagination values.

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 opens with a precise verb-resource pairing: 'Retrieve a paginated history of past automation result uploads for a QTM4J project.' This clearly identifies the tool as a read-only history/audit operation and implicitly distinguishes it from the sibling upload tool qtm4j_upload_automation_result. The title and toolset further reinforce the domain without ambiguity.

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 'Use Cases' section explicitly enumerates when the tool should be used: reviewing history, checking import status, auditing CI/CD uploads, and paginating through records. The hints add an important exclusion: no project context is required and set_project_context must not be called. However, it does not explicitly name alternatives or contrast itself with the corresponding upload tool, so it falls just short of full 5-level guidance.

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

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/SmartBear/smartbear-mcp'

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