Doc Search
The Doc Search tool browses and searches documentation shipped with installed Magento modules. It provides the AI client with usage guides, required workflows, and common pitfalls — information that cannot be auto-discovered through REST API schemas or database structure.
Modules supply documentation as markdown files placed in their etc/mcp/ directory. The tool automatically discovers all such files across all installed modules.
Access control
Access to this tool is controlled by the MCP Tools -> Built in -> System -> Module Docs ACL resource. Enable or disable it in System -> Permissions -> User Roles -> [Role] -> Role Resources.
When to use
When the Doc Search tool is enabled, the MCP server instructs AI clients to always search documentation first before calling any other tool. This ensures the AI client follows module-specific workflows and avoids common mistakes.
The typical workflow is:
- Search — find relevant documentation for the current task
- Read — retrieve the specific section with instructions
- Proceed — use other tools (REST API, GraphQL, etc.) following the documented workflow
Actions
The tool has three actions:
list
Discovers available documentation files. Can be filtered by module name or keyword.
| Parameter | Description | Type | Required |
|---|---|---|---|
action | Set to list | string | Yes |
module | Filter by module name (e.g., Mirasvit_McpTool) | string | No |
query | Filter by keyword (searches in title, description, and module name) | string | No |
get
Retrieves the table of contents (TOC) of a document, or the content of a specific section.
| Parameter | Description | Type | Required |
|---|---|---|---|
action | Set to get | string | Yes |
id | Document identifier in format Module_Name/filename (e.g., Mirasvit_McpTool/rest-api-filtering). | string | Yes |
section | Section identifier. Omit to get the TOC. Use ALL to retrieve the entire document. | string | No |
search
Full-text search across all documentation. Returns matching sections ranked by relevance, with context snippets around the matching keywords.
| Parameter | Description | Type | Required |
|---|---|---|---|
action | Set to search | string | Yes |
query | Search keywords | string | Yes |
doc | Document identifier to limit search to a specific document | string | No |
Recommended workflow
The best approach for using Doc Search:
- search — find relevant sections by keyword (e.g.,
action=search, query="bulk product import") - get with
idonly — retrieve the document's TOC to understand its structure - get with
idandsection— read a specific section's content
How modules provide documentation
Any Magento module can ship documentation for this tool by placing markdown files in its etc/mcp/ directory:
vendor/module-name/