Skip to main content
Glama

Get Diagnostics

get_diagnostics
Read-only

Report runtime state without calling PGS Catalog: build info, daily request budget usage, cache hits, and latency metrics to monitor health and avoid API overuse.

Instructions

Report runtime state without calling the PGS Catalog: build, upstream request budget (today's usage vs the daily cap), cache hits and tool latency metrics. Signature: get_diagnostics().

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already establish a safe read (readOnlyHint=true), so the description's main added value is disclosing that no upstream request is consumed and that the budget accounting is 'today's usage vs the daily cap' — real behavioral context an agent cannot get from the schema. A minor tension exists with openWorldHint=true, since a purely local state report would normally be closed-world, but the description does not directly contradict the annotation. Return contents are enumerated rather than left implicit, which is the right disclosure given no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler: the first front-loads what the tool reports and its key property (no catalog call), the second confirms the empty signature. Every clause carries information an agent needs.

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?

With no input parameters and no output schema, the description carries the full burden of describing the return payload, and it does so by naming the four metric families reported. Nothing required to call this tool correctly is missing.

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?

There are zero parameters, which sets a baseline of 4. The description reinforces this with the explicit signature 'get_diagnostics()', making clear the call is argument-free, but it adds no further parameter meaning because there is none to add.

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 pairs a specific verb ('Report') with a specific resource ('runtime state') and then enumerates the concrete payload: build, upstream request budget (today's usage vs the daily cap), cache hits, and tool latency metrics. The clause 'without calling the PGS Catalog' also separates it from every sibling, which are all catalog query tools (get_publication, get_score, search_scores, etc.), so an agent can identify it 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 Guidelines3/5

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

Usage is implied rather than stated: because it reports the request budget without touching the catalog, an agent can infer it is the cheap way to check remaining quota or debug latency before making calls. However, there is no explicit 'use this when...' clause, no stated exclusions, and no guidance on how often to poll or whether it should be called before/after other tools.

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