Skip to main content
Glama
drewster99

xcode-mcp-server (drewster99)

by drewster99

get_runtime_output

Read-onlyIdempotent

Retrieves runtime console output from the latest Xcode project run, with optional regex filtering to find specific lines.

Instructions

Fetches and returns the most relevant runtime console output from the project's most recent run.

Output becomes available 2 seconds after the app terminates.

Args: project_path: Path to an Xcode project (*.xcproject) or workspace (*.xcworkspace) regex_filter: Optional regex pattern to find matching lines in the output max_lines: Maximum number of matching lines to return (default 20)

Returns: JSON string with structured console output including errors, warnings, context, and full_log_path pointing to the complete unfiltered plaintext log file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes
regex_filterNo
max_linesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds value by disclosing the 2-second post-termination delay and stating the return structure, which goes beyond annotations. No contradictions.

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?

Well-structured with Args and Returns sections. Information is front-loaded with the main purpose. No redundant sentences. Could be slightly more concise but overall efficient.

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 that an output schema exists, the description appropriately covers parameters and timing. For a read-only tool, it provides enough context for effective usage. The mention of full_log_path is a nice touch.

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 0%, but the description provides clear explanations for all three parameters: project_path (Xcode project/workspace path), regex_filter (optional regex pattern), and max_lines (default 20). This adds substantial meaning beyond the 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?

Explicitly states it fetches runtime console output from the most recent run, distinguishing it from sibling tools like get_build_errors which focus on build logs. The verb 'fetches' and resource 'runtime console output' are specific.

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 a crucial timing constraint: output becomes available 2 seconds after app terminates. This helps the agent know when to call it. While it doesn't explicitly state when not to use, the context of sibling tools implies it's for runtime logs after execution.

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