Skip to main content
Glama

Conduit Agentic Commerce

Payment mandate (AP2)

payment_mandate
Destructive

AP2 spend mandates. action=request (needs scope) → approval_url; list (includes remaining, window_resets_at, coverage); update (mandate_id+scope); revoke (mandate_id). update NEVER approves. Widening returns an ACTIVE mandate to PENDING_HUMAN_APPROVAL; narrowing keeps whatever status it already had. monthly_cap is a rolling 30-day window from create. Same category set as a live mandate replaces it at approval and keeps this period's spend. No covering mandate at checkout is handoff, not an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoSpend limits — required for action=request and action=update
actionYesrequest = create mandate (needs scope); list = enumerate; update = change scope (needs mandate_id+scope); revoke = revoke (needs mandate_id)
expiresNoOptional ISO-8601 expiry, e.g. 2026-12-31T00:00:00Z
agent_idYesOwning agent id
mandate_idNoMandate id required for update/revoke
session_tokenNoSession token from agent_authenticate — required whenever agent_id is passed

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintNo
nextNo
errorNo
detailNo
statusNo
appliedNo
mandatesNo
mandate_idNo
approval_urlNo

TDQS

A4.8/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond the annotations: status changes on widening vs narrowing, the rolling 30-day meaning of monthly_cap, replacement semantics for identical category sets, and the handoff-not-error behavior for missing coverage. These are exactly the non-obvious behaviors an agent needs to predict consequences correctly.

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 dense but well-organized: action menu first, then critical behavioral caveats, then the rolling-window definition, then replacement semantics, then the handoff clarification. Every sentence earns its place and the material is front-loaded for quick action selection.

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?

Given the tool's complexity (6 parameters, nested scope object, enum actions, output schema present), the description covers the essential semantics: action requirements, approval behavior, window semantics, and edge-case handling. The output schema handles return values, so nothing necessary for correct invocation is missing.

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

Parameters5/5

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

Although the schema already documents all parameters (100% coverage), the description enriches their meaning: monthly_cap is tied to a rolling 30-day window from creation, scope carries status-transition implications, and update's effect on approval state is explicitly called out. This goes well beyond the baseline expected for fully documented schemas.

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 opens with 'AP2 spend mandates' and immediately enumerates four specific actions (request, list, update, revoke), each with its required inputs and expected result. This clearly identifies the resource and the operations, and the action-specific details prevent confusion with other payment-related tools.

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 gives explicit action routing: request needs scope, update needs mandate_id+scope, revoke needs mandate_id. It also warns that update NEVER approves, giving clear selection guidance within the tool. It does not explicitly contrast with alternative sibling tools, but no sibling appears to overlap with spend mandates.

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.9/5.0
Disambiguation4/5

Most tools map to a distinct resource/action, and the descriptions explicitly call out boundaries (e.g., agent_notify targets Hub users while agent_outreach targets external addresses). A few closely related pairs such as supply_delivery/supply_details and order_events/order_track could still cause misselection despite the clarifying notes.

Naming Consistency4/5

Tool names follow a clear lowercase snake_case resource-prefix pattern across agent_, order_, payment_, and supply_. The pattern is not perfectly uniform because some names are noun-only (agent_organization, payment_methods, supply_details) and order_update_status is a longer compound.

Tool Count4/5

At 19 tools, the set is slightly above the ideal range, but the count is justified by four distinct subdomains: agent identity/communication, orders, payments, and supply. No obvious filler tools are present.

Completeness4/5

The surface covers the main commerce workflow well: agent setup/auth, search and delivery probes, order execution/tracking/feedback/disputes, and payment mandates/methods. Minor gaps like no agent deletion, no payment-method disable, and no standalone order-detail tool are workable or arguably out of scope.

Resources