List documents in a Mudbase collection
mudbase_list_documentsList documents in a Mudbase collection using JSON filters, pagination, and sorting to locate the records you need.
Instructions
List documents in a Mudbase collection, with pagination, sorting, and an optional filter. 'filter' is a JSON-encoded object using Mudbase's structured query operators, e.g. '{"status":"active"}' or '{"age":{"$gte":18}}'.
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": {
"projectId": "<projectId>",
"collectionId": "<collectionId>"
},
"name": "mudbase_list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. Defaults to 1. | |
| sort | No | Sort field(s), e.g. '-createdAt' for newest first, or 'name' for ascending. | |
| limit | No | Documents per page, max 100. Defaults to 20. | |
| filter | No | A JSON-encoded filter object using Mudbase's structured query operators. | |
| projectId | Yes | The Mudbase project ID. | |
| collectionId | Yes | The collection ID to operate on. |