| command | Operation: find-one, find, count, estimated-count, distinct, insert-one, insert-many, update-one, update-many, replace-one, delete-one, delete-many, find-one-and-update, find-one-and-replace, find-one-and-delete, bulk-write, transaction, aggregate, create-index, create-indexes, drop-index, drop-indexes, list-indexes, list-collections, create-collection, drop-collection, rename-collection, collection-stats, db-stats, drop-database, run-command | yes | — |
| url | MongoDB connection string (mongodb+srv://user:pass@cluster/db or mongodb://host:port/db) | yes | — |
| collection | Collection name | no | "" |
| filter | Query filter as JSON (for find, update, delete, count, distinct) | no | {} |
| document | Document as JSON (for insert-one, replace-one, find-one-and-replace) | no | "" |
| documents | Array of documents as JSON (for insert-many) | no | "" |
| update | Update operations as JSON (for update-one, update-many, find-one-and-update) | no | "" |
| pipeline | Aggregation pipeline as JSON array (for aggregate) | no | "" |
| projection | Fields to include/exclude as JSON (for find, find-one, find-one-and-*) | no | "" |
| sort | Sort specification as JSON (for find, find-one-and-*) | no | "" |
| limit | Max documents to return (for find) | no | "" |
| skip | Documents to skip (for find) | no | "" |
| field | Field name (for distinct) | no | "" |
| index | Index specification as JSON (for create-index) | no | "" |
| index-options | Index options as JSON (for create-index, e.g. {"unique": true}) | no | "" |
| index-name | Index name (for drop-index) | no | "" |
| upsert | Insert if no match found (for update-one, update-many, replace-one, find-one-and-*) | no | false |
| ordered | Execute operations in order (for insert-many, bulk-write; default: true) | no | true |
| operations | Array of operations as JSON (for bulk-write, create-indexes) | no | "" |
| options | Collection options as JSON (for create-collection, e.g. capped, timeseries, validator) | no | "" |
| new-name | New collection name (for rename-collection) | no | "" |
| return-document | Return document before or after modification (for find-one-and-*; default: after) | no | after |
| db-command | Arbitrary database command as JSON (for run-command) | no | "" |