Skip to main content
Glama
drewster99

xcode-mcp-server (drewster99)

by drewster99

get_latest_test_results

Read-onlyIdempotent

Retrieve test results from the most recent Xcode test run, including summary and failed test details.

Instructions

Get the test results from the most recent test run.

Args: project_path: Path to Xcode project/workspace directory

Returns: JSON with test results or plain text error message. Success format: { "xcresult_path": "...", "summary": {"total_tests": N, "passed": M, "failed": K, "skipped": L}, "failed_tests": [{"test_name": "...", "failure_message": "...", ...}] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond annotations (readOnlyHint, idempotentHint), the description discloses the return format including success and error structures. It adds behavioral context such as returning plain text on error and the shape of the success JSON.

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 relatively concise, ending with an illustrative return format. While useful, the example could be shortened or placed in comments without losing clarity. It is front-loaded with the essential purpose.

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 simple input (one required parameter) and the presence of output schema-like details, the description is fairly complete. It lacks mention of edge cases (e.g., no test runs exist, multiple runs), but the error handling is implied. The annotations also support understanding.

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?

The single parameter 'project_path' is described as 'Path to Xcode project/workspace directory', providing meaning beyond the schema's type definition. Since the schema itself has no parameter descriptions, the description compensates fully, though it could be more specific about allowed paths.

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 it retrieves test results from the most recent test run. It uses the verb 'get' and specifies the resource 'test results', distinguishing it from sibling tools like 'run_project_tests' which actually execute tests.

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?

The description does not provide explicit guidance on when to use this tool versus alternatives. It does not mention prerequisites (e.g., that a test run must have occurred) or contrast with other tools like 'get_build_results'.

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/drewster99/xcode-mcp-server'

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