Query with Pagination
query_paginatedExecute SELECT queries with pagination on Android SQLite databases, specifying limit and offset to retrieve a subset of rows along with the total row count.
Instructions
Execute a SELECT query with LIMIT/OFFSET pagination. Returns results plus total row count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"sql": "<sql>",
"limit": "<limit>"
},
"name": "query_paginated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL SELECT query | |
| limit | Yes | Maximum rows to return | |
| offset | No | Number of rows to skip (default 0) | |
| database | Yes | Database filename (e.g. app.db) |