Skip to main content
Glama
loda-lang

LODA API MCP Server

Official
by loda-lang

get_stats

Retrieve statistical overview of the LODA project's mathematical sequence data and computational results for analysis.

Instructions

Get statistics summary for the LODA project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_stats' tool. It calls the API client's getStats method and formats a textual response with the database statistics.
    private async handleGetStats() {
      const stats = await this.apiClient.getStats();
      return {
        content: [
          {
            type: "text",
            text: `Stats: Sequences=${stats.numSequences}, Programs=${stats.numPrograms}, Formulas=${stats.numFormulas}`
          }
        ]
      };
    }
  • src/index.ts:381-385 (registration)
    Registration of the 'get_stats' tool in the ListTools response, including its name, description, and empty input schema (no parameters required).
    {
      name: "get_stats",
      description: "Returns stats of the LODA project. This includes the number of sequences, programs, and formulas in the database.",
      inputSchema: { type: "object", properties: {}, additionalProperties: false }
    },
  • TypeScript interface defining the structure of the stats response from the LODA API.
    interface StatsSummary {
      numSequences: number;
      numPrograms: number;
      numFormulas: number;
    }
  • Helper method in LODAApiClient that makes the HTTP request to the LODA API's /stats/summary endpoint to fetch the statistics.
    async getStats(): Promise<StatsSummary> {
      return this.makeRequest('/stats/summary');
    }
  • Dispatch case in the main CallToolRequestSchema handler that routes 'get_stats' calls to the specific handleGetStats method.
    case "get_stats":
      return this.handleGetStats();
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool 'Get statistics summary' but doesn't describe traits like whether it's read-only, requires authentication, has rate limits, or what the output format might be. This is a significant gap for a tool with zero annotation coverage.

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

Conciseness4/5

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

The description is a single, efficient sentence that directly states the purpose without unnecessary words. It's appropriately sized for a simple tool, though it could be slightly more informative to improve clarity without sacrificing brevity.

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

Completeness2/5

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

Given the complexity (a statistics tool with no output schema and no annotations), the description is incomplete. It doesn't explain what the statistics include, how they're formatted, or any behavioral traits, making it inadequate for the agent to understand the tool's full context and usage.

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

Parameters4/5

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

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add param info beyond the schema, but since there are no parameters, this is acceptable. Baseline is 4 for 0 parameters, as the schema fully covers the lack of inputs.

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

Purpose3/5

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

The description states the tool 'Get statistics summary for the LODA project' which provides a clear verb ('Get') and resource ('statistics summary'), but it's vague about what specific statistics are included or how this differs from sibling tools like 'get_program' or 'search_programs'. It doesn't distinguish itself from potential alternatives, leaving the scope ambiguous.

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?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, context, or exclusions, such as whether it's for high-level overviews or detailed analysis compared to other tools. This leaves the agent without clear usage instructions.

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/loda-lang/loda-mcp'

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