Skip to main content
Glama

App metrics

app_metrics
Read-onlyIdempotent

An app's traffic over 24, 168 or 720 hours (default 24): requests, unique visitors, errors, p50/p95 latency, top paths, the 4xx/5xx split, and the script-free visitor slice (pageviews plus top pages, referrers, sources, countries, devices and browsers). Same source as the Console metrics tab. Untrusted: paths and referrers may hold visitor text.

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": {
      "app": "<app>"
    },
    "name": "app_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
hoursNoWindow in hours: 24, 168 or 720 (default 24), like the Console metrics tab.

Output Schema

NameRequiredDescriptionDefault
appYes
s4xxYes
s5xxYes
hoursYes
errorsYes
p50_msYes
p95_msYes
trafficYes
requestsYes
visitorsYes
top_pathsYes
error_rateYes
untrusted_noticeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. Beyond that the description adds two real pieces of context: the untrusted-data warning about visitor-supplied paths and referrers, and the fact that results mirror the Console metrics tab. It still says nothing about rate limits, result size, or aggregation behavior, so a 3 rather than a 4.

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?

Two sentences: the first front-loads the resource and window, the second flags untrusted content. The metric enumeration is long but each item is informative. The trust warning is correctly placed last since it qualifies the response rather than the request.

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 two-parameter read-only tool with a full output schema, the description covers what the response contains, the allowable windows, and a data-trust caveat. The only remaining gap is not routing the agent away from overlapping siblings such as app_errors, which is a guidance rather than a completeness issue.

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 100%, so the baseline is 3, but the description reinforces the meaningful constraint that the window is only 24, 168 or 720 hours with a 24-hour default, which is the single choice an agent must get right. It adds nothing about the app slug beyond the schema's 'app slug' note.

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 names a specific resource (an app's traffic) and enumerates the exact metric families returned: requests, unique visitors, errors, p50/p95 latency, top paths, 4xx/5xx split, and the script-free visitor slice. That detail implicitly separates it from siblings like app_errors and app_logs, but it never explicitly contrasts with them, so it falls short of a 5.

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?

The description anchors usage with 'Same source as the Console metrics tab' and gives the default window, which implies when this is the right tool. It offers no explicit when-not conditions and does not name alternatives such as app_errors for error breakdowns or app_logs for raw events.

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.