Skip to main content
Glama

Confirm a Permit Reservation

confirm_reservation
Destructive

Step 2 of 2: with the code the visitor got by email, Madeira Fun signs them in and books exactly what start_reservation described. The answer gives order_id and status_token. The reservation is not paid: madeira.fun then emails the government's PayPay link, and the visitor must pay the permit fee to the government within 24 hours, or before the start time if that is sooner, or it lapses. Safe to retry: calling it again with the same reservation_token returns the same order and never books twice (also after a lost answer). At most 5 reservations per email per day through apps.

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": {
      "reservation_token": "<reservation_token>",
      "code": "<code>"
    },
    "name": "confirm_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code from the madeira.fun email, digits only.
reservation_tokenYesThe reservation_token start_reservation returned, unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior1/5

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

The description is behaviorally rich — unpaid booking, government PayPay link emailed afterwards, a 24-hour (or start-time, if sooner) payment deadline before lapse, and a per-email daily cap. But it flatly contradicts the annotations: it promises 'never books twice' and 'returns the same order' on retry, while idempotentHint is declared false. An agent relying on the prose would assume idempotency the structured metadata denies.

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?

Front-loaded with the step number and core action, then the payment consequence, then retry safety and rate limit. Dense but nearly every clause carries needed information; the payment-deadline clause is slightly convoluted but earns its place.

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?

No output schema exists, yet the description names the return fields (order_id and status_token) and explains the post-call payment obligation the agent must communicate. Combined with retry behavior and rate limits, an agent has everything needed to invoke and interpret the result — apart from the idempotency inconsistency.

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 would be 3, but the description adds real meaning: reservation_token is 'the reservation_token start_reservation returned, unchanged' and the call 'books exactly what start_reservation described', telling the agent not to re-specify booking details. The emailed origin of the code is also restated meaningfully as a precondition.

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?

Opens with 'Step 2 of 2' and names the concrete action: with the emailed code, it signs the visitor in and books exactly what start_reservation described. That verb+resource framing, plus the explicit sequencing relative to start_reservation, lets an agent place it in the workflow without opening the 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?

States the prerequisite (the code the visitor got by email), the dependency on start_reservation's output, and the retry condition (same reservation_token after a lost answer). It also gives the operational ceiling of 5 reservations per email per day, so an agent knows both when to call it and when it will fail.

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