Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
collectionIndexes.test.ts1.85 kB
import { describeAccuracyTests } from "./sdk/describeAccuracyTests.js"; describeAccuracyTests([ { prompt: "How many indexes do I have in 'mflix.movies' namespace?", expectedToolCalls: [ { toolName: "collection-indexes", parameters: { database: "mflix", collection: "movies", }, }, ], }, { prompt: "List all the indexes in movies collection in mflix database", expectedToolCalls: [ { toolName: "collection-indexes", parameters: { database: "mflix", collection: "movies", }, }, ], }, { prompt: `Is there an index covering the following query: ${JSON.stringify({ runtime: { $lt: 100 } })} on the namespace 'mflix.movies'?`, expectedToolCalls: [ { toolName: "collection-indexes", parameters: { database: "mflix", collection: "movies", }, }, ], }, { prompt: "how many search indexes do I have in the collection mydb.mycoll?", expectedToolCalls: [ { toolName: "collection-indexes", parameters: { database: "mydb", collection: "mycoll", }, }, ], }, { prompt: "which vector search indexes do I have in mydb.mycoll?", expectedToolCalls: [ { toolName: "collection-indexes", parameters: { database: "mydb", collection: "mycoll", }, }, ], }, ]);

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