Skip to main content
Glama

haggl.ai

haggl_submit_offer

Request a quote using all context already available. Buyer data and evidence can be omitted; relevant additional context can be supplied later within the remaining rounds. Returns authorized terms or no offer, contextual guidance and permitted next actions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
askNoWhat the buyer wants; the offer then says exactly which items the discount covers. Store catalogs: { items: [{ product_handle, quantity }] }. Campaign catalogs (catalog.type "campaign"): { items: [{ variant_id, quantity }] } or { recipe_id }, required for a campaign offer. Otherwise describe the product or service, e.g. { product }.
dataNoOptional buyer context and consented evidence. Omit or use {} for an opening quote without evidence.
session_idYesSession id from haggl_start_negotiation or session.id from REST initialization.
expected_offer_versionNoOptional state.offer_version last read, to avoid submitting against a session changed by another actor.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoPresent only when the call failed: a machine-readable error code, e.g. quote_uncertain or rate_limited.
errorNoPresent only when the call failed: what went wrong.
offerNoThe merchant's offer for the requested items. Merchant engines may add fields.
roundNoThe round this quote answered.
stateNoCanonical negotiation state. Follow allowed_actions.
roundsNoEach round: the offer and when it was made.
statusNoSession status.
guidanceNoWhat this merchant values, as contextual guidance. Evidence is optional.
recoveryNoWhen the outcome is uncertain: the tool and session_id to read before retrying.
retryableNoWhether the same call may be retried.
vendor_idNoVendor id.
created_atNoISO 8601 time the session started.
expires_atNoISO 8601 time the session expires.
max_roundsNoMost quote rounds in this session.
next_stepsNoAfter acceptance: how the buyer redeems the offer (checkout_url, coupon_code, reference, expires_at, …).
session_idNoNegotiation session id.
current_offerNoThe merchant's offer for the requested items. Merchant engines may add fields.
current_roundNoRounds used.
data_feedbackNoWhich context fields were used, and which could improve the offer.
accepted_offerNoThe merchant's offer for the requested items. Merchant engines may add fields.
context_receivedNoThe buyer context fields received so far and their provenance.
rounds_remainingNoRounds left.
retry_after_secondsNoWhen rate limited: seconds to wait before retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare the safety profile (mutation, non-destructive, non-idempotent, closed-world), so the description's burden is lower. It still adds real value by describing outcomes ('Returns authorized terms or no offer, contextual guidance and permitted next actions') and the round-based context model, going beyond the structured fields.

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 core action in the first sentence, followed by two tight sentences covering optional inputs and returns. No filler, though the name/description mismatch ('submit_offer' vs 'request a quote') is a minor structural wrinkle.

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?

With an output schema present, return-value detail is already covered, and the description nonetheless summarizes the outcome shape and the negotiation-round model. Combined with 100% schema coverage and annotations, an agent has everything needed to invoke this correctly.

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 description coverage is 100%, so the schema already documents all four parameters in depth, including the nested ask/data shapes. The description touches on omitting `data` but adds no syntax or format beyond the schema, making the baseline 3 appropriate.

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 states a specific action ('Request a quote') and ties it to the negotiation flow with existing context. It is clear on its own but does not differentiate itself from siblings like haggl_accept_offer or haggl_get_offers, so an agent still needs the negotiation context to place it precisely.

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

Usage Guidelines3/5

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

It gives implied usage guidance ('Buyer data and evidence can be omitted; relevant additional context can be supplied later within the remaining rounds'), which helps an agent decide how to call it early in a session. However, it never states when to use this versus alternatives such as accept_offer or get_bids, leaving the choice 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