Skip to main content
Glama
srewoo

needle-mcp

by srewoo

query_generic_source

Query adapters.yaml sources via config-templated REST calls when no vendor MCP covers them.

Instructions

Query a source declared in adapters.yaml via a config-templated REST call. Use ONLY when no vendor MCP (Datadog/Splunk/Loki/etc.) already covers this source — prefer your own connected MCPs first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
startYes
cursorNo
paramsYes
sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It reveals the tool is a config-templated REST query, but does not state whether it is read-only, how pagination/cursor works, what the response looks like, or what failures/errors may occur. Too much behavior is left undisclosed for a tool with zero annotation support.

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 concise sentences, front-loaded with the core purpose and immediately followed by the critical usage constraint. Every sentence earns its place with no redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers purpose and tool selection but leaves essential invocation context missing: parameter semantics, cursor/pagination behavior, expected request shape, and return format. With no annotations and no output schema, this is insufficient for an agent to call the tool confidently on its first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description provides no explanation of source, params, start, end, or cursor. The params object is open-ended (additionalProperties: true), so an agent has no idea what keys or value formats to supply. The description does nothing to compensate for the schema's silence.

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 states a specific action ('Query') and a specific resource ('a source declared in adapters.yaml'), plus the mechanism ('config-templated REST call'). This clearly distinguishes the tool from siblings like list_generic_sources and makes its scope unambiguous.

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 gives an explicit when-to-use rule: 'Use ONLY when no vendor MCP (Datadog/Splunk/Loki/etc.) already covers this source' and tells the agent to prefer connected MCPs first. This is direct, actionable routing guidance with no ambiguity.

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