Skip to main content
Glama

gateway_stats

Read-onlyIdempotent

Seller side: calls, revenue and recent activity for one of your gateway endpoints. Read-only. REQUIRES OPERATOR KEY.

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": {
      "endpoint_id": "<endpoint_id>"
    },
    "name": "gateway_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpoint_idYesGateway endpoint id (integer) from gateway_list, for example 12

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / endpoint_id / description
      Added value: +"Gateway endpoint id (integer) from gateway_list, for example 12"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds genuinely new context: the operator-key auth prerequisite and the seller-side permission scope. It stops short of describing result shape or freshness of "recent activity", but the auth disclosure is the highest-value addition here.

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?

Three short, front-loaded fragments with zero filler; the read-only and auth facts are placed where they will be seen immediately. The telegraphic style is efficient but slightly terse for a fragment-only construction.

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?

For a single-parameter read tool with no output schema, the description states the content returned (calls, revenue, recent activity), the ownership scope, and the auth requirement. Only return format and time window remain unspecified, which are minor given the tool's simplicity.

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 coverage is 100% and the endpoint_id description already points to gateway_list and gives an example. The description only adds that the endpoint must be one of yours, which is ownership context rather than syntax, so the schema still carries the load.

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?

"Calls, revenue and recent activity for one of your gateway endpoints" names the resource and the specific metrics returned, and "Seller side" scopes it to endpoint owners rather than buyers. It is clearly distinct from gateway_list/probe/pause siblings, though the verb is implicit rather than stated.

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

Usage Guidelines3/5

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

Usage is implied by "for one of your gateway endpoints" and by the operator-key requirement, so an agent can infer this is for inspecting an endpoint you own. There is no explicit when-to-use versus alternatives (e.g. gateway_list for discovery) and no exclusion guidance.

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.