pb_records_list
Efficiently retrieve and manage records from a collection on the PocketBase MCP Server with options for filtering, sorting, pagination, and field selection.
Instructions
List records from a collection with optional filtering and pagination
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name or ID | |
expand | No | Relations to expand (e.g., "author,category") | |
fields | No | Fields to return (e.g., "id,title,created") | |
filter | No | Filter criteria (e.g., "status = true") | |
page | No | Page number | |
perPage | No | Items per page | |
sort | No | Sort criteria (e.g., "created", "-updated", "title") |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name or ID",
"type": "string"
},
"expand": {
"description": "Relations to expand (e.g., \"author,category\")",
"type": "string"
},
"fields": {
"description": "Fields to return (e.g., \"id,title,created\")",
"type": "string"
},
"filter": {
"description": "Filter criteria (e.g., \"status = true\")",
"type": "string"
},
"page": {
"default": 1,
"description": "Page number",
"minimum": 1,
"type": "number"
},
"perPage": {
"default": 30,
"description": "Items per page",
"maximum": 500,
"minimum": 1,
"type": "number"
},
"sort": {
"description": "Sort criteria (e.g., \"created\", \"-updated\", \"title\")",
"type": "string"
}
},
"required": [
"collection"
],
"type": "object"
}