Skip to main content
Glama

get_test_results

Fetch and parse test results from a Codemagic build, returning a structured pass/fail/error/skip summary with failure details. Supports Flutter, Android, and iOS tests via JUnit XML artifacts.

Instructions

Fetch and parse test results from a Codemagic build. Searches the build's artifact list for JUnit XML files and returns a structured pass/fail/error/skip summary with per-failure details (message + stack trace excerpt). Covers Flutter, Android instrumented tests, and iOS (xcresult converted by Codemagic's CLI tools). Pass artifact_url directly if you already have it from wait_for_build — skips the artifact search. The build must be in a terminal state (finished or failed) for artifacts to be available. Requires the codemagic.yaml workflow to include a test_report glob pointing at the JUnit XML output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
build_idYesCodemagic build ID
artifact_urlNoDirect URL to a JUnit XML artifact — if provided, skips artifact search. Use the short_lived_download_url from get_build or wait_for_build.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses build must be terminal, artifact search behavior, skip logic with artifact_url, output summary structure (pass/fail/error/skip with failure details), and prerequisite of test_report glob. Lacks mention of error handling if no JUnit found, but broadly informative.

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?

Single paragraph of 5 sentences, front-loaded with main action. No wasted words, but could be more structured with line breaks for readability. Efficient but not maximally structured.

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 complexity (no output schema), description covers input requirements, behavioral constraints (terminal state), output summary, platform scope, and prerequisite. Lacks details on exact output format or error cases, but is comprehensive enough for an agent to use correctly.

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 100%, so baseline is 3. The description adds value by explaining artifact_url's purpose (skip search, use from wait_for_build) and how it relates to the workflow. This goes beyond the schema's raw 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 the tool fetches and parses test results from a Codemagic build, specifying the verb (fetch, parse), resource (test results from build), and distinguishing it from sibling tools like get_build or get_build_logs by focusing on JUnit XML parsing. It covers multiple platforms and mentions optional artifact URL shortcut.

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?

Provides clear when-to-use context: after build reaches terminal state, can use artifact_url from wait_for_build, requires codemagic.yaml with test_report glob. Does not explicitly exclude scenarios or compare to alternatives, but the information is sufficient for an agent to decide.

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/todah-zg/codemagic-mcp'

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