Skip to main content
Glama

Register Scoped Post-Quantum Agent Policy

register_agent_policy

Replaces the active QoreGuard policy with a scoped post-quantum policy for spending caps, velocity limits, allowlisted targets, and minimum PQ algorithm; returns its SHAKE-256 policy hash.

Instructions

Replaces the active QoreGuard policy with a new scoped post-quantum policy (spending caps, velocity windows, allowlisted targets, minimum PQ algorithm) and returns its deterministic SHAKE-256 policyHashHex and public demo identity metadata.

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": {
      "policyId": "<policyId>",
      "agentId": "<agentId>",
      "maxSingleTxUqor": "<maxSingleTxUqor>"
    },
    "name": "register_agent_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYes
networkNotestnet
policyIdYes
minPqAlgorithmNoml-dsa-87
maxSingleTxUqorYes
denylistedTargetsNo
allowlistedTargetsNo
registeredPqPubkeyHashHexNo
requireStrictSequentialNonceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive, closed-world operation; the description adds that the action replaces the currently active policy outright and that the result includes a deterministic SHAKE-256 hash and demo identity metadata. It does not disclose authorization requirements, what happens to the superseded policy or in-flight decisions, or whether replaying with the same policyId produces the same hash (relevant given idempotentHint=false). "Replaces the active policy" sits in mild tension with destructiveHint=false, but is not a clear contradiction.

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 dense sentence that front-loads the operation and ends with the return value; there is no filler. It is efficient, though the packed parenthetical mixes policy fields with return details and slightly muddies the structure.

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 9-parameter mutating tool with no output schema and zero schema descriptions, the description is too thin: most parameters are unexplained, prerequisites and side effects on the existing active policy are unstated, and the mismatch between "velocity windows" and the actual parameter set adds ambiguity. Calling out the returned policyHashHex is helpful, but overall the definition does not carry enough to call this correctly without guessing.

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% across 9 parameters, so the description must compensate and it only partly does: it names spending caps, allowlisted targets and minimum PQ algorithm, which map to maxSingleTxUqor, allowlistedTargets and minPqAlgorithm. Six parameters (agentId, policyId, network, denylistedTargets, registeredPqPubkeyHashHex, requireStrictSequentialNonce) get no explanation at all, and the mentioned "velocity windows" corresponds to no parameter in the schema, which risks misleading the agent.

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 ("replaces the active QoreGuard policy with a new scoped post-quantum policy") plus the kind of content the policy carries and what it returns, so an agent knows exactly what operation this is. It does not explicitly contrast itself with siblings such as quote_policy_decision or simulate_quantum_downgrade_attack, leaving that distinction to inference.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites (e.g. whether a policy must already exist or whether a PQ key must be registered first), and no pointer to alternative tools. The only implicit cue is the word "replaces", which hints this is a full overwrite rather than an incremental update.

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