Skip to main content
Glama
nemanjavlahovic

InstrumentsMCP

start_profiling

Start recording an Instruments trace to profile iOS/macOS app performance. Pair with stop_profiling to capture user interactions and get parsed performance data.

Instructions

Start recording an Instruments trace and return immediately. The user interacts with the app manually while recording runs in the background. Call stop_profiling when done to end the recording and get parsed results.

This is the recommended workflow for profiling real user interactions:

  1. start_profiling → agent starts recording

  2. User scrolls, taps, navigates in the app

  3. stop_profiling → agent stops recording, parses trace, returns performance data

Max recording time is 5 minutes (safety limit). Recording stops automatically if not stopped manually.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
processNoProcess name or PID to attach to
launch_pathNoPath to .app bundle to launch and profile
deviceNoDevice name, UDID, or 'booted' for simulator
templateNoInstruments template (e.g., 'Time Profiler', 'Allocations', 'Leaks')Time Profiler
max_durationNoSafety time limit (default: '5m'). Recording stops automatically after this.5m
Behavior4/5

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

With no annotations provided, the description carries full responsibility. It discloses that recording runs in background, returns immediately, has a 5-minute safety limit, and auto-stops. This provides sufficient behavioral context, though it could mention what the tool returns (immediate indicator) and error scenarios.

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 two paragraphs with a clear workflow. It front-loads the main action. Some redundancy (e.g., 'safety limit' mentioned twice) but overall efficient. Could be slightly tighter without losing meaning.

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 5 parameters and no output schema, the description covers the tool's purpose, workflow, and safety limit. It explains that recording is manual and results come via stop_profiling. Missing details on return type or error handling, but adequate for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with all 5 parameters described. The description adds minimal extra context beyond the schema (e.g., max_duration default explanation). Baseline of 3 is appropriate since the description does not significantly augment parameter understanding.

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 'Start recording an Instruments trace and return immediately.' It identifies the verb ('start recording') and resource ('Instruments trace'), distinguishing it from siblings like stop_profiling or specific profiling tools. The workflow clarifies its role.

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 description explains a recommended workflow (start_profiling → user interaction → stop_profiling) and mentions when to use (for profiling real user interactions). However, it does not explicitly exclude alternatives like dedicated profiling tools (profile_cpu, etc.) or discuss when not to use.

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/nemanjavlahovic/instruments-mcp-server'

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