Skip to main content
Glama

Request Diagnostic Investigation

request_diagnostic_investigation

Start a deep diagnostic investigation into why something is not working the way the user expects (missing run proposals, unexpected signals, unexplained errors). Requires Write scope to persist and enqueue work. Runs in the background for a few minutes; the result is delivered as a notification and is readable via get_diagnostic_investigation. Use only after the deterministic reads (such as get_data_readiness) cannot explain the behavior. Returns deduplicated=true when an equivalent investigation is already running.

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": {
      "question": "<question>"
    },
    "name": "request_diagnostic_investigation"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYesThe user's question, verbatim plus any context you can add.
correlationIdNoCorrelation id from a failed request's error toast, if the user has one.
errorSignatureNoNormalized error signature from an error-invite message, e.g. "POST /api/v1/run-proposals -> 500". Pass verbatim when present.

Output Schema

NameRequiredDescriptionDefault
okNo
answerNo
statusNo
messageNo
shortcutNo
deduplicatedNo
investigationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that Write scope is required to persist and enqueue work, that execution is asynchronous (background for a few minutes), and that results arrive via notification. It also reveals deduplication behavior ('Returns deduplicated=true when an equivalent investigation is already running'), which explains why idempotentHint=false does not mean duplicate work is spawned.

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?

Front-loads what the tool does, then layers prerequisites, permissions, async behavior, and the dedup return in tight declarative sentences. No sentence is redundant or restates the title.

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?

Given a three-parameter tool with full schema coverage, an output schema, and annotations, the description supplies everything else an agent needs: when to escalate to it, the permission cost, the async timing, and where the result surfaces.

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 description coverage is 100%, so question, correlationId, and errorSignature are already well documented in the schema. The description adds no per-parameter guidance beyond what the schema states, so the baseline of 3 applies.

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?

States a specific verb and resource ('Start a deep diagnostic investigation') and immediately scopes it with concrete trigger examples (missing run proposals, unexpected signals, unexplained errors). It is clearly distinguished from siblings by naming the read-back tool (get_diagnostic_investigation) and the prerequisite deterministic read (get_data_readiness).

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

Usage Guidelines5/5

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

Gives an explicit gating rule: use only after deterministic reads such as get_data_readiness fail to explain the behavior. It also names where the result is retrieved, so the agent knows the full lifecycle rather than treating this as a synchronous query.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources