Skip to main content
Glama

Usage Report

usage_report
Read-onlyIdempotent

Reports requests and tokens consumed by external prompt-injection services for a selected period, estimated USD cost by guard, model or day, and today's budget status.

Instructions

Report how many requests and tokens the external prompt-injection services (e.g. TypeSafe Jev, OpenAI-compatible judges) consumed and their estimated cost in USD, for a period, grouped by guard, model or day. Also shows today's budget usage.

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": "usage_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNomine: your own usage; all: every user (admins only).mine
periodNoTime window (UTC): today, last 7 or 30 days, this month, or all time.today
group_byNoHow to group the rows.guard

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds that services are external, costs are estimated, and budget usage is included, but it does not discuss permissions, freshness, or output shape beyond the metrics themselves.

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?

The definition is compact and front-loaded with the reporting purpose. The first sentence is dense but informative, and the second sentence adds a useful detail without wasted words.

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 three-parameter read-only reporting tool with full schema coverage and annotations, the description covers what is measured, the grouping dimensions, and budget usage. It could say more about the shape of the returned report, but it is broadly complete for the tool's complexity.

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%, with enums and descriptions for scope, period, and group_by, so the schema carries parameter meaning. The description mirrors the grouping options and period concept but does not add semantics beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it reports request and token consumption plus estimated USD cost for external prompt-injection services, with grouping and budget usage. This clearly distinguishes it from a generic page reader.

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 the reporting purpose, but there is no explicit when-to-use guidance, no when-not-to-use conditions, and no named alternatives to compare against. The 'Also shows today's budget usage' clause adds context but not routing guidance.

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

Deploy Server

Other Tools