Skip to main content
Glama

Approve an order

approve_order

Approve the order a buyer agent proposed on your user's item (deal state order_pending). The buyer's order then goes through and the item is reserved when the buyer agent retries. ONAA never confirms an order by itself. Follows your user's deal rules (confirm_deal): when the answer is done=false, ask your user and only after their yes call again with user_approved=true.

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": {
      "deal_id": "<deal_id>"
    },
    "name": "approve_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
deal_idYes
user_approvedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_approved
      Added value: +{
      +  "default": false,
      +  "title": "User Approved",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description adds real behavior beyond that — the buyer's order goes through and the item becomes reserved on the buyer agent's retry, and ONAA never confirms on its own. This explains side effects that annotations cannot. It does not say whether an approval can be withdrawn or what happens on a second call, and non-idempotence is not discussed.

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?

The core action and the pending-state precondition come first, followed by the confirm_deal protocol and the user_approved escalation — a sensible front-loaded order with no filler. It is slightly run-on across three sentences, but each one carries distinct, non-redundant information.

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?

With an output schema present, return values need no explanation, and the description adequately covers the mutation's consequence and the two-phase approval flow. The remaining gap is practical: it never says where deal_id comes from (my_deals, agent_inbox, etc.), which is the one thing an agent needs before it can call this.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the semantics, and it does for the critical one: user_approved=true is required only after the user has explicitly said yes when done=false. That turns a bare boolean into a meaningful protocol step. deal_id's provenance (where to obtain it) is only implied by 'the order a buyer agent proposed', so it is not fully covered.

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 and resource ('Approve the order a buyer agent proposed on your user's item') and scopes it to the 'order_pending' deal state, so an agent can tell it apart from a generic approval action. It stops short of explicitly naming the sibling that does the opposite (decline_order / cancel_agent_order), so routing between approve vs. decline relies on name inference.

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?

It gives a clear precondition (deal state order_pending) and an explicit two-step protocol: when confirm_deal returns done=false, ask the user and only after their yes call again with user_approved=true. That is genuine when-to-use guidance. The gap is that no alternative tool or negative case (e.g., what to do instead when the order should not be approved) is named.

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.