Skip to main content
Glama

Robot Actions — Remote Device Control

iOS traffic mock add

ios_traffic_mock_add

Add (or update in place, if id matches an existing route) a mock/abort rule that short-circuits future matching HTTPS requests on this device inside the TLS-inspecting proxy — the request never reaches the real server. mode "mock" (default) returns the given status/headers/body; mode "abort" kills the connection so the app sees a network failure. Requires TLS capture to already be running on this device (ios_traffic_start) — routes are stored per-device and take effect live, no restart needed. Certificate-pinned apps cannot be intercepted at all (same limit as capture itself), so a route targeting pinned traffic will simply never match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoRoute id to update in place (replaces the existing route); omit to auto-generate a new one
bodyNoResponse body to inject for mode "mock" (text, or base64 when bodyEncoding is "base64")
modeNo"mock" injects a canned response (default); "abort" kills the connection
udidYesiOS device UDID
methodNoOptional HTTP method filter (e.g. "GET"/"POST"); matches any method when omitted
statusNoHTTP status to inject for mode "mock" (default 200)
delayMsNoLatency to inject before responding/aborting, in ms (clamped to 60s server-side)
enabledNoWhether the route is active (default true) — disabled routes are kept but ignored
headersNoResponse headers to inject for mode "mock", as {headerName: value} — e.g. {"content-type": "application/json"}
matchUrlYesURL pattern to match against the request's full URL
matchTypeNoHow matchUrl is interpreted against the request URL (default "contains")
bodyEncodingNoEncoding of `body` (default "text")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, openWorld=false, idempotent=false), the description discloses substantial behavioral context: routes are stored per-device, take effect live with no restart, the 'abort' mode kills the connection so the app sees a network failure, and certificate-pinned apps can never be intercepted so such routes silently never match. These are exactly the operational traits an agent needs and cannot derive from the annotations.

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?

It is a single dense paragraph, front-loaded with the core verb and the add-or-update behavior before moving to mode semantics, prerequisites, and limitations. There is mild redundancy with the schema on mode defaults, but for a 12-parameter mutation tool the length is justified and every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation tool with no output schema, the description supplies the missing context: the prerequisite capture session, per-device live-effect storage, the two mode behaviors, and the pinning limitation. Nothing critical to invoking it correctly is absent; only the exact return payload is unspecified, which is acceptable without an output schema.

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 coverage is 100%, so the baseline is 3, but the description adds meaning by explaining the mock-vs-abort mode semantics (status/headers/body only apply to mock), the in-place update behavior when `id` matches, and that routes are per-device. It stops short of detailing matchType or delayMs syntax, which the schema already covers.

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 states a specific verb (add/update in place) and resource (a mock/abort rule for HTTPS traffic in the TLS-inspecting proxy), and clearly distinguishes this from plain capture by explaining that matching requests never reach the real server. An agent can immediately tell this apart from ios_traffic_flows or ios_traffic_start without opening the schema.

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?

It states the prerequisite explicitly ('Requires TLS capture to already be running on this device (ios_traffic_start)') and explains the two operating modes with their effect. It does not, however, name the sibling tools an agent would use to inspect or remove routes (ios_traffic_mock_list / ios_traffic_mock_remove) or give explicit when-not-to-use guidance.

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.

Resources