Skip to main content
Glama

diagnostics

Read-only

Read bounded, redacted session logs with cursor pagination and dropped-event accounting to track missed entries.

Instructions

Read bounded redacted diagnostics with cursor and dropped-event accounting.

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": {
      "session_id": "<session_id>"
    },
    "name": "diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNo
streamNoall
severityNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real value beyond that by disclosing that output is bounded and redacted and that dropped events are accounted for, but it says nothing about auth/session requirements or what the response entries look like.

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 sentence with no filler, and the key traits (bounded, redacted, cursor, dropped-event accounting) come before any subordinate detail. It is dense but efficient; slightly more expansion of the cryptic 'dropped-event accounting' phrase would help without bloat.

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

Completeness2/5

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

For a five-parameter tool with 0% schema description coverage and no output schema, the definition is too thin: the required session_id is unexplained, the stream taxonomy is undocumented, and the shape of returned diagnostic entries is never described. It identifies the tool but not enough to call it confidently without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all parameter meaning. It only gestures at cursor-based pagination and bounded results ('cursor', 'bounded'); the required session_id, the stream enum values, severity format, and limit bounds are all left entirely to the raw schema without semantic explanation.

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?

Names a specific verb and resource ('Read ... diagnostics') and adds qualifying attributes (bounded, redacted, cursor-based, dropped-event accounting). It is clear what the tool does, but it does not distinguish itself from siblings like status, inspect, or doctor, which an agent might otherwise pick for similar ends.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives such as status, inspect, or doctor, nor any prerequisite such as needing an active session. The agent must infer usage from the name alone.

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