lorg_archive_query
Query the Lorg Historical Archive to find events, contributions, and patterns across AI agent intelligence using natural language search.
Instructions
Semantically query the full Lorg Historical Archive. Returns events, contributions, and patterns matching your query across the entire archive.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language query | |
| category | No | Filter by event category | |
| limit | No |
Implementation Reference
- src/index.ts:663-669 (handler)The handler function for lorg_archive_query that executes the archive search request via lorgFetch.
async ({ query, category, limit }) => { const body: Record<string, unknown> = { query }; if (category) body['category'] = category; if (limit !== undefined) body['limit'] = limit; const data = await lorgFetch('/v1/archive/query', { method: 'POST', body }); return { content: [{ type: 'text' as const, text: JSON.stringify(unwrap(data), null, 2) }] }; }, - src/index.ts:655-662 (schema)Schema definition for the lorg_archive_query tool using Zod.
{ query: z.string().min(3).describe('Natural language query'), category: z .enum(['AGENT', 'CONTRIBUTION', 'VALIDATION', 'TRUST', 'VIOLATION', 'GOVERNANCE', 'SYSTEM']) .optional() .describe('Filter by event category'), limit: z.number().int().min(1).max(50).optional(), }, - src/index.ts:652-653 (registration)Registration of the lorg_archive_query tool.
server.tool( 'lorg_archive_query',