Skip to main content
Glama

Boatwork - Marine Businesses MCP

cancel_and_refund_booking

Mutation/readOnly:false, script-tier/no-model-token action. Cancel a paid booking and refund the customer in full. Requires the Admin role. Without confirm:true this returns a preview naming the customer, booking and amount; with confirm:true it cancels and refunds. Call get_booking first to verify the booking.

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": {
      "bookingId": "<bookingId>",
      "proAccessToken": "<proAccessToken>"
    },
    "name": "cancel_and_refund_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to cancel and refund. Omit to preview.
bookingIdYesFrom list_bookings or the owner.
proAccessTokenYesThe proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied the description carries the full burden, and it does most of that work: it declares mutation/readOnly:false, notes the script-tier/no-model-token execution path, states the Admin role requirement, and explains the preview-versus-execute behavior. It does not state whether the cancel/refund is reversible or what state the booking and payment end in, which is the remaining gap for a destructive tool.

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?

Six short clauses, each carrying distinct operational information, with the mutation flag and no-model-token status front-loaded. No sentence is redundant or restates only the tool name.

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 destructive, unannotated, no-output-schema tool, the description covers safety profile, role requirement, prerequisite call, and preview output. It would be complete at 5 if it described the post-confirm return or the irreversibility of the refund.

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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining what the preview returns (customer, booking, amount) and by tying bookingId verification to get_booking. The proAccessToken's 24-hour validity is left to the schema, keeping this below a 5.

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?

"Cancel a paid booking and refund the customer in full" names a specific compound verb and resource, and the qualifier "in full" implicitly separates it from partial_refund_booking and cancel_booking_to_credit. An agent can distinguish this destructive full-refund path from the credit and partial-refund siblings 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 Guidelines4/5

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

The description gives a clear two-step protocol: call get_booking first to verify, then omit confirm to preview or set confirm:true to execute. It also states the Admin role prerequisite. It stops short of explicitly naming when to prefer partial_refund_booking or cancel_booking_to_credit instead, so it falls one notch below full routing guidance.

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