Skip to main content
Glama

diagnostics

Read-only

Audit recent tool calls and errors, cache statistics, manifest freshness, and configuration to spot problems and confirm MCP server health.

Instructions

Audit recent tool calls/errors, cache statistics, manifest freshness, and config.

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

Input Schema

NameRequiredDescriptionDefault
log_linesNoMax log entries per section (1–200, default: 20)
include_logNoInclude recent activity-log entries (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.7

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's burden is lighter. It adds a useful scope signal by enumerating the four data areas collected, but says nothing about the window covered by 'recent,' whether the sections are truncated, or how expensive the aggregation is.

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?

A single front-loaded noun phrase with zero filler; each listed item is substantive. It would read slightly better as a complete sentence naming the audit intent plus what is returned, but nothing is wasted.

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 two-optional-parameter, read-only tool with no output schema, the description covers the essential question — what data comes back — by enumerating the four audit sections. Remaining gaps (recency window, output shape) are minor given the simplicity and the readOnly annotation.

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 coverage is 100% (log_lines with min/max/default, include_log with default), so the parameters are fully documented structurally. The description adds no meaning beyond that — it never references log depth or the ability to suppress log output, which is the schema's job here.

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?

The verb 'Audit' plus an enumerated resource list (tool calls/errors, cache statistics, manifest freshness, config) makes the tool's function unambiguous and clearly distinct from the sibling list/search/load tools. It stops short of naming a sibling, but the purpose is specific enough to be selected without opening the schema.

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?

Usage is only implied: 'Audit recent tool calls/errors...' suggests troubleshooting or health-check scenarios, but the description never says when to call this versus when not to, and offers no alternatives. An agent must infer the trigger condition on its own.

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