Skip to main content
Glama

Get Stats

get_stats
Read-only

Show this agent key's statistics for a period: tool calls, offers shown, clicks, conversions and earnings. Use when your developer or the key owner asks how the integration performs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoPeriod in days, default 30.
agent_keyNoRequired for private statistics unless the personal MCP URL contains the key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / agent_key / description
      Previous value: -"Only if your developer gave you an agent key (ak_ + 32 characters) and the MCP URL does not contain it. Otherwise omit; never make one up."New value: +"Required for private statistics unless the personal MCP URL contains the key."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description only needs to add context. It adds that results are scoped to a period and enumerated the metrics returned, which is useful given there is no output schema, but says nothing about aggregation granularity, currency/units for earnings, or volume of data returned.

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?

Two front-loaded sentences with zero filler: the first defines the output, the second defines the invocation trigger. Nothing is repeated from the title or annotations.

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 full schema coverage, the definition covers purpose, trigger, scope and returned metrics, which partially substitutes for the absent output schema. Minor gaps remain around earnings units and result size, but nothing essential for a correct call is missing.

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 100%, so both parameters are already documented, including the 30-day default and the 90-day cap. The phrase "for a period" merely restates the days parameter and adds no format or behavior detail beyond the schema.

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 (show/showing) and resource (this agent key's statistics) and enumerates the exact metrics returned: tool calls, offers shown, clicks, conversions, earnings. That metric list clearly separates it from siblings like claim_earnings, search_offers and get_link, though it never names a sibling explicitly.

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?

"Use when your developer or the key owner asks how the integration performs" gives a concrete trigger condition for invoking the tool. It stops short of stating when-not to use it or pointing at any alternative, so the routing guidance is clear but incomplete.

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.