Skip to main content
Glama
MobAI-App

MobAI MCP Server

Official
by MobAI-App

debug_state

Query the current debug session on a mobile device to retrieve state, breakpoints, and optionally stack, local variables, or thread information.

Instructions

Query the current debug session. Returns {state, breakpoints} by default. Set include_stack=true to also fetch the stack of the stopped thread; include_vars=true to also fetch frame[0] locals; include_threads=true to enumerate all threads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idYesDevice ID
include_stackNoInclude stack of stopped thread.
include_varsNoInclude frame[0] locals.
include_threadsNoInclude all threads.
Behavior3/5

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

No annotations provided, so description carries full burden. Describes default and optional behavior but omits side effects, authentication, or confirmation that operation is non-destructive. Could explicitly state it does not modify state.

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?

Two sentences, front-loaded with primary purpose, no redundant words. Efficiently conveys default behavior and optional extensions.

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

Completeness3/5

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

Covers default and optional outputs but does not detail the structure of 'state' or 'breakpoints' objects. Lacks mention of prerequisites (e.g., active debug session). For a read operation with no output schema, more detail on return types would improve completeness.

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% but descriptions are brief. Tool description adds meaningful detail for each optional parameter (e.g., 'fetch the stack of the stopped thread', 'enumerate all threads'), providing context 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?

Description clearly states verb 'Query', resource 'debug session', and default return values '{state, breakpoints}'. Distinguishes from sibling tools like debug_attach, debug_step, debug_eval.

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?

Explains when to use optional parameters (e.g., include_stack, include_vars) with concrete effects. Does not explicitly contrast with alternative tools or provide 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.

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/MobAI-App/mobai-mcp'

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