Skip to main content
Glama

get_agent_analytics

Read-onlyIdempotent

Spending and earning analytics for this agent over a window: total spent and received, transaction count, average payment, and top L402 destinations. Read-only. REQUIRES AGENT KEY.

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_agent_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoReporting window: 24h, 7d, 30d or all. Default 30d30d

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / period / description
      Added value: +"Reporting window: 24h, 7d, 30d or all. Default 30d"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false, so safety is covered by structured data. The description still adds a non-annotation behavioral fact: 'REQUIRES AGENT KEY', which tells the agent an authentication dependency exists before calling. It also enumerates the result fields in lieu of an output schema. Minor deduction because 'Read-only' merely restates the annotation and the failure mode when the key is missing is unstated.

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?

Front-loaded with purpose and the metric list, then the read-only and auth constraints in short declarative sentences. Every sentence carries information, with the only redundancy being the 'Read-only' clause that duplicates readOnlyHint.

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 no output schema, the description compensates by naming the returned metrics, and it flags the agent-key requirement plus the window parameter. Remaining gaps are modest: currency/unit of the totals, what distinguishes a 'top L402 destination', and behavior when the agent has no activity or a missing key.

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% and the single period parameter has an enumerated set with a documented default of 30d. The description only echoes this with 'over a window', adding no format, timezone, or boundary semantics beyond what the schema already provides, so the baseline of 3 applies.

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?

Names a specific resource (spending/earning analytics for this agent) and enumerates the exact metrics returned: total spent/received, transaction count, average payment, top L402 destinations. That is far more concrete than a generic 'get analytics'. It does not explicitly contrast itself with the raw-ledger siblings such as get_transactions or get_budget_status, so an agent must infer the aggregate-vs-raw distinction.

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 only implied: the word 'analytics' plus the enumerated aggregate metrics suggest this is for summary views rather than transaction-level lookups, and 'over a window' signals the reporting scope. There is no explicit statement of when to prefer this over get_transactions, get_earn_status, or get_budget_status, and no when-not 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.