Skip to main content
Glama

ClevrGo

Prepare a flight change or refund

clevrgo_request_flight_aftersales

Prepare a cancellation, a change / upgrade (改签 / 升舱) or a refund (退票) of one of the buyer's own flight orders, when the buyer asks for it. Use the order's reference from flight_orders (bf1). This opens that order's after-sales panel in ClevrGo, filled in with what the buyer told you; ClevrGo then shows the supplier's quote and the BUYER confirms it there. Nothing is cancelled, changed or refunded by this call: never say it is done. cancel is for an order not yet ticketed; change and refund are for a ticketed one. Pass reason only when the buyer gave one -- never pick it for them.

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": {
      "orderRef": "<orderRef>",
      "action": "<action>"
    },
    "name": "clevrgo_request_flight_aftersales"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYescancel an unticketed order; change (also for an upgrade to a higher cabin); refund a ticketed one.
reasonNoFor refund, only when the buyer said why: 0 personal reasons, 1 illness, 2 flight changed by the airline, 3 emergency / crisis, 4 visa refused.
orderRefYesThe flight order's reference from flight_orders, e.g. 'bf1'.
cabinClassNoFor change: only the cabin the buyer named (商务舱 = BUSINESS, 头等舱 = FIRST). When they just say upgrade / 升舱 without naming one, leave it out or ask -- never pick FIRST for them. One cabin's results say nothing about another's: no First fares does not mean no Business fares.
departDateNoFor change: the new departure date the buyer asked for, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only say it is a non-destructive, open-world write; the description supplies the behavior that actually matters: the call merely opens the order's after-sales panel pre-filled with what the buyer said, ClevrGo then surfaces the supplier quote, and the BUYER confirms there. The explicit warning 'never say it is done' prevents a serious false-success report and goes well beyond the annotation set.

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?

Purpose and the critical 'nothing happens yet' caveat are front-loaded, and nearly every clause carries operational weight. The one redundancy is the 'bf1' example and part of the reason guidance, which the schema already covers, but it is minor and does not bloat the definition.

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?

There is no output schema, and the description compensates by explaining exactly what the call produces (a pre-filled after-sales panel, followed by a supplier quote and a buyer-side confirmation). For a 5-parameter, prepare-only tool with no return schema, nothing an agent needs in order to call it safely is missing.

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 coverage is 100% and the field descriptions already carry the cabin-class caution, the refund-reason enum meanings, and the YYYY-MM-DD format. The description's parameter guidance (pass reason only when the buyer gave one, never pick it for them) largely restates what the schema already documents, so it adds reinforcement rather than new meaning. Baseline 3 is appropriate for a fully documented schema.

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 names a specific verb family (prepare) and the exact resource (cancellation / change-upgrade / refund of one of the buyer's own flight orders), and it distinguishes itself from the sibling that supplies the input by pointing to flight_orders for the order reference. An agent can tell this apart from clevrgo_book_flight or clevrgo_flight_orders without opening any schema.

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

Usage Guidelines5/5

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

It states the trigger (the buyer asks for it), the prerequisite (order reference from flight_orders), and an explicit routing rule between the three actions: cancel for an unticketed order, change and refund for a ticketed one. It also states the boundary condition loudly -- nothing is executed here and the buyer confirms in ClevrGo -- so the agent knows what not to claim.

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.

Resources