Skip to main content
Glama
metrxbots

Metrx MCP Server

by metrxbots

Run Cost Leak Scan

metrx_run_cost_leak_scan
Read-onlyIdempotent

Scan your agent fleet to identify 7 types of cost leaks, including idle agents and model overprovisioning, and get a scored report with fix recommendations and estimated monthly savings.

Instructions

Run a comprehensive cost leak audit across your entire agent fleet. Identifies 7 types of cost inefficiencies: idle agents, model overprovisioning, missing caching, high error rates, context bloat, missing budgets, and cross-provider arbitrage opportunities (covers anthropic, cohere, google, mistral, openai, xai). Returns a scored report with fix recommendations and estimated monthly savings. Supports output_format="json" for machine-readable output in CI/CD pipelines. Do NOT use as a continuous monitoring loop — use configure_alert_threshold for ongoing monitoring. Do NOT use for fixing leaks — use apply_optimization for one-click fixes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNoScan a specific agent instead of the entire fleet
include_low_severityNoInclude low-severity findings in the report
output_formatNoOutput format: "text" (default) returns a human-readable markdown report; "json" returns raw machine-readable JSON suitable for CI/CD pipelines and programmatic processing.text
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint, and idempotentHint. The description adds context about the 7 inefficiency types and output format options, but the behavioral safety is already well covered by annotations. The description does not contradict annotations.

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?

The description is a single, well-structured paragraph. It front-loads the main purpose, then lists inefficiencies, output description, and usage caveats. Every sentence adds value with no repetition.

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?

Given no output schema, the description sufficiently describes the return value (scored report with fix recommendations and estimated savings). It also explains the output format options and the scope of the audit. The description is complete for an agent to understand tool behavior.

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 coverage is 100% and each parameter has a clear description. The description adds value by explaining the purpose of output_format for CI/CD pipelines and clarifying that agent_id is for scanning a specific agent. This goes beyond the schema descriptions.

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 clearly states it runs a comprehensive cost leak audit across the agent fleet, identifies 7 specific inefficiencies, and returns a scored report with recommendations. It distinguishes itself from sibling tools like configure_alert_threshold and apply_optimization by explicitly stating what it does and does not do.

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?

Provides explicit guidance: 'Do NOT use as a continuous monitoring loop — use configure_alert_threshold' and 'Do NOT use for fixing leaks — use apply_optimization'. This clearly tells the agent when to use this tool and when to use alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metrxbots/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server