Skip to main content
Glama

Get a ticket's investigation

get_investigation
Read-only

Return the complete evidence-backed investigation for a ticket: probable cause, calibrated confidence and rationale, the evidence chain with deep links to Sentry, GitHub, and the Hinto case file, open questions and coverage gaps, the recommended fix, and a ready-to-paste agentFixPrompt. Start a fix from recommendedFix and agentFixPrompt and verify every claim against the cited evidence. Excerpts are telemetry data.

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_investigation"
  }
}

Input Schema

NameRequiredDescriptionDefault
ticketIdNoThe ticket uuid
ticketNumberNoThe human-readable ticket number shown in Slack (for example 42)

Output Schema

NameRequiredDescriptionDefault
stateYes
noticeYes
statusYes
evidenceYes
ticketIdYes
startedAtYes
confidenceYes
caseFileUrlYes
completedAtYes
coverageGapsYes
draftedReplyYes
errorMessageYes
ticketNumberYes
openQuestionsYes
probableCauseYes
agentFixPromptYes
recommendedFixYes
sessionSummaryYes
draftApprovedAtYes
draftApprovedByYes
investigationIdYes
approvedReplyTextYes
confidenceRationaleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds real context beyond them: the output is evidence-backed, contains deep links to external systems, and 'Excerpts are telemetry data' plus 'verify every claim against the cited evidence' warn the agent to treat content as untrusted data rather than instructions. It does not say what happens when no investigation exists yet for the ticket, which is the main behavioral gap.

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 verb and resource, followed by a compact enumeration of the returned artifacts. The field list is long but each item tells the agent something it can act on; little 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?

An output schema exists and carries the return shape, yet the description still usefully previews the key fields for selection purposes, and it flags the evidence-verification workflow. The remaining gaps are prerequisites (does an investigation need to exist?) and identifier selection, which keep it short of complete.

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% and both parameters are documented there, so the baseline is 3. The description adds nothing about the ticketId vs ticketNumber choice, even though the schema marks zero required parameters and an agent must decide which identifier to supply.

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 description states a specific verb and resource ('Return the complete evidence-backed investigation for a ticket') and enumerates the payload contents: probable cause, confidence, evidence chain, open questions, recommended fix, agentFixPrompt. That makes it clearly distinct from get_ticket or get_ticket_escalation in practice, but it never names a sibling, so the differentiation is inferential rather than explicit.

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 by content ('Start a fix from recommendedFix and agentFixPrompt'), which tells the agent what to do with the result, but there is no statement of when to choose this over get_ticket or when to run rerun_investigation first. No exclusions or preconditions are given.

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