Skip to main content
Glama

GetTopOperations

Read-onlyIdempotent

Identify the most-used operations on a graph variant for a time range, with request counts, types, and signatures. Use to find high-traffic operations, detect unused operations, and prioritize findings by traffic impact. Provide graph ID, variant, and a from/to time range (ISO 8601 timestamps; to must be at least 6 hours before now), plus an optional limit (default 50). This report is rate limited.

Input Schema

NameRequiredDescriptionDefault
toYesThe ending timestamp for the report. - Must be in the format: 2025-01-01T08:00:00Z (ISO 8601). - Must be at least 6 hours from the current time. - The duration between 'from' and 'to' must not exceed 31 days.
fromYesThe starting timestamp for the report. - Must be in the format: 2025-01-01T00:00:00Z (ISO 8601). - Must be within the last 549 days. - The duration between 'from' and 'to' must not exceed 31 days.
limitNoMaximum number of records to return (default: 10)
graphIdYes
variantYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorsNo
extensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / limit / default
      Added value: +50
    • changedInput schema / required
      Previous value: -[
      -  "graphId",
      -  "variant",
      -  "from",
      -  "to",
      -  "limit"
      -]New value: +[
      +  "graphId",
      +  "variant",
      +  "from",
      +  "to"
      +]
    • addedOutput schema / properties / data / properties / graph / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "variant": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "topOperationsReport": {
      +                "description": "Returns a list of the top operations reported for this variant within a given time range. This API is rate limited,\nand will return an error if too many requests are made for a graph.",
      +                "items": {
      +                  "properties": {
      +                    "name": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "The operation name or null if the operation is unnamed."
      +                    },
      +                    "operationId": {
      +                      "description": "The unique id for this operation.",
      +                      "type": "string"
      +                    },
      +                    "requestCount": {
      +                      "description": "Long type"
      +                    },
      +                    "signature": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "The operation's signature body or null if the signature is unavailable due to parse errors."
      +                    },
      +                    "type": {
      +                      "anyOf": [
      +                        {
      +                          "$ref": "#/definitions/OperationType"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "The operation type or null if the operation type could not be determined from the signature."
      +                    }
      +                  },
      +                  "required": [
      +                    "operationId",
      +                    "requestCount"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "topOperationsReport"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Provides details of the graph variant with the provided `name`, if a variant\nwith that name exists for this graph. Otherwise, returns null.\n\n For a list of _all_ variants associated with a graph, use `Graph.variants` instead."
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / data / properties / graph / oneOf
      Removed value: -[
      -  {
      -    "properties": {
      -      "variant": {
      -        "description": "Provides details of the graph variant with the provided `name`, if a variant\nwith that name exists for this graph. Otherwise, returns null.\n\n For a list of _all_ variants associated with a graph, use `Graph.variants` instead.",
      -        "oneOf": [
      -          {
      -            "properties": {
      -              "topOperationsReport": {
      -                "description": "Returns a list of the top operations reported for this variant within a given time range. This API is rate limited,\nand will return an error if too many requests are made for a graph.",
      -                "items": {
      -                  "properties": {
      -                    "name": {
      -                      "description": "The operation name or null if the operation is unnamed.",
      -                      "oneOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "operationId": {
      -                      "description": "The unique id for this operation.",
      -                      "type": "string"
      -                    },
      -                    "requestCount": {
      -                      "description": "Long type"
      -                    },
      -                    "signature": {
      -                      "description": "The operation's signature body or null if the signature is unavailable due to parse errors.",
      -                      "oneOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "type": {
      -                      "description": "The operation type or null if the operation type could not be determined from the signature.",
      -                      "oneOf": [
      -                        {
      -                          "$ref": "#/definitions/OperationType"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "operationId",
      -                    "requestCount"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "topOperationsReport"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
  2. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already establish that this is a read-only, idempotent, non-destructive, open-world operation. The description adds useful behavioral context by noting that the report is rate limited and by restating the key time constraint on the `to` parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and output, then adds usage guidance, required inputs, a key time constraint, and the rate-limit warning. Each sentence contributes useful information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that annotations cover the safety profile and an output schema exists, the description is largely complete: it explains purpose, usage, required inputs, key time behavior, and rate limiting. The remaining gaps, such as full graphId/variant semantics and all time-window constraints, are covered partly by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60%, and the description provides high-level meaning for all five parameters, including graph ID, variant, from/to time range, and optional limit. However, it does not explain graphId or variant semantics in detail, and it omits some schema-level time constraints, so the schema still carries substantial parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: identifying the most-used operations on a graph variant for a time range, including request counts, types, and signatures. It is clear what the tool does, though it does not explicitly distinguish itself from nearby siblings such as GetOperationMetrics or GetClientMetrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names concrete use cases: finding high-traffic operations, detecting unused operations, and prioritizing by traffic impact. It gives clear context for when to use the tool, but it does not explicitly state when to choose it over sibling metrics tools or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources