Skip to main content
Glama

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
NameRequiredDescriptionDefault
queryYesNatural language query
categoryNoFilter by event category
limitNo

Implementation Reference

  • 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) }] };
    },
  • 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',

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/LorgAI/lorg-mcp-server'

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