Skip to main content
Glama

mitracore — trust layer for agent work

Quote cost from usage

quote_cost
Read-onlyIdempotent

Compute the price from measured usage — tokens, CPU seconds, bytes, storage writes and external calls — instead of a flat price table.

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

Input Schema

NameRequiredDescriptionDefault
tokensNo
bytes_outNo
cpu_secondsNo
external_callsNo
storage_writesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds the important behavioral fact that the computation is driven by measured usage rather than a price table, but it says nothing about the pricing model, currency/units, rounding, or whether inputs are cumulative totals or per-period amounts.

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?

One sentence, front-loaded with the verb and contrasted against the alternative model — easy to scan. The metric enumeration partly restates schema property titles, which is slightly redundant, but it earns its place by clarifying the input semantics in a single read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. Still, for a calculation tool with five undocumended, all-optional numeric inputs, the description should say what units the metrics are in and what a zero/omitted value means; that gap is the main missing piece.

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 0%, so the description carries the burden — and it does enumerate all five metrics (tokens, CPU seconds, bytes, storage writes, external calls), implicitly establishing that each parameter is a usage quantity rather than a price. However, it adds no unit, scale, aggregation-window, or zero-default meaning beyond what the parameter titles already convey, leaving real ambiguity for a 5-parameter tool.

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 ('compute the price') and explicitly frames the input as metered usage: tokens, CPU seconds, bytes, storage writes, external calls. It also contrasts itself against a flat price table, which pins down what kind of costing it performs. It does not differentiate from any named sibling, though the sibling list (check_skill, suite_status, trust_report, verify_work) is unrelated in domain.

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?

The phrase 'instead of a flat price table' implies when this tool applies — usage-based pricing rather than fixed tiers — but no alternative tool or explicit exclusion is named. Nothing states prerequisites, what happens when all inputs are omitted (all default to 0), or in what scenarios the quote is meaningful versus degenerate.

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.