Skip to main content
Glama

research

Read-onlyIdempotent

Break complex questions into sub-queries, run parallel searches, fetch sources, and synthesize a cited report for multi-source answers.

Instructions

Multi-step research on a complex question. Decomposes into sub-queries, searches in parallel, fetches sources, synthesizes a cited report. Beats chaining search + fetch manually for multi-source synthesis.

LLM-optional: with a synthesis LLM configured, the returned report is a written answer. Without one it returns a structured, cited brief (key_findings/highlights/sections) — YOU write the final answer from it; do not hand the user the raw structure as a weak result. For the best research quality a free Gemini API key (or any provider) is strongly recommended.

Key parameters:

  • question: the research question.

  • depth: 'quick' (~15s, 2 sub-queries) | 'standard' (~40s, 4 sub-queries, default) | 'comprehensive' (~80s, 7 sub-queries).

  • max_sources: override per-depth source count.

  • include_domains / exclude_domains: scope.

  • schema: optional JSON Schema — structures the report.

  • stream: progress notifications per phase.

  • max_tokens_out / include_full_markdown / citation_format: budget + shape controls.

Returns report (markdown with [N]), citations[], sources[], sub_queries[], depth, total_time_ms, sampling_supported, and brief with topics, highlights, key_findings, sections (overview.cross_references, comparison, gaps — gaps lists any named sub-entity research could not corroborate).

Input Schema

NameRequiredDescriptionDefault
depthNoResearch depth: quick (~15s), standard (~40s, default), comprehensive (~80s)
schemaNoOptional JSON Schema -- structure the report to extract these fields
streamNoSend progress notifications as each research phase completes
questionYesThe research question to investigate
max_sourcesNoOverride the default source count for the chosen depth (max 50)
max_tokens_outNoToken-budget cap on total output. Uses cl100k-base BPE; non-OpenAI tokenizer counts may drift ~5-15%. When both max_tokens_out and max_chars are set, max_tokens_out wins.
citation_formatNoCitation rendering style. 'numbered' (default) inline [N] markers; 'json' returns a citations[] array; 'anthropic_tags' wraps sources in <source id='...'> tags.
exclude_domainsNoExclude results from these domains
include_domainsNoOnly search results from these domains
include_full_markdownNoInclude full markdown body in the response. Default false on multi-result tools (returns evidence excerpts only); set true to restore.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1
  2. Removedv0.2.0
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), and the description adds substantial behavior beyond them: latency per depth, what changes when a synthesis LLM is or isn't configured, the fallback instruction that the caller must write the answer from `brief`, and a recommendation to set up a provider key. That is exactly the kind of degradation-mode disclosure annotations cannot express.

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?

Front-loaded with purpose and differentiator, then behavior, parameters, and returns in clearly separated blocks. The parameter block is somewhat redundant with a fully-covered schema, but given the absence of an output schema the returns paragraph is not padding.

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

Completeness5/5

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

With no output schema and a 10-parameter nested-input tool, the description carries its weight: it enumerates return fields (report, citations, sources, sub_queries, depth, total_time_ms, sampling_supported) and the `brief` sub-structure including the meaning of `gaps`. An agent knows what it will receive and how to consume it.

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 coverage is 100%, so the schema already documents all ten parameters; the description's 'Key parameters' list largely restates them. It does add sub-query counts per depth (2/4/7) that the schema omits, but that is marginal value over the schema baseline.

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?

States a specific verb+resource ('Multi-step research on a complex question') and immediately describes the pipeline steps (decompose, parallel search, fetch, synthesize a cited report). It explicitly distinguishes itself from sibling tools by naming the `search` + `fetch` chaining pattern it replaces.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Beats chaining `search` + `fetch` manually for multi-source synthesis' names the alternative and the condition that favors this tool, and the depth tiers give timing/scope guidance for choosing invocation cost. No explicit when-not case (e.g., single-fact lookups should use `search`), so it stops short of full routing guidance.

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