Skip to main content
Glama

ViewChat

viewchat_log_message

Log a chatbot or AI agent message to ViewChat. API keys, tokens, and secrets in the text are automatically redacted to [secret detected] before storage.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "text": "<text>",
      "conversation": "<conversation>"
    },
    "name": "viewchat_log_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYesSender identifier (e.g. 'user@acme.com' or 'support-bot')
textYesMessage content
timeNoOptional Unix timestamp in milliseconds (defaults to current time)
groupsNoOptional list of group names to organize this conversation (e.g. ['customer-support'])
foreignIdNoOptional client message ID for deduplication
fromAvatarNoOptional HTTP(S) URL of the sender's avatar image
conversationYesConversation name or thread key (created automatically if it does not exist)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and closed-world, so the description doesn't need to restate safety. It does add genuinely non-obvious behavior: secrets in text are mutated to "[secret detected]" before storage — a write-time transformation an agent could not learn from annotations or schema. Auth requirements, rate limits, and duplicate-handling behavior are still undisclosed.

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?

Two tight sentences with no filler; the core action is front-loaded and the redaction caveat follows. Slightly more could be said about the write's effect without bloat, but nothing present is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter write tool with no output schema and idempotent=false, the description covers what happens to the payload but not what comes back (message ID? confirmation?) or how retries behave. Adequate but leaves an agent guessing about the result of the call.

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 every parameter is already documented, making 3 the baseline. The description adds only indirect meaning about the `text` field (that its contents are redacted before storage) and nothing about time, groups, foreignId, or fromAvatar.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ("Log") plus resource ("chatbot or AI agent message to ViewChat"), which clearly separates it from the read-only siblings (get_analytics, get_messages, list_conversations). It does not explicitly name or contrast against those siblings, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "Log a chatbot or AI agent message" implies the use case (recording conversational turns), but there is no explicit when-to-use vs when-not, no mention of alternatives, and no prerequisites. Usage must be inferred from the purpose statement alone.

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.