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',
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. While 'full' implies scope and 'semantically' implies natural language processing, the description omits critical behavioral details: pagination behavior, performance characteristics (expensive operation?), sorting order, or whether results are real-time vs cached.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero waste. Front-loaded with the key differentiator ('Semantically') and immediately states scope ('full Lorg Historical Archive'). Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without output schema, describing return values (events, contributions, patterns) is necessary and present. However, given the complexity of 'semantic' search vs keyword search and the existence of sibling 'lorg_search', the description lacks sufficient context to prevent tool selection errors.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% (2 of 3 params described). The description reinforces that 'query' accepts natural language ('semantically query'), aligning with the schema's 'Natural language query' description. However, it adds no details about the undocumented 'limit' parameter or valid query patterns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific verb ('query') and resource ('Lorg Historical Archive') clearly, and specifies return types (events, contributions, patterns). However, it fails to differentiate from sibling tool 'lorg_search', which sounds functionally identical without additional context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides no guidance on when to use this tool versus alternatives, particularly 'lorg_search' or specific getters like 'lorg_get_contribution'. No prerequisites, exclusions, or workflow guidance mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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