Skip to main content
Glama
grandMA2 MCP
by drohi-r

get_telemetry_report

Exports tool invocation telemetry as a structured audit report filtered by session, date range, or risk tier for compliance, insurance, and safety audits.

Instructions

Export tool invocation telemetry as a structured audit report.

Queries the tool_invocations table filtered by session, date range, and/or
risk tier. Returns a structured log suitable for SB 132 compliance reports,
insurance documentation, and safety audits.

Args:
    session_id: Filter to a specific session ID (from list_agent_sessions).
                If None, includes all sessions in the date range.
    days: Number of past days to include (default 1 = today only).
    risk_tier: Filter to "SAFE_READ", "SAFE_WRITE", or "DESTRUCTIVE" only.
               If None, includes all tiers.
    format: "json" (default) or "markdown" for human-readable report.

Returns structured report with:
- header: session info, date range, operator
- risk_summary: counts per tier
- destructive_log: full detail on every DESTRUCTIVE operation
- error_log: any operations that returned errors
- timeline: ordered list of all operations

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

Input Schema

NameRequiredDescriptionDefault
daysNo
formatNojson
risk_tierNo
session_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it names the underlying data source (tool_invocations), describes filter fallbacks, defaults, and the exact sections of the returned report, which signals a read-only query. The one ambiguity is whether 'Export' writes a file or merely returns data in the response, since the body says 'Returns a structured log'; nothing about permissions or volume limits is stated.

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 description is front-loaded with a one-line purpose, then organized into Args and Returns sections that map cleanly onto the schema and output. Every line earns its place except the compliance/insurance/audit sentence, which is motivational rather than operational, and the return list is somewhat redundant given an output schema exists.

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?

For a four-parameter, zero-required reporting tool this is complete: purpose, every parameter's accepted values and defaults, how to source a session ID, and what the report contains. With an output schema present, the extra Returns breakdown is belt-and-braces rather than a gap, and nothing needed to call the tool correctly 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% and the schema declares no enums, so the description is the sole source of parameter meaning, and it delivers: risk_tier enumerates the exact accepted values SAFE_READ, SAFE_WRITE, DESTRUCTIVE, and format enumerates json versus markdown, neither of which appears in the schema. Defaults and None-fallbacks for session_id, days, and risk_tier are all spelled out and cross-referenced to a sibling tool.

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?

The first sentence states a specific verb and resource: 'Export tool invocation telemetry as a structured audit report', and the second narrows the data source to the tool_invocations table with session/date/risk-tier filters. It is clearly distinct from generic siblings like get_tool_metrics, but it never differentiates itself from the closer neighbors generate_compliance_report and agent_token_report, which plausibly overlap with the stated SB 132 use case.

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 context is implied through the compliance/insurance/audit use case and through per-parameter behavior (e.g., 'If None, includes all sessions in the date range'), and the session_id note points the agent at list_agent_sessions for obtaining an ID. However, there is no explicit statement of when to choose this tool over generate_compliance_report or agent_token_report, and no prerequisites or exclusions are given.

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