Skip to main content
Glama

Verify Post-Quantum Agent Transaction

verify_pq_tx

Verifies hybrid classical and ML-DSA/SLH-DSA transaction envelopes against QoreGuard policy controls and optionally records authorized state to the tamper-evident audit ledger.

Instructions

Verifies a hybrid classical + ML-DSA-87/SLH-DSA signed transaction envelope against the active QoreGuard policy (anti-quantum-downgrade, spending caps, velocity windows, allowlist, monotonic nonce) and optionally commits the authorized state to the tamper-evident audit ledger.

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

Input Schema

NameRequiredDescriptionDefault
commitNoIf true, commits nonce/spend/audit state on ALLOW and records DENY attempts.
nowUnixNoOptional evaluation timestamp in UNIX seconds.
aiSignalNo
envelopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false and destructiveHint=false, and the description usefully adds that the commit side effect only fires on an ALLOW decision and touches the tamper-evident audit ledger. However, it omits the non-obvious behavioral consequences of a non-idempotent verifier: that a replay of the same envelope will be rejected by the monotonic nonce check, that DENY attempts are persisted, and what the caller receives back.

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?

A single front-loaded sentence that packs the verification scope, the policy checks, and the optional side effect with essentially no filler. It is dense — a short bulleted clause for the commit semantics and return shape would improve scannability — but nothing is redundant.

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?

This is a deeply nested, mutation-capable verification tool with no output schema and four parameters, and the description never says what a call returns (a decision object? deny reasons? an audit entry id?). Combined with the unexplained aiSignal input, an agent cannot predict the result of invoking it, which is the largest gap in the definition.

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 sits at 50%, and the description adds no meaning beyond the schema for nowUnix or the entire nested aiSignal object (riskScore/riskLevel/anomalyFlagged/source), which is the one input whose policy influence an agent most needs explained. Its only parameter-adjacent content, the optional commit behavior, merely restates the schema's own commit description.

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?

Names a specific verb (verifies) and resource (hybrid classical + ML-DSA-87/SLH-DSA signed transaction envelope) and even enumerates the policy dimensions checked (anti-quantum-downgrade, spending caps, velocity windows, allowlist, monotonic nonce). It does not contrast itself with siblings such as quote_policy_decision or simulate_quantum_downgrade_attack, so an agent cannot tell from this text alone which of those to prefer.

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 'optionally commits the authorized state' implies a dry-run mode via commit=false, which is the only usage steering present. There is no explicit when-to-use/when-not statement, no mention of when to prefer the sibling quote or simulation tools, and no prerequisites (e.g., that a policy must already be registered via register_agent_policy).

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