MCP Server

MCP Server

The Metrx MCP Server (@metrxbot/mcp-server) exposes cost intelligence tools via the Model Context Protocol that any MCP-compatible AI agent — Claude, GPT, Gemini, or custom agents — can call to track costs, optimize models, manage budgets, and see what each agent cost against what it produced.

Version: 0.5.0 · License: MIT · npm

The server runs on two transports, published from one source: the npm package over stdio (npx @metrxbot/mcp-server) and the hosted streamable-HTTP endpoint at https://metrxbot.com/api/mcp. Both expose the same tool registry, so everything on this page applies to either one.

Scopes. On both transports, every tool’s description ends with the API-key scope it needs (read, write or admin), except the public tools, whose description says instead that no key is needed (or that org: 'me' needs a read key). Budget changes, publishing a job contract and creating or stopping an experiment need an admin-scoped key, which an org owner or admin mints in Settings → Security → API Keys.


Quick Start

1. Get an API key

Sign up at app.metrxbot.com and copy your key from Settings → Security.

2. Test the connection

METRX_API_KEY=sk_live_xxx npx @metrxbot/mcp-server --test

3. Add to your MCP client

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "metrx": {
      "command": "npx",
      "args": ["@metrxbot/mcp-server"],
      "env": {
        "METRX_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "metrx": {
      "command": "npx",
      "args": ["@metrxbot/mcp-server"],
      "env": {
        "METRX_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Windsurf (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "metrx": {
      "command": "npx",
      "args": ["@metrxbot/mcp-server"],
      "env": {
        "METRX_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Hosted endpoint (no install). Clients that speak streamable HTTP can point at https://metrxbot.com/api/mcp directly and send the API key as Authorization: Bearer <key>. The tool list is the same as over npx.

Environment Variables

VariableRequiredDescription
METRX_API_KEYYesYour Metrx API key (sk_live_* or sk_test_*). Not needed with --demo (see below)
METRX_API_URLNoOverride API base URL (default: https://app.metrxbot.com/api)
METRX_TELEMETRYNoSet to 0 to turn off the CLI’s anonymous usage telemetry
METRX_TELEMETRY_DISABLEDNoSet to 1 to turn off telemetry (same effect as METRX_TELEMETRY=0)
DO_NOT_TRACKNoSet to 1 to turn off telemetry (the Console Do Not Track convention)

Without an API key

Three tools answer with no key at all, on both transports:

  • metrx_get_workforce_review with org: 'demo' (the default) reads the public Northwind sample review. org: 'me' reviews your own org and needs a read key.
  • metrx_draft_job_contract drafts a job contract from a template. It reads nothing and stores nothing.
  • metrx_check_vendor_bill reconciles a vendor’s per-resolution bill against the ledger lines you pass. It also reads nothing and stores nothing.

Without a key, tools/list shows only those three; with a key it shows every tool. Keyless calls are rate-limited per IP at 30 requests per minute.

Over stdio, run the same keyless mode locally:

npx @metrxbot/mcp-server --demo

On the hosted endpoint, https://metrxbot.com/api/mcp?set=workforce narrows tools/list to the manager’s-desk set: the five Workforce tools plus metrx_get_job_contract, metrx_set_job_contract, metrx_get_decision_queue and metrx_get_cost_summary. It is the only named set; without ?set you get the full registry. The manager’s desk plugin and its skills, which subscribe to that set, are documented on the Manager’s Desk page.


Tools Reference

All tools are prefixed with metrx_ in MCP (e.g., metrx_get_cost_summary).

Dashboard

metrx_get_cost_summary

Get a comprehensive cost summary for the AI agents your organization runs.

ParameterTypeDefaultDescription
daysnumber (1–90)30Number of days to include

Returns total spend, call counts, error rates, agent breakdown, revenue attribution, and optimization opportunities.

metrx_list_agents

List all AI agents in your organization.

ParameterTypeDefaultDescription
statusactive | idle | error | archived—Filter by status
categorystring—Filter by category (e.g., “sales”, “support”)

metrx_get_agent_detail

Get detailed information about a specific agent.

ParameterTypeDefaultDescription
agent_idUUIDrequiredThe agent UUID to look up

Optimization

metrx_get_optimization_recommendations

Get AI-powered cost optimization recommendations including model switching, token guardrails, provider arbitrage, and revenue intelligence insights. Read-only: it recommends, it does not change anything. To test a model switch, record an experiment with metrx_create_model_experiment.

ParameterTypeDefaultDescription
agent_idUUID—Specific agent to analyze (omit for every agent in the organization)
include_revenuebooleantrueInclude revenue-side insights

Budgets

metrx_get_budget_status

Get the current status of all budget configurations. Shows spending vs limits, warning/exceeded counts, and enforcement modes.

No parameters.

metrx_set_budget

Create or update a budget configuration for an agent or the entire organization.

Requires an org owner or admin. With an API key (how the MCP server authenticates) the key must hold the admin scope; a read or write key is refused with 403. The dashboard at https://app.metrxbot.com/settings/budgets works too.

ParameterTypeDefaultDescription
agent_idUUID—Agent to set budget for (omit for org-wide)
perioddaily | monthlyrequiredBudget period
limit_dollarsnumberrequiredSpending limit in dollars
warning_pctinteger (1–99)80Percentage that triggers a warning
enforcement_modealert_only | soft_block | hard_blockalert_onlyHow to enforce the limit

metrx_update_budget_mode

Change the enforcement mode of an existing budget, pause it, or ask to resume it. Requires an org owner or admin, like metrx_set_budget: the API key must hold the admin scope, and other keys are refused with 403.

ParameterTypeDefaultDescription
budget_idUUIDrequiredBudget configuration ID
enforcement_modealert_only | soft_block | hard_block—New enforcement mode
pausedboolean—Pause or resume the budget

Alerts

metrx_get_alerts

Get active alerts and notifications — cost spikes, error rate increases, budget warnings, and system health notifications.

ParameterTypeDefaultDescription
severityinfo | warning | critical—Filter by severity
unread_onlybooleantrueOnly return unread alerts
limitinteger (1–100)25Maximum alerts to return

metrx_acknowledge_alert

Mark one or more alerts as read/acknowledged.

ParameterTypeDefaultDescription
alert_idsUUID[] (1–50)requiredAlert IDs to acknowledge

metrx_get_failure_predictions

Predictive failure analysis for one agent, computed from its last 7 days of calls against a 30-day baseline (GET /api/agents/{agent_id}/optimization/predictions) — upcoming risk of error rate breaches, latency degradation, cost overruns, and traffic anomalies. Predictions are computed on request, not stored; fewer than 20 calls in the window returns none, which means too little data, not a healthy agent.

ParameterTypeDefaultDescription
agent_idUUIDrequiredThe agent to analyze
severityinfo | warning | critical—Filter by severity

Experiments

These tools call the agent-scoped routes under /api/agents/{agent_id}/experiments.

metrx_create_model_experiment

Record a draft A/B experiment comparing an agent’s current model (control) with a candidate (treatment). Creating it does not route any traffic. Needs an API key with the admin scope.

ParameterTypeDefaultDescription
agent_idUUIDrequiredAgent the experiment is for
namestring (1–100)requiredHuman-readable experiment name
treatment_modelstringrequiredCandidate model (e.g., “gpt-4o-mini”)
traffic_pctinteger (1–50)10Planned share of traffic for the treatment
control_modelstring—Defaults to the model the agent ran most often in the last 90 days
descriptionstring (≤1000)—Free-text description

metrx_get_experiment_results

List an agent’s experiments with sample counts, statistical significance and the winner when decided.

ParameterTypeDefaultDescription
agent_idUUIDrequiredThe agent whose experiments to list
statusdraft | running | paused | completed | cancelled—Filter by status

metrx_stop_experiment

Mark an experiment completed. Results are preserved; no model is switched. Needs an API key with the admin scope (stopping an experiment is as privileged as creating one). A completed or cancelled experiment cannot be restarted.

ParameterTypeDefaultDescription
agent_idUUIDrequiredThe experiment’s agent
experiment_idUUIDrequiredExperiment ID to stop

Cost Leak Detector

metrx_run_cost_leak_scan

Run a comprehensive cost leak audit. Identifies 7 types of cost inefficiencies: idle agents, model overprovisioning, missing caching, high error rates, context bloat, missing budgets, and cross-provider arbitrage opportunities.

ParameterTypeDefaultDescription
agent_idUUID—Scan a specific agent (omit for every agent in the organization)
include_low_severitybooleanfalseInclude low-severity findings
output_formattext | jsontextOutput format (json for CI/CD pipelines)

Attribution

metrx_attribute_task

Link an agent task/event to a business outcome for ROI tracking.

ParameterTypeDefaultDescription
agent_idUUIDrequiredAgent to attribute
event_idstring—Specific event/task ID
outcome_typerevenue | cost_saving | efficiency | qualityrequiredType of outcome
outcome_sourcestripe | calendly | hubspot | zendesk | webhook | manualrequiredSource of the outcome data
value_centsinteger—Outcome value in cents
descriptionstring—Description of the outcome

metrx_get_task_roi

Calculate return on investment for an agent — total costs, total outcomes, ROI multiplier, and breakdown by model and outcome type.

ParameterTypeDefaultDescription
agent_idUUIDrequiredAgent to calculate ROI for
daysinteger (1–365)30Number of days to analyze

metrx_get_attribution_report

Get an attribution report showing which agent actions led to business outcomes.

ParameterTypeDefaultDescription
agent_idUUID—Filter to specific agent
daysinteger (1–365)30Number of days to include
modeldirect | last_touch | first_touchdirectAttribution model

ROI Audit

metrx_generate_roi_audit

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

ParameterTypeDefaultDescription
daysinteger (7–365)30Analysis period
include_methodologybooleantrueInclude methodology notes for auditors
agent_idsUUID[]—Specific agents (omit for every agent)

Upgrade Justification

metrx_get_upgrade_justification

Generate an ROI report explaining why paying for Metrx makes sense based on current usage. Analyzes usage and optimization potential, then recommends Verify (a buyable per-verdict proof; no verdict, no charge) and Platform (priced to your managed LLM spend). Legacy Lite/Pro tiers are retired and never recommended.

ParameterTypeDefaultDescription
daysinteger (7–90)30Days to analyze

Upgrade Business Case

metrx_get_upgrade_business_case

Generate a personalized ROI business case for paying for Metrx. Uses real usage data to quantify optimization potential, then recommends Verify and Platform (legacy Lite/Pro tiers are retired and never recommended). Ideal for agents that received a 402 and want a proposal for their operator. Returns structured data plus a report.

The savings estimate, ROI multiplier (x) and payback period are null when the org has no current savings estimate; savings_unavailable_reason then says why. A missing estimate is never reported as $0.

ParameterTypeDefaultDescription
current_tierstarter | lite | prorequiredCurrent subscription tier
monthly_spendnumber—Known monthly LLM spend in cents
agent_countinteger—Number of active agents
primary_use_casecustomer_support | data_processing | content_generation | code_assistant—Primary use case

Health & Rankings

metrx_get_health_scores

Health score, grade, and data completeness for every agent in the organization. Scores are composite 0–100 values blending cost efficiency, ROI, error rate, quality drift, failure risk, and latency. Grades: A (80–100), B (60–79), C (40–59), D (20–39), F (0–19).

Takes no parameters.

metrx_get_rankings

Agents ranked by composite health score (0–1), with grade, data completeness and stale-score flags, plus an organization-wide average over agents that have data (GET /api/v1/agents/rankings). Use it to find top and bottom performers.

Takes no parameters.


Verify Billing

A verification is a causal verdict on whether a model switch holds quality on your own production traffic. The unit noun is “verification”. No verdict, no charge.

metrx_get_balance

How many verifications your organization has remaining. Free to call. Use it before metrx_verify_switch to know whether a purchase is needed first.

Takes no parameters.

metrx_buy_verification

Purchase one verification. Returns a Stripe checkout URL for a human (or payment-capable agent) to complete, plus claim instructions when the purchase is anonymous. This tool does not charge anything itself — payment happens on the returned URL.

ParameterTypeDefaultDescription
callback_urlstring (URL)—Optional post-checkout redirect base URL

metrx_verify_switch

Start a purchased verification: would candidate_model hold quality against prod_model on your production traffic? Async — returns a request handle immediately and never blocks; verdicts complete after enough of your own traffic accrues. Poll GET /api/verify/requests/{id}. If the balance is 0 this returns purchase guidance instead of spending.

ParameterTypeDefaultDescription
prod_modelstringrequiredCurrent production model
candidate_modelstringrequiredCandidate model to verify against it
agent_idUUID—Agent to scope the verification to
policy_idUUID—Routing policy to attach to

Loop Metrics

These tools return measured-value envelopes: every numeric leaf is {value, ci_low, ci_high, method, data_through}. CI fields are populated only where the source payload carries a real confidence interval — never fabricated. Raw counts use method: "count".

metrx_get_signal_readiness

Org-scoped signal-readiness diagnostics — per-agent event coverage, label lag, join rate, volume-vs-power (days to trial-ready at current volume), estimator eligibility with reasons, and blocked-on-signal proposals cross-linked to the failing readiness dimension: what still stands between the org and its first verified verdict.

Takes no parameters.

metrx_get_dashboard_headline

The three-number headline regime: measured spend, estimated savings, and verified savings-with-CI — each with basis, provenance, and tone. Values are micro-dollars (dollars = value / 1e6). Requires the optimization_model_v3 flag; while it is off the tool returns a clear next-step error.

The attributed_savings number is the engine’s stored savings estimate (definition v2, per model slice, capped at measured spend) with tone: 'estimate' and method stored_savings_total_v2_estimate. It is null when the org has no current estimate; treat null as unknown, never $0.

ParameterTypeDefaultDescription
days7 | 30 | 9030Window in days

metrx_get_report_snapshot

Fetch one frozen executive-report snapshot by its public share token (the token is the capability). Returns the stored snapshot only — never recomputed — plus its snapshot_hash and methodology_version integrity stamps.

ParameterTypeDefaultDescription
share_tokenstring (16–64 hex)requiredThe report share token

metrx_get_verdicts

Org-scoped current causal-verdict summaries — per (agent, prod model, candidate model, task category): verdict, evidence mode/regime, pair counts, non-inferiority, savings CI, judge model, expiry. Observational (:value) rows are flagged. Summaries only: no gate flags and no evidence-pack contents (those remain dashboard-session-only). Read-only twin route (/api/loop-views/verdicts).

Takes no parameters.

metrx_get_trials

Org-scoped pre-registered trial plans: regime, primary metric, margin, the frozen sample plan (pre-registration), models, status (registered/concluded/voided) and the concluding verdict id. Read-only.

Takes no parameters.

metrx_get_proposals

Org-scoped current candidate proposals: action type/class, D-class, status with blocked_reason, estimated impact, taxonomy axes. Config payloads (config_diff, guardrails, rollback mechanics) are deliberately excluded. Read-only.

Takes no parameters.

metrx_get_actuations

Org-scoped policy actuation records: action class, authority, actor and timing, rollback state with reason, acknowledgement state. Config contents are excluded. Requires the optimization_model_v3 flag (404 while off). Read-only.

Takes no parameters.

metrx_get_decision_queue

The operator decision queue, derived from real loop objects (approvable verdicts, blocked proposals, breaker events, expiring evidence). Read-only: approve/snooze/acknowledge actions remain dashboard-session-only and are not exposed to API-key callers. Requires the optimization_model_v3 flag.

Takes no parameters.

metrx_kb_prior_lookup

Per-cell (task verb × domain) summary of your own org’s current causal verdicts — the knowledge-base read side, v0. Strictly org-local: it never reads another org’s data, so a zero means your org has no stamped verdicts in that cell yet (unstamped_verdicts counts evidence that predates the taxonomy). Per cell: verdict counts by evidence mode (holdout_confirmed is the causal tier), observational (:value) counts, and the latest verdict summary with its savings CI. Allocation labels are deliberately absent in v0 — there is no cost-weight data to compute them from, so none are invented. If the org has more verdicts than the read bound, the response says it is truncated. Read-only twin route (/api/loop-views/kb-priors); needs the read scope.

Takes no parameters.


Job Contracts

A job contract is the per-agent statement of what the agent is for, what one unit of work is, what counts as acceptable, and what it may spend. Versions are append-only: publishing a new one supersedes the previous active version for the same workload. The contract is recorded, not enforced at runtime; nothing blocks spend or traffic on it.

metrx_get_job_contract

Read an agent’s job contract: its current version per workload (objective, unit of work, acceptance criteria, KPI target, budget, owner) and the full version history. An agent with no contract returns an explicit empty state with the next action. Read-only.

ParameterTypeDefaultDescription
agent_keystringrequiredThe agent_key (the X-Agent-ID string), not the UUID

metrx_set_job_contract

Publish a new version of an agent’s job contract. Needs an API key with the admin scope; any other key is refused with 403. Workload-policy terms are inherited from the current version unless supplied in policy_terms. For an agent with no version yet, set policy_defaults.

ParameterTypeDefaultDescription
agent_keystringrequiredThe agent_key (the X-Agent-ID string), not the UUID
workloadstringrequiredWorkload label the contract governs (e.g. extraction)
objectivestringrequiredWhat this agent is for, in your words
unit_of_workstringrequiredThe countable output (e.g. “one DDQ reviewed”)
acceptance_criteriaobject[] (1–20)requiredEach: metric, op (>=, >, <=, <, ==), threshold, window
kpi_targetobjectrequiredThe number the agent is held to over a rolling window
budget_dollarsnumberrequiredDeclared spend limit in dollars per period (recorded, not enforced; stored as micro-dollars)
budget_perioddaily | weekly | monthlyrequiredBudget period
ownerstringrequiredUser id or email accountable for this agent
notesstring—Optional note recorded on this version
policy_termsobject—Optional workload-policy terms (unit, eligible_traffic, primary_quality, permitted_actions, task_verb, domain, …). Omit to inherit
policy_defaultsinherit_workload_policy | observe_only—First version only: inherit_workload_policy copies the org’s workload-level policy (refused when none exists); observe_only grants no authority and needs task_verb and domain in policy_terms

Workforce (manager’s desk)

The Workforce tools read your AI agents the way a line manager reads a team: what each one’s job is, what it cost, what it produced, and what decision that calls for. Three of them are public (no API key needed); the plugin and skills built on this set are documented on the Manager’s Desk page.

metrx_get_workforce_review (public)

The weekly workforce review: every AI agent in the org as a line manager would read it (job, cost this window, outcomes, scorecard state, the candidate decision and why). org: 'demo' reads the public Northwind sample and needs no key; org: 'me' reads your own org and needs an API key with the read scope. Paged by cursor. Numbers are the same the review page shows.

ParameterTypeDefaultDescription
orgdemo | medemoWhich org to review
cursorstring—Next page: the cursor the previous page returned
limitinteger (1–100)25Agents per page

metrx_get_scorecard

One agent’s scorecard against its job contract: each acceptance criterion, the measured value, pass/fail, and the window it covers. Windows longer than your plan keeps are reported as insufficient, never shortened.

ParameterTypeDefaultDescription
agent_keystringrequiredThe agent_key you registered (not the row id)

metrx_draft_job_contract (public)

Draft a job contract for an AI agent from a template: objective, unit of work, acceptance criteria, budget, and the human baseline for ROI. Returns the body to publish plus validation errors and warnings. A pure function over your input: reads nothing, stores nothing, needs no key. Publishing the draft is a separate step (metrx_set_job_contract, admin scope).

ParameterTypeDefaultDescription
templatesupport_triage | sdr_qualification | internal_assistant | coding_patchrequiredWhich job template to start from
ownerstringrequiredThe person accountable for this agent (name or email)
agent_keystring—The agent the contract will be published for (informational)
workloadstring—Defaults to agent_key, else the template key
objectivestring—Override the template’s objective
unit_of_workstring—What one unit is, e.g. “resolved ticket”
budget_usdnumber—Budget in dollars per period
budget_perioddaily | weekly | monthly—Budget period
human_baselineobject—What the same unit costs when a person does it (needed for ROI)
notesstring—Free-text note

metrx_check_vendor_bill (public)

Reconcile an AI vendor’s per-resolution bill against your own records: which billed units your ledger shows as resolved, rejected, reopened, outside coverage, or unknown, and the disputed amount. A pure function over the lines you pass: reads nothing, stores nothing, needs no key.

ParameterTypeDefaultDescription
periodobjectrequiredThe billing period (from < to)
billedobject[]requiredThe vendor’s bill lines: id, external_id, billed_at, cost_usd, tier_name
resolved_idsstring[]—External ids your records show as resolved by the agent
rejected_idsstring[]—External ids your records show as rejected (a person overturned it)
ledgerobject[]—Your ledger events: external_id, event_type (solved, closed, reopened, public_comment), occurred_at
import_rejected_countinteger0Bill lines your import rejected before the check; echoed in the summary, and a nonzero value marks the result as withheld
covered_spansobject[]—The spans your records cover (from, to); omitted means nothing is covered

metrx_record_decision

Record a management decision about an agent (expand, re_specify, combine, retire) with a rationale. The record carries the governing contract version and the scorecard at decision time as evidence, and appears on the agent page. The same decision within 60 seconds is refused as a double submit; pass idempotency_key to make a retry return the first record. Needs an API key with the write scope.

ParameterTypeDefaultDescription
agent_keystringrequiredThe agent the decision is about
decisionexpand | re_specify | combine | retirerequiredThe decision
rationalestring (≥20 chars)requiredWhy; stored on the record and shown on the agent page
combined_into_agent_idUUID | null—For combine only: the agent (row id) this one folds into
idempotency_keystring—Retrying with the same key returns the first record instead of a second

Guided Prompts

MCP prompts are interactive templates that walk agents through multi-step workflows. Use them from any MCP-compatible client.

analyze-costs

Step-by-step cost analysis: fetches cost summary → lists agents → gets optimization recommendations → returns a prioritized breakdown.

ArgumentTypeDescription
daysstring (optional)Number of days to analyze (default: “30”)

find-savings

Discovers optimization opportunities: checks recommendations → runs cost leak scan → explains savings in dollars.

No arguments.

cost-leak-scan

Runs the 7-check waste audit: retry storms, oversized contexts, model mismatch, missing caching, idle agents, missing budgets, and arbitrage gaps.

ArgumentTypeDescription
agent_idstring (optional)Scan a specific agent by UUID, or omit to scan all

Rate Limiting

The stdio server enforces per-category rate limits (dashboard and agents 60 per minute, metrics 30, experiments, budgets, alerts and attribution 10, optimization 5, cost-leak scan 2 per 5 minutes, every other tool 30). The window is shared by all tools in a category. Hitting it returns an isError text result that names the tool and the seconds to wait. Keyless calls to the public tools are limited separately, per IP, at 30 requests per minute; a Metrx API key is not affected by that limit.

Error Handling

All tools return standardized error responses:

{
  "content": [{ "type": "text", "text": "Error message" }],
  "isError": true
}
StatusMeaningFix
401Invalid or expired API keyRegenerate key
403The key lacks the scope this tool needsThe error names the missing scope; mint a key with it in Settings → Security → API Keys
404Resource not foundUse metrx_list_agents to get valid IDs
429Rate limitedWait the number of seconds the refusal names
5xxServer errorRetry with backoff

Since 0.5.0 every refusal also carries a class, the same on both transports. Over MCP it is a JSON-RPC error whose data holds class, doc (the anchor on the Manager’s Desk page), user_message and, per class, retry_after_seconds, suggestions, fields or required_scope. Over the public HTTP routes it is an RFC 9457 problem body with the same facts.

ClassJSON-RPC codeHTTPCarries
auth_required-32001401
insufficient_scope-32002403required_scope
rate_limited-32003429retry_after_seconds
limiter_unavailable-32004503Retry-After header only
demo_unavailable-32005503retry_after_seconds
unknown_agent_key-32006404suggestions
invalid_params-32602400fields
transport_error-32007502
review_unavailable-32008503retry_after_seconds

Each class is explained, with its recovery, at /desk#errors.

Troubleshooting

“METRX_API_KEY not set” — Set the environment variable before starting:

export METRX_API_KEY=sk_live_your_key
npx @metrxbot/mcp-server

“Rate limit exceeded” — Your calls filled the tool category’s window (60, 30, 10, 5 or 2 per window, see Rate Limiting above). The MCP client will retry automatically.

“Agent not found” — The agent_id doesn’t exist. Run metrx_list_agents to get valid IDs.

Connection test fails — Run npx @metrxbot/mcp-server --test to verify your API key and network connectivity.