Skip to main content
Glama

inspect_app_data

Reads and queries an app's private SharedPreferences and SQLite databases via Root, without opening the app UI, to verify config states, cached data, and internal table records.

Instructions

【零界面数据穿透工具】直接通过 Root 读取或查询 /data/data/<package>/ 下的 SharedPreferences 配置与 SQLite 数据库! 无需打开应用界面,直接核查开关状态、缓存数据与内部表记录。

Input Schema

NameRequiredDescriptionDefault
modeNo操作模式: - 'list': 列出应用私有目录下的 shared_prefs、databases 和 files - 'read_prefs': 读取 SharedPreferences XML 配置内容 - 'sql_query': 对应用私有 SQLite 数据库执行 SQL 查询list
packageYes目标应用包名(如 'com.example.app')
pref_keyNo当 mode='read_prefs' 时可选过滤的配置键名关键词
sql_queryNo当 mode='sql_query' 时执行的 SQL 语句(留空默认查询所有表名与表结构)
target_fileNo当 mode 为 'read_prefs' 时填 XML 文件名(留空读全部);当 mode 为 'sql_query' 时填数据库文件名(如 'data.db')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the important behavioral traits of Root dependency and the exact path scope (/data/data/<package>/), and '读取或查询' implies read-only. However, it says nothing about what happens on non-rooted devices, permission requirements, or the risk/behavior of the sql_query mode (whether writes are possible, statement restrictions).

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?

Three short lines with the core capability (root-level private data inspection) front-loaded before the supporting detail. The bracketed label and exclamation marks are mild marketing padding but do not obscure the 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?

For a 5-parameter tool with one required param, full schema coverage, and an output schema, the description supplies enough context to select and invoke it: what data is reachable, that it requires Root, and that no UI launch is needed. Missing only failure-mode guidance for non-root scenarios.

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 description coverage is 100% and the schema already documents mode, package, pref_key, sql_query, and target_file in detail. The description only names the data sources (SharedPreferences, SQLite) without adding format or interaction constraints beyond the schema, so it lands at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (read/query) and a precise resource: SharedPreferences XML and SQLite databases under /data/data/<package>/, accessed via Root without opening the UI. An agent can tell this is a root-level private-data inspector. It does not explicitly distinguish itself from the shared_preferences and sqlite_database siblings, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage — verifying toggle states, cached data, and internal table records without launching the app — but never states when to prefer this over shared_preferences or sqlite_database, nor any exclusions such as non-rooted devices. Usage context is implied rather than prescribed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.