MongoDB · Schema

QueryStatsSummaryListResponse

Cloud DatabaseDatabaseDocument DatabaseNoSQLMongoDB

Properties

Name Type Description
summaries array List of query shape statistic summaries from Query Shape Insights.
View JSON Schema on GitHub

JSON Schema

mongodb-query-stats-summary-list-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-query-stats-summary-list-response-schema.json",
  "title": "QueryStatsSummaryListResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mongodb-query-shape-insights-api-openapi.yml#/components/schemas/QueryStatsSummaryListResponse",
  "properties": {
    "summaries": {
      "description": "List of query shape statistic summaries from Query Shape Insights.",
      "items": {
        "$ref": "#/$defs/QueryStatsSummary"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "QueryStatsSummary": {
      "description": "A summary of execution statistics for a given query shape.",
      "properties": {
        "avgWorkingMillis": {
          "description": "Average total time in milliseconds spent running queries with the given query shape. If the query resulted in `getMore` commands, this metric includes the time spent processing the `getMore` requests. This metric does not include time spent waiting for the client.",
          "format": "double",
          "type": "number"
        },
        "bytesRead": {
          "description": "The number of bytes read by the given query shape from the disk to the cache.",
          "format": "double",
          "type": "number"
        },
        "command": {
          "description": "The MongoDB command issued for this query shape.",
          "enum": [
            "find",
            "distinct",
            "aggregate"
          ],
          "type": "string"
        },
        "cpuTime": {
          "description": "Total CPU time in nanoseconds consumed by queries with the given query shape. Available for MDB 8.2 and higher.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "docsExamined": {
          "description": "Total number of documents examined by queries with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "docsExaminedRatio": {
          "description": "Ratio of documents examined to documents returned by queries with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "docsReturned": {
          "description": "Total number of documents returned by queries with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "execCount": {
          "description": "Total number of times that queries with the given query shape have been executed.",
          "format": "double",
          "type": "number"
        },
        "keysExamined": {
          "description": "Total number of in-bounds and out-of-bounds index keys examined by queries with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "keysExaminedRatio": {
          "description": "Ratio of in-bounds and out-of-bounds index keys examined to indexes containing documents returned by queries with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "lastExecMicros": {
          "description": "Execution runtime in microseconds for the most recent query with the given query shape.",
          "format": "double",
          "type": "number"
        },
        "namespace": {
          "description": "Human-readable label that identifies the namespace on the specified host. The resource expresses this parameter value as `<database>.<collection>`.",
          "type": "string"
        },
        "p50ExecMicros": {
          "description": "The 50th percentile value of execution time in microseconds.",
          "format": "double",
          "type": "number"
        },
        "p90ExecMicros": {
          "description": "The 90th percentile value of execution time in microseconds.",
          "format": "double",
          "type": "number"
        },
        "p99ExecMicros": {
          "description": "The 99th percentile value of execution time in microseconds.",
          "format": "double",
          "type": "number"
        },
        "queryShape": {
          "description": "A query shape is a set of specifications that group similar queries together. Specifications can include filters, sorts, projections, aggregation pipeline stages, a namespace, and others. Queries that have similar specifications have the same query shape.",
          "type": "string"
        },
        "queryShapeHash": {
          "description": "A hexadecimal string that represents the hash of a MongoDB query shape.",
          "type": "string"
        },
        "systemQuery": {
          "description": "Indicates whether this query shape represents a system-initiated query.",
          "type": "boolean"
        },
        "totalTimeToResponseMicros": {
          "description": "Time in microseconds spent from the beginning of query processing to the first server response.",
          "format": "double",
          "type": "number"
        },
        "totalWorkingMillis": {
          "description": "Total time in milliseconds spent running queries with the given query shape. If the query resulted in `getMore` commands, this metric includes the time spent processing the `getMore` requests. This metric does not include time spent waiting for the client.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/mongodb-query-stats-summary-list-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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