Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
deleteMany.test.ts1.33 kB
import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js"; import { Matcher } from "./sdk/matcher.js"; describeAccuracyTests([ { prompt: "Delete all the documents from 'mflix.movies' namespace", expectedToolCalls: [ { toolName: "delete-many", parameters: { database: "mflix", collection: "movies", filter: Matcher.emptyObjectOrUndefined, }, }, ], }, { prompt: "Purge the collection 'movies' in database 'mflix'", expectedToolCalls: [ { toolName: "delete-many", parameters: { database: "mflix", collection: "movies", filter: Matcher.emptyObjectOrUndefined, }, }, ], }, { prompt: "Remove all the documents from namespace 'mflix.movies' where runtime is less than 100", expectedToolCalls: [ { toolName: "delete-many", parameters: { database: "mflix", collection: "movies", filter: { runtime: { $lt: 100 } }, }, }, ], }, ]);

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/mongodb-js/mongodb-mcp-server'

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