read_collection
Retrieve documents from a MongoDB collection with optional filtering, sorting, and pagination.
Instructions
Read documents from a MongoDB collection with filtering and pagination.
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": {
"collection_name": "<collection_name>"
},
"name": "read_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of documents to skip for pagination | |
| limit | No | Maximum number of documents to return (max 1000) | |
| sort_by | No | Field name to sort by (optional) | |
| filter_query | No | JSON string with MongoDB filter query (optional) | |
| collection_name | Yes | Name of the collection to read from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||