Skip to main content
Glama
rp4

IIA-MCP Server

by rp4

get_document_updates

Track updates to IIA documents by category and date to stay informed on standards, guidance, topics, and glossary changes.

Instructions

Check for recent updates to IIA documents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoFilter by category
sinceNoISO date string to check for updates since

Implementation Reference

  • The main handler function that implements the get_document_updates tool logic, filtering documents by lastUpdated date and optional category, sorting by recency, and formatting the results.
    private async getDocumentUpdates(since?: string, category?: string): Promise<any> { const cutoffDate = since ? new Date(since) : new Date(Date.now() - 30 * 24 * 60 * 60 * 1000); // 30 days ago const updates = Array.from(this.documentIndex.entries()) .filter(([_, metadata]) => { if (category && metadata.category !== category) return false; return new Date(metadata.lastUpdated) > cutoffDate; }) .sort((a, b) => new Date(b[1].lastUpdated).getTime() - new Date(a[1].lastUpdated).getTime()); const formattedUpdates = updates.map(([filePath, metadata]) => `**${metadata.title}** (${metadata.category})\nUpdated: ${new Date(metadata.lastUpdated).toLocaleDateString()}\nFile: ${filePath}` ).join('\n\n'); return { content: [ { type: 'text', text: `Recent updates since ${cutoffDate.toLocaleDateString()}:\n\n${formattedUpdates || 'No recent updates found.'}`, }, ], }; }
  • Defines the input schema and metadata for the get_document_updates tool in the ListTools response.
    name: 'get_document_updates', description: 'Check for recent updates to IIA documents', inputSchema: { type: 'object', properties: { since: { type: 'string', description: 'ISO date string to check for updates since', }, category: { type: 'string', description: 'Filter by category', enum: ['standards', 'guidance', 'topics', 'glossary'], }, }, }, },
  • Registers the tool handler by dispatching to getDocumentUpdates method in the CallToolRequestSchema switch statement.
    case 'get_document_updates': return this.getDocumentUpdates(args.since, args.category);

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