Skip to main content
Glama

Ask

ask
Read-onlyIdempotent

Answer plain-language incident questions by finding the described Graylog error, tracing it across services, and showing the interpretation and query used so it can be corrected.

Instructions

Answer a plain-language question such as 'why did checkout fail on prod this morning?': finds the error the question describes, follows its trace across services, and states what it understood (environment, period, kind of error, the team's terms) and the query it ran, so it can be corrected. What is asked, the environment, time phrases in Vietnamese or English, the glossary's terms and codes are read by rule; a reading that is only a guess is said to be one, and a question too vague is asked back with the ways it could be meant. Needs no model. When the user has configured a provider, it is asked only for what the rules left open, and gets the redacted question and, unless the environment forbids it (provider_data), redacted error text of 250 characters each; never raw logs.

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": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceNoInstance from describe, e.g. 'payment/prod'; the default when omitted
questionYesThe question in the user's own words, in any language

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses substantial behavior: rule-based parsing of question, environment, time phrases, and glossary terms; explicit statement that guesses are labeled as guesses; clarifying questions for vague input; and no model required. It also documents exactly what leaves the system when a provider is configured — redacted question and up to 250 characters of redacted error text, gated by provider_data, never raw logs — which is privacy-relevant behavior annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, and almost every clause carries real information, but the prose is dense and run-on, packing rule behavior, privacy rules, and provider gating into two long sentences. The redaction/character-limit detail is valuable yet hard to scan, so structure costs readability without much wasted content.

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, so the description must convey what comes back; it does so qualitatively by stating that the tool reports its interpretation (environment, period, error kind, glossary terms) and the query it ran, which lets an agent self-correct. Combined with the readOnly annotation and full schema coverage, this is close to complete, though the exact response shape and how to act on the echoed query remain unspecified.

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?

With only two parameters and 100% schema description coverage, the schema already carries the semantics, including the instance format example 'payment/prod' pulled from describe. The description adds contextual meaning about what the question may contain (time phrases in Vietnamese or English, the team's glossary terms and codes), but no per-parameter formatting or defaults. Baseline 3 is appropriate.

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 gives a concrete verb and resource: answer a plain-language question by finding the error it describes and following its trace across services, with an example question. An agent can tell this is natural-language investigation rather than a raw query tool. It never names or contrasts with close siblings like root_cause or search_logs, so the differentiation is implicit rather than stated.

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 the framing ('answer a plain-language question such as ...') and by the note that overly vague questions are asked back with possible interpretations, which hints at the expected input quality. There is no explicit statement of when-not to use it or which sibling to pick for structured queries, so guidance remains inferred.

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