Skip to main content
Glama

MCP Server Boilerplate

mongo-update-document

Update documents in MongoDB collections using query filters and update operations. Modify single or multiple documents with JSON-based update commands for database management.

Instructions

Update documents in a MongoDB collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
databaseYesDatabase name
filterYesQuery filter to match documents to update
updateYesUpdate operations as JSON object
updateManyNoWhether to update multiple documents (default: false)

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name", "type": "string" }, "database": { "description": "Database name", "type": "string" }, "filter": { "additionalProperties": {}, "description": "Query filter to match documents to update", "type": "object" }, "update": { "additionalProperties": {}, "description": "Update operations as JSON object", "type": "object" }, "updateMany": { "description": "Whether to update multiple documents (default: false)", "type": "boolean" } }, "required": [ "database", "collection", "filter", "update" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RichardFelix999/mongo-boilerplate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server