get_related_documents
Locate relevant documents and implementation guidance for a specific topic or standard using the IIA-MCP Server, ensuring accurate audit compliance and resource access.
Instructions
Find documents related to a specific topic or standard
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeGuidance | No | Include implementation guidance documents | |
| topic | Yes | Topic or standard to find related documents for |
Implementation Reference
- iia_mcp_server.ts:453-473 (handler)The core handler function that executes the get_related_documents tool. It searches for documents related to the given topic using searchDocuments and filters out guidance documents if includeGuidance is false.private async getRelatedDocuments(topic: string, includeGuidance: boolean = true): Promise<any> { const results = await this.searchDocuments(topic, undefined, 20); if (!includeGuidance) { // Filter out guidance documents const filteredResults = results.content[0].text.split('\n\n---\n\n') .filter(section => !section.includes('(guidance)')) .join('\n\n---\n\n'); return { content: [ { type: 'text', text: filteredResults, }, ], }; } return results; }
- iia_mcp_server.ts:243-261 (registration)Registration of the get_related_documents tool in the ListTools response, including name, description, and input schema.{ name: 'get_related_documents', description: 'Find documents related to a specific topic or standard', inputSchema: { type: 'object', properties: { topic: { type: 'string', description: 'Topic or standard to find related documents for', }, includeGuidance: { type: 'boolean', description: 'Include implementation guidance documents', default: true, }, }, required: ['topic'], }, },
- iia_mcp_server.ts:246-260 (schema)Input schema defining the parameters for the get_related_documents tool: topic (required string) and includeGuidance (optional boolean).inputSchema: { type: 'object', properties: { topic: { type: 'string', description: 'Topic or standard to find related documents for', }, includeGuidance: { type: 'boolean', description: 'Include implementation guidance documents', default: true, }, }, required: ['topic'], },
- iia_mcp_server.ts:311-312 (handler)Dispatch case in the CallToolRequest handler that routes to the getRelatedDocuments method.case 'get_related_documents': return this.getRelatedDocuments(args.topic, args.includeGuidance);