Skip to main content
Glama

query_sqlite

Execute SQL queries on a SQLite database within an Android app's sandboxed data directory. Works on debuggable apps or rooted devices/emulators.

Instructions

Execute a SQL query/command on a SQLite database within an app's sandboxed data directory. Note: Only works on debuggable apps or rooted devices/emulators.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe SQL query/command to execute (e.g. 'SELECT * FROM users LIMIT 10;', '.tables', '.schema')
dbNameYesDatabase filename (e.g. 'local_cache.db') or absolute path within the sandbox (e.g. '/data/data/com.example.app/databases/main.db')
serialNoSpecific device serial number
packageNameYesPackage name of the target app (e.g. 'com.example.app')
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It mentions the debug/root prerequisite but fails to warn that the tool can execute arbitrary SQL commands, including destructive operations like DELETE or DROP, with no confirmation. This is a significant transparency gap.

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 two sentences, front-loaded with the core purpose, and wastes no words. The critical debug/root note is included without bloat.

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?

The tool is complex because it executes raw SQL, yet there is no output schema and the description doesn't explain return format, error behavior, or side effects. The debug/root limitation is present, but missing output/return details makes it incomplete.

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 covers all parameters with descriptions and examples, so the baseline is 3. The tool description adds no extra parameter semantics beyond what the schema already provides.

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 executes SQL queries/commands on a SQLite database within an app's sandboxed directory. It uses a specific verb and resource and is distinct from siblings like get_dbinfo or execute_shell_command.

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 gives clear context (executing SQL against an app's sandboxed database) and includes an important prerequisite/exclusion: only works on debuggable apps or rooted devices/emulators. It doesn't explicitly call out alternatives, but the constraint is valuable usage 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/abhinav7895/adb-mcp-server'

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