Skip to main content
Glama

state.db

Pull an app's SQLite database to a temporary PC folder and run read-only SQL queries to inspect stored app data.

Instructions

root 拉取应用 sqlite 库到 PC 临时目录并执行只读 SQL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbYes
pkgYes
sqlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two meaningful traits: root access is required and the SQL is read-only, plus the db is copied to a PC temp directory. However it omits temp-dir location, cleanup/lifetime of the copy, permission failures, and error behavior.

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?

A single compact sentence with the action front-loaded and no filler. It is terse to the point of under-specification, but nothing is wasted.

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

Completeness2/5

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

With three undocumented params, no annotations, and no output schema, the description leaves the agent guessing about what pkg/db mean and what the tool returns. For a tool that copies a database and executes arbitrary SQL, this is substantially incomplete.

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

Parameters2/5

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

Schema description coverage is 0% across three params, and the description only vaguely gestures at db and sql without defining pkg, db format, or sql constraints. It does not compensate for the total schema documentation gap.

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 specific actions (pull the app's sqlite db to a PC temp directory, execute read-only SQL) with a clear verb+resource. Distinguishable from state.prefs, though it never names or contrasts with that sibling.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this versus state.prefs or other state/data tools, and no prerequisites beyond the implied root requirement. Usage must be inferred entirely from the name.

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