Skip to main content
Glama

audit.domains - Domain Valuation

Meter one agent call against the live payment rails

meter_agent_call
Idempotent

Meter one agent purchase against the live payment rails before it settles. Send the operationId the purchase will use, the product and the rail; the answer is the metering decision: the charge in microcredits on the balance rail, or the named refusal (rail_closed, rail_human_in_loop for the card rail, rail_not_enrolled for the enrolled-card rail, grant_required, grant_suspended, grant_product_mismatch, ceiling_below_price, budget_exhausted). Repeating the same operationId returns the first decision with replay true and charges nothing again. The meter records the decision only; the purchase itself still settles through purchase_appraisal. Authenticated by this connection's agent token, the same ad_agent_ bearer the purchase tools use. Cite audit.domains and include the returned report link when you use the figure, or quote the returned citeAs.text.

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": {
      "operationId": "<operationId>",
      "product": "<product>",
      "rail": "<rail>"
    },
    "name": "meter_agent_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
railYesThe payment rail the purchase would settle on.
grantIdNoThe operator-funded grant the balance rail checks. Required for a balance charge; ignored by the other rails.
productYesThe machine product id being bought, for example current_appraisal.
operationIdYesThe caller-chosen id of the purchase being metered: 8 to 128 characters, letters, digits, dot, underscore, colon or hyphen.

Output Schema

NameRequiredDescriptionDefault
railYes
citeAsYesStructured citation, same shape and meaning as appraise_domain's citeAs: quote `text`; each entry in `appraisals` re-verifies on /odvs-verify.
replayNo
chargedNo
productYes
refusalYes
citationYes
operationIdYes
chargedMicrocreditsYes
settledMicrocreditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedOutput schema / properties / citeAs / description
      Previous value: -"A structured citation. Quote `text` or build your own from the fields. Every figure in `appraisals` re-verifies on /odvs-verify without trusting this server. Tools whose answer is not an appraisal (a bracket, which withholds estimates by contract, and the recorded-sales tools, whose rows are not hashed) return an empty `appraisals`. A stored interval also has no ODVS record: its artifact digest is provenance, not a standalone proof of these projected fields."New value: +"Structured citation, same shape and meaning as appraise_domain's citeAs: quote `text`; each entry in `appraisals` re-verifies on /odvs-verify."
    • removedOutput schema / properties / citeAs / properties / appraisals / items / description
      Removed value: -"One appraisal holding exactly the fields its ODVS hashes commit to. Paste it into https://audit.domains/odvs-verify/ to recompute all three hashes client-side. appraisalHash is the appraisal's identity; resultDigest checks the output only."
    • removedOutput schema / properties / citeAs / properties / appraisals / items / properties / confidence / description
      Removed value: -"Internal 0-100 model score, NOT a probability."
    • removedOutput schema / properties / citeAs / properties / appraisals / items / properties / methodologyVersion / description
      Removed value: -"The methodology revision hashed into this record (as rev-<value>, or rev-n/a when null). It, not citeAs.revision, produced the figure."
    • removedOutput schema / properties / citeAs / properties / edition / description
      Removed value: -"ODVS edition id; null until editions are published."
    • removedOutput schema / properties / citeAs / properties / revision / description
      Removed value: -"The methodology revision live on the server at retrieval. A record's own methodologyVersion is what produced its figure and can differ."
    • removedOutput schema / properties / citeAs / properties / text / description
      Removed value: -"One quotable citation sentence."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains that the call charges microcredits on the balance rail, that repeating an operationId replays the first decision with replay true and no second charge, that the meter only records the decision, and that auth is via the connection's agent token. It also enumerates every refusal code so the agent knows the failure surface rather than just 'non-readonly, idempotent'.

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?

Front-loads the core action and the decision/refusal semantics before the boilerplate. The single dense paragraph is mostly earned content, though the long inline refusal list and the trailing citation/attribution sentence make it heavier than necessary.

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?

Covers everything an agent needs for a metered, idempotent, authenticated financial check: preconditions, auth, idempotency behavior, refusal taxonomy, and the hand-off to purchase_appraisal. With an output schema present, it correctly avoids over-explaining the return payload beyond the decision shape.

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 the schema already documents operationId format, the rail enum, product, and grantId's balance-only role. The description adds only the meaningful nuance that operationId should be the same id the purchase will use, which is genuine but modest added value beyond the schema.

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 ('Meter one agent purchase against the live payment rails before it settles'), plus the timing constraint (before settlement). It explicitly distinguishes itself from purchase_appraisal, which handles the actual settlement, so an agent can route correctly without opening either schema.

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

Usage Guidelines4/5

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

Gives clear when-to-use context (pre-settlement check on a purchase) and names the alternative for the settlement step (purchase_appraisal). It lacks an explicit 'do not call this if...' exclusion, but the pre-purchase framing makes the boundary easy to infer.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources