Skip to main content
Glama
Metrx MCP Server

Metrx MCP Server

by metrxbots

Generate ROI Audit Report

metrx_generate_roi_audit
Read-onlyIdempotent

Generate a comprehensive ROI audit report across your AI agents. Includes per-agent cost/revenue breakdown, attribution confidence scores, optimization opportunities, and risk flags. Suitable for board reporting and compliance.

Instructions

Generate a comprehensive ROI audit report across your AI agents. Includes per-agent cost/revenue breakdown, attribution confidence scores, optimization opportunities, and risk flags. Suitable for board reporting and compliance. Do NOT use for quick per-agent ROI checks — use get_task_roi for individual agents. Requires an API key with the 'read' scope.

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

Input Schema

NameRequiredDescriptionDefault
agent_idsNoSpecific agent IDs to include. Omit to audit all agents.
period_daysNoAnalysis period in days (7-365)
include_methodologyNoInclude methodology notes and caveats for auditors

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.3
    • changedInput schema / properties / agent_ids / description
      Previous value: -"Specific agent IDs to include. Omit for full fleet audit."New value: +"Specific agent IDs to include. Omit to audit all agents."
  2. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real context beyond them: the required 'read' API scope and the intended audience/artifact (board reporting, compliance). It does not say anything about cost/runtime of running a full audit or how large the output is, which would matter for an aggregate report, so it stops short of the top score.

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?

Four short sentences, front-loaded with the verb and scope, then contents, then audience, then the exclusion and prerequisite. No filler and no repetition of the name or annotations.

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, the description compensates by listing what the report contains, which is exactly what an agent needs to decide whether to call it and how to present results. Combined with the auth prerequisite and the named alternative, nothing material is missing for a zero-required-parameter read tool.

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%, so agent_ids, period_days, and include_methodology are already fully documented in the schema. The description mentions per-agent output but adds no syntax, defaults, or interaction detail (e.g., how include_methodology affects the report) beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource ('Generate a comprehensive ROI audit report across your AI agents') and then enumerates the report contents: per-agent cost/revenue breakdown, attribution confidence scores, optimization opportunities, and risk flags. That enumeration plus the explicit contrast with per-agent ROI checks makes it unmistakable versus siblings like get_task_roi or get_attribution_report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives positive usage context ('Suitable for board reporting and compliance') and an explicit exclusion with a named alternative ('Do NOT use for quick per-agent ROI checks — use get_task_roi'). Both the when and the when-not are stated, so the agent can route without inferring.

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