Skip to main content
Glama
grandMA2 MCP
by drohi-r

generate_compliance_report

Generates SB 132 safety-audit compliance reports from grandMA2 telemetry, mapping risk assessments, operator IDs, destructive operation logs, and incident timelines into markdown.

Instructions

Generate a SB 132 / safety-audit compliance report from session telemetry.

Produces a structured report mapping MA2 Agent telemetry fields to
SB 132 documentation requirements: written risk assessment, operator
identification, DESTRUCTIVE operation log, and incident timeline.

Safe to run during any production. Reads telemetry only — no console side effects.

Args:
    session_id: Target session ID. If None, uses all sessions in date range.
    production_name: Name of production for report header.
    operator_name: Console operator name for report header.
    days: Days of telemetry to include (default 1).

Returns a markdown compliance report ready for inclusion in safety documentation.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
session_idNo
operator_nameNo
production_nameNoProduction

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden and does a solid job: it explicitly states the tool is read-only, has 'no console side effects', and is safe during production — exactly the safety profile an agent needs for a report generator. It could go further on whether repeated runs are idempotent or whether large date ranges are expensive, but the core behavior is disclosed.

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 front-loaded with the purpose, then safety note, then parameter docs and return type, which is a logical reading order. The bulleted report-contents list and Args block are dense and earn their place; only minor redundancy exists between the 'Returns a markdown compliance report' line and the existing output schema.

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 four-parameter, zero-annotation tool, the description covers purpose, safety profile, all parameter meanings, and the return artifact. The presence of an output schema means the return-shape explanation is a bonus rather than a gap, and nothing essential for correct invocation appears to be missing.

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?

Schema description coverage is 0%, so the description must compensate, and the Args block covers all four parameters with real semantics the schema lacks — notably that a null session_id means all sessions in the date range, that production_name/operator_name feed the report header, and that days defaults to 1. Format details (session_id syntax, date-range anchoring) remain unstated, keeping it short of a 5.

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 description names a specific verb and artifact ('Generate a SB 132 / safety-audit compliance report from session telemetry') and enumerates the report's contents: risk assessment, operator identification, DESTRUCTIVE operation log, and incident timeline. The purpose is unambiguous, but it never contrasts itself with the nearby get_telemetry_report or agent_token_report siblings, so an agent must infer which report generator to pick.

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?

It gives contextual guidance ('Safe to run during any production', 'Reads telemetry only'), which reassures the agent about deployment conditions, and the session_id arg note implies the choice between single-session and all-session reports. However, there is no explicit statement of when to prefer this over the sibling telemetry/token report tools, so selection 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.

Deploy Server

Other Tools