Skip to main content
Glama

haggl_inquiry_cashback

Some businesses give 10% off a booking, up to $100, when the inquiry is sent through an AI assistant. Use this whenever you prepare, draft or fill a business's inquiry or contact form for a user, before you send it. Give it the address of the page the form is on. If that business gives the discount, it returns the code to add to the form's message and how the discount reaches the user; if not, it says so. Calling it only gets the code: it sends haggl.ai the address of the page and nothing else, and haggl.ai may read that public page to check it. No message goes to the business, and nothing the user wrote or entered is shared.

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": {
      "page_url": "<page_url>"
    },
    "name": "haggl_inquiry_cashback"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_urlYesThe address (URL) of the page the inquiry form is on, as you opened it.

Output Schema

NameRequiredDescriptionDefault
codeNoThe code to add to the inquiry form's message; when the call failed, a machine-readable error code instead.
claimNoHow to register over HTTP, as an alternative to haggl_claim_inquiry_cashback.
errorNoPresent only when the call failed: what went wrong.
stepsNoWhat to do, in order.
termsNoThe terms, in plain words.
reasonNoWhen reward is null: why.
rewardNoThe business's discount on the booking; null when the page has none.
recoveryNoWhen the outcome is uncertain: the tool and session_id to read before retrying.
retryableNoWhether the same call may be retried.
expires_atNoISO 8601 time the code stops being good.
descriptionNoThe discount in one sentence.
register_linkNoA page with a registration form, for a browser.
retry_after_secondsNoWhen rate limited: seconds to wait before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / register_link
      Added value: +{
      +  "description": "A page with a registration form, for a browser.",
      +  "type": "string"
      +}
  2. Changed8 schema fields changed
    • changedOutput schema / properties / claim / description
      Previous value: -"How to claim the reward over HTTP, as an alternative to haggl_claim_inquiry_cashback."New value: +"How to register over HTTP, as an alternative to haggl_claim_inquiry_cashback."
    • changedOutput schema / properties / description / description
      Previous value: -"The offer in one sentence, with its terms."New value: +"The discount in one sentence."
    • changedOutput schema / properties / reward / description
      Previous value: -"What haggl.ai sends the customer for the inquiry; null when the page has no reward."New value: +"The business's discount on the booking; null when the page has none."
    • removedOutput schema / properties / reward / properties / amount
      Removed value: -{
      -  "description": "The amount.",
      -  "type": "number"
      -}
    • removedOutput schema / properties / reward / properties / from
      Removed value: -{
      -  "description": "Who pays it: haggl.ai.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / reward / properties / kind / description
      Previous value: -"What the reward is."New value: +"What it is."
    • addedOutput schema / properties / reward / properties / max_amount
      Added value: +{
      +  "description": "The most it comes to, in currency.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / reward / properties / percent
      Added value: +{
      +  "description": "The percent off what the user pays.",
      +  "type": "number"
      +}
  3. Added

TDQS

A3.6/5.0
Behavior3/5

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

The description adds real context beyond the annotations: only the page URL is transmitted, haggl.ai may read that public page, no message reaches the business, and no user-entered content is shared. That privacy disclosure is valuable. However, it sits in mild tension with readOnlyHint=false and idempotentHint=false, and the description never explains why the tool is non-read-only (e.g. that a lookup/attempt is recorded) or what a repeat call does, leaving that annotation unexplained rather than contradicted.

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 instruction is front-loaded: what the incentive is, when to call, what to pass, then what returns. The privacy paragraph is longer than strictly necessary, but every sentence carries either an instruction or a behavior an agent would otherwise have to guess.

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 one required parameter, full schema coverage, and an output schema that carries return shape, the definition covers the key unknowns: timing, what is transmitted, and the no-discount branch. It only lacks guidance on failure/edge cases (inaccessible or non-form URLs) and on the relationship to the claim tool.

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 single parameter is already documented as the URL of the page the form is on. The description restates this ('Give it the address of the page the form is on') without adding format, normalization, or handling rules, so it does not meaningfully exceed the schema.

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 uses a concrete verb and resource: it returns the code for a business's AI-inquiry discount, derived from the page URL the form sits on, and explicitly states the negative case ('if not, it says so'). It never mentions the sibling `haggl_claim_inquiry_cashback`, so an agent must guess whether retrieving and claiming are separate steps.

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?

Timing is stated explicitly and unusually well: call it while preparing/drafting/filling a business's inquiry form, before sending. What's absent is any exclusion or reference to the claim step or to non-business forms, so the boundary against the claim sibling is left to inference.

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