Skip to main content
Glama

Get Execution History

get-execution-history
Read-onlyIdempotent

Fetch SmartTest execution history for a testId (top 5 recent runs), an optional platform-rooted folder/file scope, or a scenario when scenarioId is set. Prefer testId when you have it from fetch-execution-report. Typically omit environment to avoid env scoping. Use branchName and scope.filePaths as for coverage. Optional platform (web|ios|android) and dimensionFilters narrow results. Set aggregate=true for suite timing stats (testCount, timedTestCount, sumSuccessMeanSecs, slowTestCount) instead of per-test history.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get-execution-history"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdNoQA bots: your botId from your stored TestChimp binding.
limitNo
scopeNo
offsetNo
testIdNo
releaseNo
branchIdNo
platformNo
aggregateNo
projectIdNoThe TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.
branchNameNo
scenarioIdNo
timeWindowNo
environmentNo
projectApiKeyNoProject API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it.
dimensionFiltersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectApiKey / description
      Previous value: -"QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it."New value: +"Project API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it."
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "The TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / aggregate
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / branchId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "number"
      +    }
      +  ]
      +}
    • addedInput schema / properties / timeWindow
      Added value: +{
      +  "properties": {
      +    "fixedWindow": {
      +      "properties": {
      +        "endTime": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "startTime": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "startTime",
      +        "endTime"
      +      ],
      +      "type": "object"
      +    },
      +    "relativeWindow": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / botId
      Added value: +{
      +  "description": "QA bots: your botId from your stored TestChimp binding.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / projectApiKey
      Added value: +{
      +  "description": "QA bots: your own project API key from your stored TestChimp binding. Required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Never print it.",
      +  "maxLength": 256,
      +  "minLength": 8,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds behavior beyond that: the default window is the top 5 recent runs, environment scoping silently changes the result set, and aggregate=true swaps the return shape to suite-level counts and timings. It does not mention pagination/auth behavior, but those are largely covered by schema field descriptions.

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?

Four sentences, front-loaded with the mode selection that determines everything else, then narrowing filters, then the aggregate branch. Dense but every sentence carries a decision rule; minor compression possible in the scope/branch phrasing ('as for coverage') which is a bit opaque.

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?

For a 16-parameter read tool with nested scope/timeWindow objects and no output schema, the definition covers the mode fork, the default 5-run window, filter dimensions, and names the aggregate return fields (testCount, timedTestCount, sumSuccessMeanSecs, slowTestCount). Remaining gaps are the non-aggregate return shape and pagination via limit/offset.

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?

Schema description coverage is only 19% across 16 params, so the description must carry weight, and it does: it explains the semantics of testId, scenarioId, scope.filePaths, folder scope, branchName, platform, dimensionFilters, environment, and the dual meaning of aggregate. It leaves limit/offset, timeWindow, release, and branchId unexplained, which is a real gap for a low-coverage schema.

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?

States a concrete verb ('Fetch') plus the resource ('SmartTest execution history') and enumerates the three addressing modes (testId, platform-rooted folder/file scope, scenarioId), which an agent can map onto the schema directly. It also names the sibling fetch-execution-report as the source of testId, so the boundary with another tool is explicit.

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?

Gives actionable selection rules: prefer testId when available from fetch-execution-report, typically omit environment to avoid env scoping, and set aggregate=true to get suite timing stats instead of per-test history. Each rule states a condition and a consequence, leaving little to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.