Skip to main content
Glama
Nam088

mcp-server-db

by Nam088

mongo_update_many

Update multiple MongoDB documents that match a specified filter. Apply bulk updates to a collection using a JSON filter and update document.

Instructions

Update multiple documents matching filter in MongoDB. Blocked when readOnly mode is enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterYesJSON string filter.
updateYesJSON string update document.
upsertNo
databaseNo
collectionYes
connectionIdNoId of the mongodb connection to use. Optional when only one mongodb connection is configured.
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries full burden for behavioral disclosure. It only mentions 'Blocked when readOnly mode is enabled', indicating it's a write operation and won't work under read-only. But it omits return value, atomicy, error behavior, or side effects (e.g., if filter matches none). For a mutating tool, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two sentences with no fluff. The first sentence tells the core functionality, the second adds a key constraint. Every word earns its place, making it efficient for an AI agent to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no output schema, and no annotations, the description is too minimal. It does not cover return format (e.g., number of modified documents), parameter behavior (JSON strings, upsert default), or error scenarios. For a database modification tool, this lacks critical context an agent would need to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50% (filter, update, connectionId have descriptions; upsert, database, collection do not). The description adds no extra meaning beyond the schema—it does not explain how filter/update strings are interpreted (e.g., MongoDB query syntax), the effect of upsert, or the role of database/collection. It fails to compensate for missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Update multiple documents matching filter in MongoDB', which specifies the verb (update), resource (multiple documents), and scope (MongoDB). It distinguishes from siblings like mongo_update_one (single) and mongo_delete_many (delete). However, it does not explicitly contrast with other update tools, missing a chance to improve differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like mongo_update_one, mongo_insert_many, or mongo_delete_many. The only extra note is 'Blocked when readOnly mode is enabled', which is a constraint not a usage guide. The description lacks when-to-use, when-not-to-use, or alternative references.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/Nam088/mcp-database-server-v2'

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