Skip to main content
Glama

haggl_hotel_cashback_stay

Idempotent

After the user checked out: send the hotel's post-stay email (final receipt or folio, thank-you for staying, or review request), exactly as received. It shows the stay happened, and haggl.ai sends the cashback within 2 business days.

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": {
      "haggl_id": "<haggl_id>",
      "claim_id": "<claim_id>",
      "raw_mime_b64": "<raw_mime_b64>"
    },
    "name": "haggl_hotel_cashback_stay"
  }
}

Input Schema

NameRequiredDescriptionDefault
claim_idYesThe claim_id from haggl_hotel_cashback_claim.
haggl_idYesThe user's haggl ID.
raw_mime_b64YesBase64 (standard or url-safe) of the original email, byte for byte (Gmail format=RAW, or Show original → Download original).

Output Schema

NameRequiredDescriptionDefault
codeNoPresent only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited.
nextNoWhat happens next.
claimNoA hotel cashback claim.
errorNoPresent only when the call failed: what went wrong.
recoveryNoWhen the outcome is uncertain: the tool and session_id to read before retrying.
retryableNoWhether the same call may be retried.
retry_after_secondsNoWhen rate limited: seconds to wait before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare this is a non-readonly, idempotent, non-destructive write; the description goes beyond that by explaining the downstream consequence ('haggl.ai sends the cashback within 2 business days') and the fidelity requirement. It doesn't cover failure modes or what happens if the email doesn't prove the stay, so it's not a 5.

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?

Two sentences, no waste, with the trigger condition front-loaded and the payoff (cashback timing) second. Every clause adds information an agent needs.

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?

An output schema exists, so return values needn't be explained, and the description supplies the key context an agent needs: when to call it and what it unlocks. Minor gaps remain around error/edge cases (e.g., email that doesn't prove the stay).

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 each parameter already carries a description, including the byte-for-byte requirement on raw_mime_b64 and the pointer to haggl_hotel_cashback_claim for claim_id. The description's 'exactly as received' largely restates the schema, so baseline 3 applies.

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?

States a specific verb and resource — send the hotel's post-stay email (receipt/folio, thank-you, or review request) — plus the timing ('after the user checked out'). This distinguishes it from the adjacent cashback tools (claim, get, quote) that also appear among the siblings.

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 'After the user checked out' clause gives a clear triggering condition, and referencing the email 'exactly as received' implies the input source. It stops short of explicitly naming a sibling alternative or stating when not to use this tool, which keeps it at a 4.

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