Skip to main content
Glama
jegriffi91

Mobile Automator MCP Server

by jegriffi91

Set Mock Response

set_mock_response

Install a Proxyman mock rule to return static JSON responses or transform live backend responses via JSON Patch. Supports session-scoped or persistent standalone mocks.

Instructions

Install a live response-mocking rule via Proxyman. Two modes: staticResponse (return a verbatim payload — feature flags, fixtures) and responseTransform.jsonPatch (proxy to the real backend then mutate the response body in flight — e.g. the loginStatus override pattern). Session-scoped mocks auto-clean on stop_and_compile_test; standalone mocks persist until explicitly cleared. Requires Proxyman running with MCP enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mockYes
sessionIdNoActive recording session ID. Mocks tagged with the session auto-clean on stop_and_compile_test. OMIT to install a STANDALONE mock that persists until explicitly cleared via clear_mock_responses ({ mockId } or { allStandalone: true }) — useful for agents mocking outside any recording session.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYesWhether the mock is auto-cleaned on stop_and_compile (session) or persists (standalone)
mockIdYesStable mock ID (echoed if provided, generated if not)
ruleNameYesDisplay name of the rule in Proxyman: mca:<sessionId>:<mockId> for session-scoped, or mca:standalone:<mockId> for standalone.
proxymanRuleIdYesProxyman rule ID, useful for direct inspection in the Proxyman UI
totalSessionMocksNoTotal active mocks for this session after this call. Only set when scope === "session".
totalStandaloneMocksNoTotal active standalone mocks after this call. Only set when scope === "standalone".
Behavior4/5

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

The annotations already indicate non-readOnly, non-idempotent, non-destructive. The description adds behavioral context about lifecycle (auto-clean vs. persistent) and mode differences, which goes beyond 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, well-structured, and front-loaded with purpose. Every sentence adds value without unnecessary fluff.

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?

The tool has an output schema, so return values are covered. The description addresses purpose, modes, lifecycle, and prerequisites. It lacks mention of error handling or failure scenarios, but overall it is sufficiently complete.

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?

The schema already has detailed descriptions for many parameters (e.g., matcher fields, mock.id). The description adds conceptual understanding of the two modes but does not delve into parameter syntax or the sessionId distinction. Schema coverage is 50%, and the description provides moderate additional value.

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 installs a live response-mocking rule via Proxyman and distinguishes two modes (staticResponse and responseTransform.jsonPatch). It uses specific verbs and resources, and the purpose is unambiguous.

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 provides guidance on session-scoped vs. standalone mocks and the prerequisite of Proxyman running with MCP. However, it does not explicitly mention when not to use this tool or compare it to alternatives like clear_mock_responses.

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/jegriffi91/mobile-automator-mcp'

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