Skip to main content
Glama
srewoo

needle-mcp

by srewoo

plan_investigation

Plan an investigation from a bare session, request, or trace ID by classifying its shape, listing vendor spellings, identifying which sources can answer, and suggesting a search window.

Instructions

START HERE when the user hands you a bare identifier — a session id, request id, trace id, or correlation id — with no logs yet. Classifies the identifier's shape, returns every vendor spelling it may appear under, names which configured sources and coverage surfaces can answer for it, and suggests a time window (widened when the id looks async). Use correlate_ids instead once you already have log snippets in hand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYes
environmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It reveals meaningful behavior: classification, vendor spellings, source mapping, and time-window widening for async ids. It stops short of explicitly stating whether any underlying source queries are executed or whether the operation is strictly read-only, leaving a small but not critical gap.

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?

The description is tight and front-loaded. The first words 'START HERE' immediately signal the primary use case, the middle sentence enumerates the tool's outputs efficiently, and the final sentence names the alternative. No filler or tautological phrasing exists.

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?

There is no output schema and no annotations, yet the description covers the main triggering scenario, the outputs, and the key sibling. The only notable gaps are the undocumented environment parameter and the lack of an explicit statement that the tool does not perform direct source queries, preventing a perfect score.

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 0%, so the description must compensate. It richly explains the required identifier parameter with examples like 'session id, request id, trace id, or correlation id.' However, the optional environment parameter is never mentioned, so its role and accepted values remain unclear.

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 clearly states what the tool does: it classifies the identifier's shape, returns vendor spellings, names answering sources and coverage surfaces, and suggests a time window. It also distinguishes itself from the sibling correlate_ids, so an agent can tell them apart without opening schemas.

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?

It opens with an explicit trigger condition: 'START HERE when the user hands you a bare identifier... with no logs yet.' It also gives a clear alternative path: 'Use correlate_ids instead once you already have log snippets in hand,' which is direct guidance for choosing among siblings.

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