Skip to main content
Glama

Qumge: Agent Capabilities & Skills

Quote Cap

quote_cap

Get a free, binding price quote for a metered Cap before calling it. This does not start provider work, reserve funds, spend a free call, or charge anything. Pass the complete input exactly as you will call it — the quote is bound to that input, the Cap, and your identity for 10 minutes. For capped_actual Caps also pass limits (per-line maximum quantities); add max_charge_micro_usd to hold spending under your own budget. Then pass the returned quote_id to call_cap with a stable idempotency_key. One quote can create one order; a new key cannot reprice an old order. Needs the user's qumge key.

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": {
      "slug": "<slug>",
      "operation": "<operation>",
      "input": "<input>"
    },
    "name": "quote_cap"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe Cap's slug, from search_caps.
inputYesThe complete input you intend to call with; validated against the operation's input_schema.
limitsNoFor capped_actual operations: line key → maximum quantity for this order. Required for every output-metered line, and never above the Cap's limit.
operationYesOperation name from get_cap.
qumge_keyNoOptional: your Qumge API key, for clients that cannot set an Authorization header. Takes precedence over the header. Never echoed back.
max_charge_micro_usdNoOptional lower budget. The quote fails if the authorized amount would exceed it.

Output Schema

NameRequiredDescriptionDefault
kindYes
limitsNo
noticeNo
currencyYes
quote_idYes
roundingNo
operationNo
expires_atYes
settlementNo
input_digestNo
measurementsNo
rate_versionNo
input_summaryNo
price_versionNo
minimum_appliedNo
amount_micro_usdYes
base_fee_micro_usdNo
free_call_possibleNo
resolved_dimensionsNo
max_charge_micro_usdNo
effective_input_digestNo
minimum_charge_micro_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, and the description earns that by clarifying there are no external effects ('does not start provider work, reserve funds, spend a free call, or charge anything'). It adds behavior beyond the annotations: a 10-minute binding window tied to input/Cap/identity, one-order-per-quote semantics, and an auth requirement ('Needs the user's qumge key').

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?

Front-loaded with what the tool is and its no-side-effect guarantee, then the parameter contract, then the handoff to call_cap. The four-way negation of side effects is deliberate emphasis for a commit-adjacent step, not padding.

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?

An output schema exists, so return details need not be spelled out, yet the description still names the key return value (quote_id) and how to use it. For a 6-parameter, nested-input tool in a multi-step paid-call workflow, nothing an agent needs to invoke it correctly is missing.

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%, so 3 is the baseline, but the description adds real meaning: `input` must be the exact call payload because the quote binds to it, `limits` applies only to capped_actual Caps, and `max_charge_micro_usd` is a personal budget ceiling. It does not explain slug/operation sourcing (schema already says search_caps / get_cap).

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 ('Get a free, binding price quote for a metered Cap') and immediately positions it relative to the sibling that consumes it ('before calling it', 'pass the returned quote_id to call_cap'). An agent can distinguish this from call_cap/test_cap without opening the schema.

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?

Explicitly prescribes the when ('before calling it') and the full downstream sequence ('pass the returned quote_id to call_cap with a stable idempotency_key'). It also states the exclusivity rule ('One quote can create one order; a new key cannot reprice an old order'), which prevents a specific misuse.

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