MongoDB Query Shape Insights API

The Query Shape Insights API from MongoDB — 4 operation(s) for query shape insights.

GitHub OpenAPI

Operations 5

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}/queryShapeInsights/summaries Summarize query shape statistics for a cluster · Return Query Statistic Summaries #
Ask an LLM
“How do I get summary statistics for query shapes on a cluster?”
“Can I limit query shape summaries to certain namespaces or commands?”
Tell an agent
Summarize query shape statistics for cluster {clusterName} in project {groupId}.
Summarize query shapes on {clusterName} in project {groupId} for namespaces {namespaces}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/queryShapeInsights/{queryShapeHash}/details Get details for a query shape hash · Return Query Shape Details #
Ask an LLM
“What statistics are available for a specific query shape hash?”
“Can I see the details of a rejected query shape on a cluster?”
Tell an agent
Get details for query shape {queryShapeHash} on cluster {clusterName} in project {groupId}.
Show statistics for query shape hash {queryShapeHash} on {clusterName} in project {groupId}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/queryShapes List rejected query shapes on a cluster · Return All Query Shapes #
Ask an LLM
“Which query shapes have been rejected on my cluster?”
“Can I list only query shapes with a particular status?”
Tell an agent
List rejected query shapes on cluster {clusterName} in project {groupId}.
Show query shapes on {clusterName} in project {groupId} with status {status}.
GET /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/queryShapes/{queryShapeHash} Get one rejected query shape · Return One Query Shape #
Ask an LLM
“What does a single rejected query shape look like?”
“Why was a particular query shape rejected on my cluster?”
Tell an agent
Get query shape {queryShapeHash} on cluster {clusterName} in project {groupId}.
Show the details of rejected query shape {queryShapeHash} on {clusterName} in {groupId}.
PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/queryShapes/{queryShapeHash} Reject or unreject a query shape · Update Query Shape Rejection Status #
Ask an LLM
“How do I stop a rejected query shape from running on my cluster?”
“Can I undo the rejection of a query shape?”
Tell an agent
Set query shape {queryShapeHash} on cluster {clusterName} in project {groupId} to status {status}.
Reject query shape {queryShapeHash} on {clusterName} in {groupId} by setting status {status}.

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-query-shape-insights-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-query-shape-insights-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mongodb Query Shape Insights 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 Query Shape Insights 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 (58 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-query-shape-insights-api-openapi.yml