Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
createCollection.test.ts1.43 kB
import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js"; describeAccuracyTests([ { prompt: "Create a new namespace 'mflix.documentaries'", expectedToolCalls: [ { toolName: "create-collection", parameters: { database: "mflix", collection: "documentaries", }, }, ], }, { prompt: "Create a new collection villains in comics database", expectedToolCalls: [ { toolName: "create-collection", parameters: { database: "comics", collection: "villains", }, }, ], }, { prompt: "If and only if, the namespace 'mflix.documentaries' does not exist, then create it", expectedToolCalls: [ { toolName: "list-databases", parameters: {}, optional: true, }, { toolName: "list-collections", parameters: { database: "mflix", }, }, { toolName: "create-collection", parameters: { database: "mflix", collection: "documentaries", }, }, ], }, ]);

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