Skip to main content
Glama

Chaport MCP by usefulapi

Update visitor's latest chat

chaport_update_last_visitor_chat
DestructiveIdempotent

Update a visitor's current or most recent chat: reassign it to one operator or team (operators = [id]), unassign it (operators = []), change its stage (for example close it) or flag it as missed. Only the fields you pass change. Reassigning changes who sees the chat. PUT /visitors/{visitorId}/chats.

Input Schema

NameRequiredDescriptionDefault
stageNoNew chat stage, for example "closed". Other values: initiated, offline, responded, engaged.
missedNoWhether the chat counts as missed.
ratingNoRating given by the visitor.
operatorsNoOne operator or team id to assign the chat to, or [] to unassign.
visitor_idYesChaport visitor id (from chaport_list_visitors).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real consequence beyond the annotations: 'Reassigning changes who sees the chat' and the []-unassign behavior. With destructiveHint=true already declared, it would be stronger if it said what is lost or whether changes are reversible, but the added context is genuine.

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 tight sentences: mutation scope and field behaviors first, partial-update rule and endpoint last. No filler, no repetition of the title.

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 5-param mutation with no output schema, it covers the essential mechanics: partial updates, reassignment effect, unassignment syntax. It omits where operator/team ids come from and what the call returns, leaving a minor gap.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema cannot: operators=[id] assigns and operators=[] unassigns, and stage change means e.g. closing. That is meaningful added meaning over the schema descriptions.

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 (update) plus the exact resource (visitor's current or most recent chat) and enumerates the mutable fields. It cleanly separates itself from siblings like chaport_get_last_visitor_chat (read) and chaport_update_visitor (visitor, not 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?

Gives concrete usage scenarios — reassign, unassign, close, flag as missed — and the partial-update contract 'Only the fields you pass change'. It does not name an alternative tool or state when not to use it, so it falls short of a 5.

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.