Skip to main content
Glama

Quote Policy Decision (Dry-Run)

quote_policy_decision
Read-onlyIdempotent

Evaluates a hybrid post-quantum transaction envelope pre-flight against spending caps, velocity windows, allowlists, selectors, and anti-downgrade rules to return a side-effect-free policy decision.

Instructions

Side-effect-free pre-flight evaluation of a hybrid post-quantum transaction envelope against active QoreGuard spending caps, rolling velocity windows, allowlist/selector firewall, and anti-downgrade rules.

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": {
      "envelope": "<envelope>"
    },
    "name": "quote_policy_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowUnixNo
aiSignalNo
envelopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds useful behavioral detail by naming the specific policy surfaces evaluated: spending caps, rolling velocity windows, allowlist/selector firewall, and anti-downgrade rules.

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?

The definition is a single front-loaded sentence with no filler. The dry-run scope and policy dimensions are presented efficiently, and every phrase carries domain-specific meaning.

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

Completeness2/5

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

For a complex nested tool with no output schema and 0% schema description coverage, the description is too thin. It omits what a 'quote' decision returns, the roles of optional nowUnix and aiSignal, and any prerequisite or failure behavior, leaving the agent without enough information to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% with three parameters, so the description must compensate. It only conceptually identifies the envelope parameter and says nothing about nowUnix or aiSignal, nor about the nested envelope fields such as signatureTier, intent, classical, or pqc.

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 states a specific verb (pre-flight evaluation) and resource (hybrid post-quantum transaction envelope) with a clear dry-run scope. It lists the exact policy areas checked, distinguishing it from verification or execution tools, though it does not explicitly name a sibling alternative.

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?

The phrase 'pre-flight evaluation' clearly signals when to use the tool: before committing or submitting a transaction. It gives context but does not explicitly state when not to use it or name an alternative such as verify_pq_tx.

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