MongoDB Performance Advisor API

Returns suggested indexes and slow query data for a database deployment. Also enables or disables MongoDB Cloud-managed slow operation thresholds. To view field values in a sample query, you must have the Project Data Access Read Only role or higher. Otherwise, MongoDB Cloud returns redacted data rather than the field values.

GitHub OpenAPI
Business capability
Capacity & Performance Management BC-4220.50

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/dropIndexSuggestions List indexes the Performance Advisor suggests dropping · Return All Suggested Indexes to Drop #
Ask an LLM
“Which indexes does the Performance Advisor recommend dropping to free up storage?”
“Can I see redundant or hidden indexes it suggests removing?”
Tell an agent
List indexes the Performance Advisor suggests dropping for cluster {clusterName} in project {groupId}.
Show redundant and unused indexes I should drop on {clusterName} ({groupId}).
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/schemaAdvice Get schema recommendations from Performance Advisor · Return Schema Advice #
Ask an LLM
“What schema changes does the Performance Advisor recommend for my cluster?”
“Can I see holistic schema advice for collections with slow queries?”
Tell an agent
Get schema advice from the Performance Advisor for cluster {clusterName} in project {groupId}.
Show schema recommendations for {clusterName} ({groupId}).
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/suggestedIndexes List indexes suggested by Performance Advisor · Return All Suggested Indexes #
Ask an LLM
“What indexes has Performance Advisor suggested to speed up slow queries?”
“Can I see suggested indexes for specific namespaces or process IDs?”
Tell an agent
List Performance Advisor suggested indexes for cluster {clusterName} in project {groupId}.
Show suggested indexes for {clusterName} in {groupId} on namespaces {namespaces}.
GET /api/atlas/v2/groups/{groupId}/managedSlowMs Check whether managed slow operation threshold is enabled · Return Managed Slow Operation Threshold Status #
Ask an LLM
“Is the managed slow operation threshold turned on for my project?”
“What threshold does the Performance Advisor use to call queries slow?”
Tell an agent
Check whether the managed slow operation threshold is enabled for project {groupId}.
Show the slow operation threshold status of {groupId}.
DELETE /api/atlas/v2/groups/{groupId}/managedSlowMs/disable Disable the managed slow operation threshold · Disable Managed Slow Operation Threshold #
Ask an LLM
“How do I turn off the managed slow operation threshold?”
“What happens to slow query detection when I disable it?”
Tell an agent destructive · confirm first
Disable the managed slow operation threshold for project {groupId}.
Turn off the slow operation threshold in {groupId}.
POST /api/atlas/v2/groups/{groupId}/managedSlowMs/enable Enable the managed slow operation threshold · Enable Managed Slow Operation Threshold #
Ask an LLM
“How do I turn on the managed slow operation threshold?”
“Can I let the Performance Advisor set the slow query threshold automatically?”
Tell an agent
Enable the managed slow operation threshold for project {groupId}.
Turn on the slow operation threshold in {groupId}.
GET /api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/namespaces List namespaces with slow queries on a host · Return All Namespaces for One Host #
Ask an LLM
“Which namespaces on a host are experiencing slow queries?”
“Can I see slow-query namespaces for a replica set member?”
Tell an agent
List namespaces with slow queries on host {processId} in project {groupId}.
Show slow-query namespaces on {processId} ({groupId}) over the last {duration}.
GET /api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/slowQueryLogs List slow queries from the Performance Advisor · Return Slow Queries #
Ask an LLM
“What slow queries has the Performance Advisor and Query Profiler found?”
“Can I include metrics and replica state when fetching slow query logs?”
Tell an agent
List slow queries found by the Performance Advisor on host {processId} in project {groupId}.
Show slow query logs on {processId} ({groupId}) for namespaces {namespaces}.
GET /api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/suggestedIndexes List suggested indexes for a MongoDB process · Return All Suggested Indexes #
Ask an LLM
“Which indexes does the Performance Advisor suggest for one specific mongod host and port?”
“Can I cap how many example queries come back for each index suggested on a single process?”
Tell an agent
List suggested indexes for process {processId} in project {groupId}.
Show index suggestions for process {processId} in project {groupId}, limited to namespaces {namespaces}.
GET /api/atlas/v2/groups/{groupId}/serverless/{clusterName}/performanceAdvisor/autoIndexing Check auto-indexing on a serverless cluster · Return Serverless Auto-Indexing Status #
Ask an LLM
“Is auto-indexing enabled on my serverless cluster?”
“Can I check the auto-indexing status of a Flex cluster?”
Tell an agent
Check whether auto-indexing is enabled on serverless cluster {clusterName} in project {groupId}.
Show the auto-indexing status of {clusterName} ({groupId}).
POST /api/atlas/v2/groups/{groupId}/serverless/{clusterName}/performanceAdvisor/autoIndexing Enable or disable auto-indexing on a serverless cluster · Set Serverless Auto-Indexing Status #
Ask an LLM
“How do I turn auto-indexing on or off for a serverless cluster?”
“Can I set the auto-indexing toggle for a Flex cluster?”
Tell an agent
Set auto-indexing on serverless cluster {clusterName} in project {groupId} to {enable}.
Turn auto-indexing {enable} on {clusterName} ({groupId}).

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb:mongodb-performance-advisor-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-performance-advisor-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Performance Advisor API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged Performance Advisor across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (90 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-performance-advisor-api-openapi.yml