Skip to main content
Glama

Check configuration, credentials and permissions

lw_doctor
Read-onlyIdempotent

Diagnose Liquid Web MCP configuration, credentials, API permissions, connectivity, clock skew, and blocked tools; run first or after auth, permission, or network errors to get warnings and next steps.

Instructions

Health check for configuration, credentials and API permissions. Use first, and whenever a tool fails with an auth, permission or network error. Works without credentials. Reports the safe config view (no secrets), credential presence per context, an API ping per context with latency, clock skew (warns over 300 s), an Account/User/permitted check of every API method the registered tools use, which tools are blocked by gates or permissions, and warnings with next steps. Checks one context if given, otherwise every configured context (up to 10).

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": "lw_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoCheck only this context. Omit to check all configured contexts.
check_permissionsNoRun the Account/User/permitted check (default true). Set false for a faster ping-only check.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, yet the description adds substantial behavioral context: it works without credentials, never exposes secrets ('safe config view'), checks up to 10 contexts by default, warns on clock skew over 300 s, and returns warnings with next steps. This is exactly the kind of operational detail an agent needs before calling a diagnostic tool.

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?

Purpose and usage triggers are front-loaded, and the later enumeration of checks is dense but each item earns its place as a reportable output. The single long sentence listing seven checks could be broken up for readability, but there is no filler or repetition.

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?

For a multi-context diagnostic with a rich output schema, the description covers scope (one vs all, max 10), preconditions (works without credentials), and expected report contents. Since an output schema exists, it correctly avoids re-explaining return values while still telling the agent what a run will verify.

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 both parameters are already documented, including the default-true behavior of check_permissions. The description adds one piece of meaning not in the schema: the cap of 10 contexts when checking all, plus the one-vs-all scoping rule. That is a modest but real enhancement over the structured fields.

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 opens with a specific verb+resource: 'Health check for configuration, credentials and API permissions.' It then enumerates exactly what is inspected (config view, credential presence, API ping with latency, clock skew, permitted-method checks), which lets an agent distinguish it from siblings like lw_contexts or lw_server_credentials without opening a 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?

Usage is stated explicitly: 'Use first, and whenever a tool fails with an auth, permission or network error.' That is clear when-to-use guidance. It lacks an explicit when-not or named alternative, so it falls short of a 5, but the trigger conditions are unambiguous.

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

Deploy Server

Other Tools