Skip to main content
Glama

DPX — Institutional Cross-Border Settlement

policy.create

Create a spending policy for an AI agent. Sets rules the agent must follow before any financial action: per-transaction ceiling, daily limit, hold threshold, blocked counterparties, allowed purposes, oracle stability gate. Once set, every payment by this agent is checked against the policy automatically via policy.check.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable policy name
agent_idYesStable identifier for the agent or org (wallet address, session prefix, org slug, etc.)
max_per_txNoUSD ceiling per single transaction. Payments above this are BLOCKED.
max_per_dayNoUSD rolling daily ceiling. Payments that would exceed this are HOLDed.
blocked_regionsNoISO 3166-1 alpha-2 country codes to block.
allowed_purposesNoIf set, only payments with a purpose in this list are allowed.
require_hold_aboveNoRoute to HOLD queue for human review if amount exceeds this threshold.
require_oracle_stableNoIf true, HOLD on CAUTION as well as UNSTABLE oracle status.
blocked_counterpartiesNoWallet addresses or LEIs to block.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only note readOnlyHint=false, idempotentHint=false, destructiveHint=false, so the description carries the burden of explaining behavior. It adds meaningful context: the policy defines rules and once set, every payment is automatically checked via policy.check. This goes beyond the structured annotations, though it does not mention authorization, overwrite semantics, or return behavior.

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 description is three sentences: first states the action, second lists the key policy rules, and third explains the automatic enforcement via policy.check. It is front-loaded with the main purpose and every sentence contributes value with no repetition or filler.

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

Completeness4/5

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

For a create operation with 9 parameters and no output schema, the description covers the main purpose, key configurable rules, and the automatic enforcement consequence. It does not specify the return value/created policy identifier or whether creating a policy replaces an existing one, but the rich parameter schema and stated behavior make the tool sufficiently functional for invocation.

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 100% and each parameter has a detailed description. The description's enumeration of per-transaction ceiling, daily limit, hold threshold, blocked counterparties, allowed purposes, and oracle stability gate maps directly to schema fields, but it adds no new semantic meaning beyond what the schema already provides.

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?

The description uses the specific verb 'Create' with a clear resource ('spending policy') and scope ('for an AI agent'). It enumerates the policy rules and distinguishes itself from the sibling tool policy.check by stating that payments are automatically checked via policy.check after creation.

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 description provides clear context: this tool is used to set spending rules before financial actions. It indicates that policy.check is the follow-up mechanism, but it does not explicitly discuss when not to use the tool or compare against policy.delegate, so no exclusion guidance is given.

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.

TDQS

A3.6/5.0
Disambiguation2/5

Many tools have overlapping purposes, such as multiple stablecoin routing options (route vs stability.stablecoin_route), several compliance pre-checks (flow_check, policy.check, mercury.ach_authorize), and numerous FX/stability tools (oracle.stability, stability.corridor, market.fx, fx.rate). Even with detailed descriptions, the boundaries are subtle and an agent could easily select the wrong tool.

Naming Consistency3/5

The dot-separated namespace convention is mostly consistent and readable, but verb vs noun usage varies (e.g., settlement.execute vs batch_settle vs route). Subscription tools also mix forms (intelligence.subscribe vs intelligence.subscription.get/delete), showing minor inconsistency.

Tool Count1/5

81 tools is an extreme count for a settlement server. Even accounting for the broad 'institutional' scope, the volume overwhelms the core purpose and creates a heavy cognitive load for agents, far beyond the typical 3-15 well-scoped tool set.

Completeness3/5

The core settlement lifecycle is well-covered (quote, execute, track, receipt, batch), but there are notable gaps such as missing policy update/delete and no receipt retrieval (only create). While many tangential domains are over-covered, certain CRUD operations are absent, creating dead ends.