Skip to main content
Glama
rp4

IIA-MCP Server

by rp4

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
NameRequiredDescriptionDefault
includeGuidanceNoInclude implementation guidance documents
topicYesTopic or standard to find related documents for

Implementation Reference

  • 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;
    }
  • 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'],
      },
    },
  • 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'],
    },
  • Dispatch case in the CallToolRequest handler that routes to the getRelatedDocuments method.
    case 'get_related_documents':
      return this.getRelatedDocuments(args.topic, args.includeGuidance);
Install Server

Other Tools

Related 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/rp4/IIA-MCP'

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