Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Chatway: Omnichannel Customer Support. If you published it, claim ownership there.

Get Installation Code

get-installation-code
Read-onlyIdempotent

Return the ready-to-paste Chatway JavaScript snippet for the connected account. The installation ID is account-based and requires no widget selection. If the user asks for the code, show it immediately under the heading "Your Chatway installation code", with script_html in a copyable HTML code block, followed by the placement text. Keep installation_id and script_url out of that response unless the user asks for them. If the user asks to install Chatway, check the target website for an existing installation first, add the snippet only once, and verify that the widget loads afterward. If a different account’s installation is detected, confirm which account the user wants before replacing it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get-installation-code"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
placementNo
script_urlNo
script_htmlNoReady-to-paste script tag. Contains no secrets.
duplicate_checkNo
installation_idNoAccount installation ID. Not a widget ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description discloses the output format, which fields should be shown or hidden, duplicate-installation prevention, and account-conflict handling. This adds substantial behavioral context for a zero-parameter getter.

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 then moves into presentation and installation guidance in a logical order. It is somewhat longer than a minimal getter description, but each sentence contributes useful operational detail.

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?

The tool has an output schema, so the description need not detail return fields, and it already covers output presentation and edge cases. For a read-only, idempotent, zero-parameter tool, it provides complete guidance for correct invocation and response handling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no input parameters, so there is no parameter semantics to clarify; the rule baseline for zero-parameter tools is 4. The description does explain that the installation ID is account-based and requires no widget selection, which reinforces why no parameters are needed.

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 states a specific verb and resource: it returns the ready-to-paste Chatway JavaScript snippet for the connected account. It also clarifies the account-based scope with no widget selection, which distinguishes it from configuration or status-oriented siblings.

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 gives clear operational guidance for when the user asks for the code and when the user asks to install Chatway, including checking for existing installations and confirming account conflicts. It does not explicitly name alternative sibling tools such as get-installation-status, so it falls short of full alternative routing guidance.

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