Skip to main content
Glama

Diagnose a chatbot

smartwebchat_diagnose
Read-only

Find out why a website chatbot does not answer or does not show up: checks access, the monthly message limit, credit, the language-model provider, allowed and refused origins, knowledge sources and whether anyone has chatted on the website. Returns findings with a code, a severity and a remedy. Read-only. Check complete before trusting an empty error list. Needs an API key. Also accepts an OAuth access token with scope assistant:read.

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": {
      "botId": "<botId>"
    },
    "name": "smartwebchat_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdYesID of the chatbot to diagnose (from smartwebchat_list_chatbots)

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 readOnlyHint=true and openWorldHint=false, and the description adds real context beyond them: authentication requirements (API key, or OAuth token with assistant:read scope), the finding shape (code, severity, remedy), and the warning about incomplete checks producing misleading empty error lists. The "Read-only" restatement duplicates the annotation, but the auth and result-interpretation details are substantive.

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 failure symptom is front-loaded and the list of checks is compressed into one dense sentence, followed by short sentences on return shape, safety, caveat, and auth. No filler, though the opening sentence is long and the "Read-only" clause is redundant against the annotations.

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?

There is no output schema, yet the description still specifies the return structure (code, severity, remedy) and how to read it. Combined with auth requirements and the single required parameter, an agent has everything needed to call and interpret this tool 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?

With a single fully documented parameter at 100% schema coverage, the schema already carries the semantics, and it even names the source tool for botId. The description adds no further meaning about the identifier format or constraints. Baseline 3 is appropriate when the schema does the work.

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 (diagnose/find out why) and resource (website chatbot failing to answer or appear), then enumerates the exact checks performed: access, monthly message limit, credit, LLM provider, allowed/refused origins, knowledge sources, and chat history. No sibling tool overlaps with this diagnostic role, so an agent can select it without opening any schema.

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 opening clause establishes the triggering condition clearly: a chatbot that does not answer or does not show up. It also adds a usage caveat — "Check complete before trusting an empty error list" — which tells the agent how to interpret results, and the schema routes botId to smartwebchat_list_chatbots. It stops short of naming explicit exclusions or alternatives for related lookups like service_info.

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