Skip to main content
Glama

ask

Answers questions about a project's documentation and returns brief answers with verified path:start-end citations for reading the cited lines.

Instructions

Ask a question about the project's documentation.

Returns a brief answer and citations as path:start-end; read the cited lines yourself. A citation the server could not find in the current file is marked unverified. Each question is independent.

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
corpusNodefault
questionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.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 load and does substantial work: it discloses the return shape, tells the agent to read the cited lines itself rather than trusting the answer, and explains the unverified marker for citations not found in the current file. It omits whether the index can be stale or what happens when nothing matches, which would complete the picture.

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?

Short and front-loaded: the core purpose arrives in the first sentence, followed by output caveats. The trailing note about independent questions is a separate sentence that earns its place, and there is no filler.

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

Completeness3/5

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

Because an output schema exists, the definition need not explain return values, yet the added citation-format and unverified-marker notes are helpful. The gap is the undocumented `corpus` selector and the absence of any statement about index freshness or failure behavior, which matters for a retrieval tool.

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

Parameters2/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, and it only partially does: it clarifies that the question concerns the project's documentation and that questions are independent. The `corpus` parameter (defaulting to 'default') is never mentioned in the description and has no schema description, leaving the agent to guess what corpora exist and how they change results.

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?

States a specific verb and resource: ask a question about the project's documentation, and even characterizes the answer form (brief answer plus path:start-end citations). It does not explicitly distinguish itself from the siblings rebuild and status, so it falls just short of a 5.

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?

'Each question is independent' is real usage guidance, warning the agent not to rely on conversational follow-ups. However, there is no when-to-use guidance against alternatives (for example, rebuilding or checking status when docs are stale) and no statement of preconditions.

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

Deploy Server

Other Tools