mongo_describe_collection
Inspect a MongoDB collection by sampling a document in EJSON, listing indexes, and inferring field types to understand structure before querying or writing data.
Instructions
Describe a MongoDB collection: sample document (EJSON), indexes and inferred fields.
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": {
"connection_id": "<connection_id>",
"collection": "<collection>"
},
"name": "mongo_describe_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| collection | Yes | ||
| connection_id | Yes |