Skip to main content
Glama

reef_ask

reef_ask
Read-onlyIdempotent

Ask a project question to receive a compiled codebase and database evidence packet with ranked contexts, findings, risks, open loops, and next actions.

Instructions

Primary Reef query engine facade: ask one project question and receive a compiled codebase plus database evidence packet with compact answer sections, ranked context, findings, risks, open loops, diagnostic freshness, a normalized evidence graph, and suggested next actions. Internally handles bounded quoted literal checks, materialized DB inventories, specific table/column/RLS/index/FK/trigger questions, where-used/impact questions, and verification-gate questions with typed summaries. Raw evidence defaults to compact: per-section item caps plus omission of the raw evidence-graph nodes/edges and heavy per-item provenance/diagnostic detail (node/edge and section totals are still reported, and long finding messages are clipped). Pass evidenceMode="full" for the uncapped raw evidence and full graph, or includeTrace=true for the decision trace and engine steps. Read-only; uses internal Reef/context modules instead of model-orchestrated MCP tool chains.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
questionYes
projectIdNo
focusFilesNo
projectRefNo
focusRoutesNo
budgetTokensNo
changedFilesNo
evidenceModeNo
focusSymbolsNo
includeRisksNo
includeTraceNo
maxOpenLoopsNo
freshnessPolicyNo
includeOpenLoopsNo
maxPrimaryContextNo
maxRelatedContextNo
risksMinConfidenceNo
includeInstructionsNo
includeVerificationNo
focusDatabaseObjectsNo
maxEvidenceItemsPerSectionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_hintsYes
answerYes
limitsYes
evidenceYes
questionYes
toolNameYes
warningsYes
freshnessYes
projectIdYes
queryPlanYes
projectRootYes
reefExecutionYes
Behavior5/5

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

The description expands on the readOnlyHint, explaining it is read-only and uses internal modules. It details default compact evidence mode, options to get full evidence (evidenceMode, includeTrace), and special question handling. This adds value beyond annotations.

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 description is long but front-loads the main purpose. It includes necessary details for a complex tool, but some sentences could be trimmed without losing clarity. Adequate but not maximally concise.

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?

Given the tool's complexity and no schema descriptions, the description covers the output format, evidence modes, and question type handling. It does not detail every parameter but provides enough context for effective use, especially with an output schema present.

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 coverage is 0%, so the description must compensate. It explains only a few parameters (evidenceMode, includeTrace) and the general question type. Most of the 22 parameters (e.g., projectId, focusFiles, budgetTokens) are not described, leaving incomplete understanding.

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 it is the 'Primary Reef query engine facade' and lists its output: a compiled codebase and database evidence packet with specific elements. It distinguishes itself by mentioning internal handling of various question types and its read-only nature, matching the annotation.

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?

The description implies this is the main query tool but does not explicitly compare to sibling tools like 'ask', 'reef_verify', or 'reef_where_used'. It lists question types it handles, suggesting when to use it, but lacks explicit when-not-to-use or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drhalto/agentmako'

If you have feedback or need assistance with the MCP directory API, please join our Discord server