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
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter by category | |
| since | No | ISO date string to check for updates since |
Implementation Reference
- iia_mcp_server.ts:524-546 (handler)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.'}`, }, ], }; }
- iia_mcp_server.ts:282-298 (schema)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'], }, }, }, },
- iia_mcp_server.ts:315-316 (registration)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);