Skip to main content
Glama

haggl.ai

haggl_start_negotiation

Start a price negotiation with a vendor. Returns contextual guidance, current permitted actions and a new session with a session id. No customer-profile selection is required. Skip this tool if REST initialization already returned a session; pass that session.id directly to haggl_submit_offer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
askNoOptional requested products, quantities or service, in the same shape as the haggl_submit_offer ask. Supply known context upfront.
dataNoOptional available buyer context; together with ask, requests an opening quote in this same call.
haggl_idNoOptional: the user's haggl ID from haggl_create_haggl_id, so this offer and its code are kept with their other offers.
vendor_idYesVendor id from haggl_list_vendors, a haggl-vendor meta tag, or a haggl-negotiate URL.

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.
vendorNoThe merchant this session negotiates with.
catalogNoHow to name exact products: a store catalog or a campaign catalog. Search it with haggl_search_catalog.
sessionNoThe new session.
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.
how_it_worksNoThe negotiation flow, step by step.
protocol_urlNoProtocol documentation.
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

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: it returns contextual guidance, current permitted actions, and a new session id, and states no customer-profile selection is needed. It does not mention auth requirements or rate limits, keeping it just short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the core purpose, then the return shape, then the routing rule. Efficient overall, though describing the return payload is somewhat redundant given an output schema exists, so it slightly exceeds the minimum needed.

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 4-param, nested-object tool with full schema coverage, complete annotations, and an output schema, the description supplies purpose, return summary, a precondition, and the alternative flow. It is essentially complete; only deeper operational details (auth/limits) are absent, which is acceptable here.

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% with 4 well-documented parameters, so the schema already carries the parameter meaning. The description only adds the 'no customer-profile selection' constraint, which is marginal beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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+resource ('Start a price negotiation with a vendor') and explicitly separates itself from a named sibling by instructing the agent to skip it and pass session.id to haggl_submit_offer when REST init already returned a session. An agent can distinguish this from the other negotiation siblings without opening schemas.

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?

Gives an explicit when-not condition ('Skip this tool if REST initialization already returned a session') and the concrete alternative action (pass session.id directly to haggl_submit_offer). It also clarifies a precondition ('No customer-profile selection is required'), leaving little 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