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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "graphId": "<graphId>",
      "variant": "<variant>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "GetTopOperations"
  }
}

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. Changed1 schema field changed
    • changedOutput schema / properties / data / properties / graph / anyOf
      Previous 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"
      -  }
      -]New 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": "A 64-bit signed integer"
      +                    },
      +                    "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"
      +  }
      +]
  2. 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"
      -  }
      -]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world. The description adds behavior beyond that: the report is rate limited, and `to` must be at least 6 hours in the past (a data-lag constraint). It does not state what triggers or how severe the rate limit is, nor any permission requirements.

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

Conciseness4/5

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

Four sentences, front-loaded with purpose then usage then required inputs then the rate-limit caveat; no filler. The time-range sentence mildly repeats the schema's 6-hour rule, but it earns its place as a guard against a common invocation error.

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?

With an output schema present, return details need not be repeated, and the description covers scope, use cases, required inputs and the rate-limit caveat, so it is sufficient to call correctly. It leaves open permission requirements and any dependency on data availability beyond the 6-hour window.

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

Parameters4/5

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

Schema coverage is 60%, with graphId and variant having no schema descriptions at all; the description at least frames them as the report scope alongside the time range. It also restates the limit default as 50, which usefully resolves the schema's inconsistent 'default: 10' text, though it does not clarify what a variant string looks like or what the limit caps.

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?

States a specific verb and resource ('Identify the most-used operations on a graph variant') plus what is returned (request counts, types, signatures). It is clear as a standalone, but it never names the closest sibling (GetOperationMetrics) or explains how it differs, so an agent must infer the boundary.

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?

Gives concrete use cases: find high-traffic operations, detect unused operations, prioritize by traffic impact. This is a real context for selection, but there are no explicit exclusions or named alternatives even though the sibling list contains GetOperationMetrics and GetClientMetrics, which would plausibly overlap.

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