Skip to main content
Glama

usage_events

Read-only

Query the observed-usage log to audit LLM prompts and findings, filter by model, risk level, allowed status, and time, and review risky or blocked calls.

Instructions

[READ] Query the observed-usage log (route-through prompts + their findings).

Args: model: Filter by model name. risk_level: Filter by risk band (none/low/medium/high/critical). allowed: True = only allowed calls; False = only blocked. since: ISO start timestamp. limit: Max rows.

Returns {"events": [...], "count": N, "returned": N, "limit": L, "truncated": bool}. When truncated is true more prompts were observed than were returned — raise the limit or narrow the filters. Never conclude "no risky prompts were observed" from a truncated result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
modelNo
sinceNo
allowedNo
risk_levelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.5/5.0
Behavior5/5

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

readOnlyHint=true is already declared, and the description still adds significant behavioral context: the exact return envelope, the meaning of truncated, and the explicit warning not to conclude 'no risky prompts were observed' from a truncated result. That goes well beyond the annotation.

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?

Front-loaded purpose line followed by a compact Args block and return-contract paragraph; nothing is wasted and the crucial truncation caveat is prominent. The Args list partially echoes schema names, but each entry adds a semantic gloss, so the cost is low.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and zero schema-description coverage, the description compensates by documenting the return envelope and the truncation interpretation rule. Nothing an agent needs to invoke or correctly read this call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and meets it: all five parameters (model, risk_level, allowed, since, limit) are explained, including the non-obvious allowed=True/False semantics and the enumerated risk bands (none/low/medium/high/critical) absent from the schema. Only the default limit value is left unstated.

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?

Specific verb+resource: 'Query the observed-usage log', with a clarifying parenthetical ('route-through prompts + their findings') that distinguishes it from the raw-scan/policy siblings like scan_prompt and anomaly_report. An agent can identify what this returns without opening the schema.

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?

No explicit when-to-use/when-not versus alternatives among the 20 siblings (e.g., anomaly_report vs raw event listing). It does give filter semantics and a strong interpretation caveat about truncated results, but routing guidance is only implied.

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