Skip to main content
Glama
Bridge Commander
by PaPasha215

get_usage_stats

Read-onlyIdempotent

Retrieve audit-log usage statistics per tool and node, including call counts, failures, and average durations to monitor performance and reliability.

Instructions

Usage statistics from the audit log: calls, failures and average duration per tool and node.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds the data source (audit log) and the computed metrics, which is useful. However, it says nothing about the time window covered, whether results are cached, or how large the output can get – notable gaps for a stats aggregation tool with no parameters to scope it.

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?

A single sentence, front-loaded with the resource and followed by the enumerated metrics. Every clause carries information and nothing is redundant.

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 simple, parameterless read-only aggregation tool with no output schema, the description supplies enough to understand what comes back at a coarse level. The main missing piece is the time range or scope of the audit log window, which an agent would need in order to interpret the numbers.

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?

The tool takes zero parameters, so the baseline is 4 and no parameter explanation is required. The description appropriately spends its text on output semantics instead of inventing parameter detail.

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+resource ('Usage statistics from the audit log') and enumerates what is measured (calls, failures, average duration) and how it is grouped (per tool and node). This distinguishes it as an aggregate-report tool rather than a raw call listing, though it does not name any 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no reference to alternatives such as get_recent_tool_calls. The only hint is implicit – the word 'statistics' suggests summary rather than detail – which leaves the agent to infer selection on its own.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.