Ask Documentation Agent
ask_docs_agentAsk complex documentation questions in natural language and get AI-generated answers with source citations. Use for conceptual queries, multi-part research, and understanding how systems work.
Instructions
AI-powered semantic search for complex documentation questions. Best for conceptual queries, multi-part research, and understanding how systems work.
How to Use:
Find available references: Check MCP Resources list - each resource is a searchable documentation reference
Ask your question: Use natural language, be specific about what you want to understand
Default response includes synthesized answer + source citations (token-efficient)
Required: • store: Reference name from MCP Resources (e.g., "context", "Factory-AI/factory") • query: Your question in natural language
Optional (use when needed): • include_chunks: true - Show document excerpts for verification (increases tokens ~3x) • top_k: 1-20 - Number of excerpts when include_chunks=true (default: 3) • response_format: "json" - Structured output instead of markdown • metadata_filter: Advanced filtering using List Filter syntax
Effective Queries: ✅ "How does authentication work and why is it designed this way?" ✅ "What are the key differences between async and sync processing?" ✅ "Explain the rate limiting strategy and its tradeoffs" ❌ "authentication" (too vague) ❌ Single keywords without context
Finding References: All available documentation references are registered as MCP Resources. Use the Resources list to see what's searchable. Each top-level directory from ain3sh/docs is its own reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language search query | |
| store | Yes | Documentation reference name (directory path). Examples: 'context', 'Factory-AI/factory' | |
| top_k | No | Number of relevant document chunks to retrieve (1-20). Only relevant when include_chunks=true. | |
| include_chunks | No | Include retrieved document chunks in response (default: false). When false, only returns synthesized answer + sources. When true, includes chunk previews for verification. | |
| metadata_filter | No | Optional metadata filter using List Filter syntax (google.aip.dev/160). Example: 'author="Robert Graves" AND year=1934' | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |