Skip to main content
Glama

haggl.ai

haggl_get_negotiation

Read-onlyIdempotent

Read the canonical state, current offer version, guidance and permitted actions of an existing negotiation. Use after human changes, reloads, transport switches or uncertain results; this does not open another session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesExisting negotiation session id.

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.
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.
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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds meaningful behavior beyond that: it returns canonical state plus permitted actions (routing-relevant), and explicitly states it does not open another session, clarifying that no side effects occur.

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, zero waste. The return contents are front-loaded and the usage triggers and non-side-effect note follow immediately; nothing needs trimming or reordering.

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-value structure need not be spelled out, and the description still summarizes what comes back (state, offer version, guidance, permitted actions). Combined with the when-to-use triggers and no-side-effect note, the definition is complete enough for the agent to call it 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?

Only one parameter (session_id) with 100% schema description coverage, so the schema fully documents the input. The description says 'existing negotiation' which confirms it must reference a prior session, but adds no format or syntax detail beyond the schema. 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?

Specific verb ('Read') plus resource ('negotiation'), and it enumerates what is returned: canonical state, current offer version, guidance and permitted actions. It also distinguishes itself from siblings by stating 'this does not open another session,' clearly separating it from haggl_start_negotiation.

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?

Gives concrete when-to-use triggers ('after human changes, reloads, transport switches or uncertain results') that tell the agent this is a refresh/re-sync call. It does not name specific alternative sibling tools for those scenarios, but the context is unambiguous.

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