Skip to main content
Glama
Metrx MCP Server

Metrx MCP Server

by metrxbots

Check Vendor Bill

metrx_check_vendor_bill
Read-onlyIdempotent

Reconcile an AI vendor's per-resolution bill against your own records: which billed units sort into matched, disputed (your ledger shows it reopened), unmatched, uncounted (a person rejected it) or outside coverage, and the disputed…

Instructions

Reconcile an AI vendor's per-resolution bill against your own records: which billed units sort into matched, disputed (your ledger shows it reopened), unmatched, uncounted (a person rejected it) or outside coverage, and the disputed amount. A pure function over the lines you pass: reads nothing, stores nothing, needs no key. Paste the bill lines and your ledger events.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "period": "<period>",
      "billed": "<billed>"
    },
    "name": "metrx_check_vendor_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
billedYesThe vendor's bill lines for the period.
ledgerNoEvery ledger event you hold for the vendor (reopens after the period still dispute).
periodYesThe billing period (from < to).
rejected_idsNoExternal ids your records show as rejected (a person overturned it).
resolved_idsNoExternal ids your records show as resolved by the agent.
covered_spansNoThe spans your records cover; omitted = nothing is covered.
import_rejected_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, but the description adds genuinely new operational facts: it is a pure function over supplied lines, reads nothing, stores nothing, and needs no key. That no-auth/no-side-effect disclosure is useful context beyond the annotation flags, though nothing is said about size limits or behavior when inputs conflict.

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?

Two sentences plus a short imperative: purpose and output categories are front-loaded, then the purity/no-key guarantee, then the input instruction. Nothing is repeated from the schema and no sentence is wasted.

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?

With seven parameters, nested objects and no output schema, the description does the important work of sketching the return shape via the five sorting categories plus the disputed amount. It omits explanation of covered_spans and import_rejected_count, but the schema documents those, so the remaining gap is minor.

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 high (86%), so the schema carries most parameter documentation and the baseline is 3. The description still adds meaning by mapping inputs to outcomes: a disputed unit is one where 'your ledger shows it reopened' and an uncounted one is where 'a person rejected it', clarifying the roles of ledger events and rejected ids beyond the field descriptions.

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 gives a specific verb and resource ('Reconcile an AI vendor's per-resolution bill against your own records') and enumerates the exact output buckets (matched, disputed, unmatched, uncounted, outside coverage, disputed amount), so an agent knows precisely what the tool produces. It never names a sibling such as metrx_cost_per_resolution, so the differentiation is inferable from the reconciliation framing rather than stated.

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 is implied by 'Paste the bill lines and your ledger events' and by the reconciling framing, which tells the agent this is an offline audit step. There is no explicit when-not guidance, no statement of prerequisites relative to the sibling costing/review tools, and no mention of what to do when no ledger is available.

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