Skip to main content
Glama

Open/continue an Alza chatbot session

chat_send

Start a support conversation on Alza.cz by sending the user's first message along with page context to retrieve chat configuration, welcome text, and messaging options.

Instructions

Open or continue an Alza chatbot session via chatbotapi.alza.cz /v1/chat (row W18): returns the chat configuration (configId, teamName, welcomeText, messages, allowTextInput) and showChat. Use to start a support-style conversation with page context (product detail, checkout steps). Pass page_type per the 2026-09-09 capture: 1=product detail, 5=Order1, 6=Order2, 24=Order4; initial_input carries the user's first message. Session-scoped, visitor-keyed write — no account state and no token required (like web_add_to_cart). Example: chat_send({page_type: 1, initial_input: 'Is this in stock?'}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryNo2-letter country code, e.g. 'CZ'.
referrerNoReferrer URL for the chat context, if known.
entity_idNoEntity id for the page context, if known.
page_typeYesPage context code: 1=product detail, 5=Order1, 6=Order2, 24=Order4 (2026-09-09 capture).
seo_prefixNoSEO prefix from the product page URL, if known.
manufacturerNoManufacturer name for the product-detail context, if known.
initial_inputNoThe user's first message text (initialInput).
commodity_codeNoAlza product code for the product-detail context (page_type 1).
commodity_typeNoCommodity type id for the product-detail context.
force_initializeNoForce a fresh chat initialization instead of reusing the session.
list_category_idNoProduct-context categories; the server requires the field — an empty array works without context.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errNo
msgNo
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses useful behavioral traits: it is a "session-scoped, visitor-keyed write," requires no account state or token, and returns chat configuration and showChat. This is consistent with readOnlyHint=false and idempotentHint=false, and adds practical context about authentication and session behavior that the annotations alone do not convey.

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 description is front-loaded with the core purpose and endpoint, then covers usage, key parameters, authentication behavior, and an example. It is efficient overall, though details like "row W18" and the explicit return-field list add only marginal value and could be trimmed.

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 an 11-parameter tool with a full input schema, output schema, and annotations, the description is reasonably complete: it explains the page_type mapping, the role of initial_input, session/no-token behavior, and gives a runnable example. It does not walk through every optional parameter, but the schema already covers those, so nothing critical is missing for correct invocation.

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 parameters in detail. The description reinforces the meaning of page_type and initial_input and provides a concrete example, but it does not add significant new semantics beyond the schema. A baseline of 3 is appropriate here because the structured schema carries the parameter-meaning burden.

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?

The description clearly identifies the action: "Open or continue an Alza chatbot session," names the specific endpoint, lists what is returned (chat configuration and showChat), and gives the intended use case (support-style conversation with page context). It is distinguishable from sibling tools like chat_navigation because the focus is on opening/continuing a session and retrieving chat state, not navigating within an existing chat.

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 description states when to use the tool: "Use to start a support-style conversation with page context (product detail, checkout steps)." It also clarifies that no token is required and that it is session-scoped. It does not explicitly name alternatives or exclusion cases, but the context is clear enough for an agent to select it correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.