Skip to main content
Glama

Get Diagnostics

get_diagnostics
Read-only

Report runtime state like request budget, cache hits and latency without calling Open Targets. Use it to check daily API usage and tool performance.

Instructions

Report runtime state without calling Open Targets: 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.1.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true and openWorldHint=true; the description adds the materially useful detail that no upstream Open Targets request is made, so calling it does not consume the daily budget it reports on. It does not state whether the counters are per-process or per-session, and there is a mild tension with openWorldHint=true, but nothing here contradicts the annotations outright.

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?

Two sentences, front-loaded with the payload contents, with no filler. The trailing signature line restates what the empty input schema already shows and is the only sentence that does not earn its place.

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 zero-parameter, read-only diagnostic with no output schema, the description covers what an agent needs: it names the categories of runtime data returned and states that no external call occurs. It stops short of describing the return shape or units (for example how budget usage is expressed), which would have closed the remaining gap.

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?

The tool takes zero parameters, which is the baseline-4 case. The 'Signature: get_diagnostics()' line confirms the no-argument call but adds no meaning beyond the empty schema.

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 enumerates exactly what is reported: build, upstream request budget, cache hits, and tool latency. The qualifier 'without calling Open Targets' immediately separates it from the domain-query siblings, so an agent can tell what this tool returns without opening anything else.

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: an agent can infer it should call this to check server health, build version, or remaining request budget, but the description never states when to reach for it or how it differs from the similarly infrastructural sibling get_server_capabilities. No exclusions or prerequisites are given.

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