Skip to main content
Glama

Semantic Index Status

semantic_status
Read-onlyIdempotent

Display the current state of the semantic vector index, including total entries and breakdown details.

Instructions

Show the current state of the semantic vector index -- total entries, breakdo...

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'semantic_status' tool with the MCP server. Defines title, description, inputSchema (empty), and annotations (readOnlyHint: true).
    server.registerTool(
      "semantic_status",
      {
        title: "Semantic Index Status",
        description: "Show the current state of the semantic vector index -- total entries, breakdown by source.",
        inputSchema: {},
        annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
      },
      async () => {
        try {
          const status = await service.status();
          return ok(status);
        } catch (e) {
          return toolError("check semantic status", e);
        }
      },
    );
  • Handler function for 'semantic_status' that calls service.status() and returns the result. On error, returns a tool error via toolError().
      async () => {
        try {
          const status = await service.status();
          return ok(status);
        } catch (e) {
          return toolError("check semantic status", e);
        }
      },
    );
  • Input/output schema for 'semantic_status': title='Semantic Index Status', description, empty inputSchema, and readOnly annotations.
    {
      title: "Semantic Index Status",
      description: "Show the current state of the semantic vector index -- total entries, breakdown by source.",
      inputSchema: {},
      annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
    },
  • SemanticSearchService.status() method: returns embeddingAvailable, provider, total, bySource, indexedAt, and stale. Delegates to VectorStore.getStats() for store statistics.
    /** Get status of the vector store and embedding provider. */
    async status(): Promise<{
      embeddingAvailable: boolean;
      provider: string;
      total: number;
      bySource: Record<string, number>;
      indexedAt: string | null;
      stale: boolean;
    }> {
      const available = await this.isEmbeddingAvailable();
      const provider = await this.getProvider();
      const stats = await this.store.getStats();
      return { embeddingAvailable: available, provider, ...stats };
    }
  • VectorStore.getStats() method: loads the store, computes total count and breakdown by source, checks staleness, and returns the aggregated status data.
    /** Get store stats. */
    async getStats(): Promise<{
      total: number;
      bySource: Record<string, number>;
      indexedAt: string | null;
      stale: boolean;
    }> {
      const store = await this.load();
      const bySource: Record<string, number> = {};
      for (const entry of Object.values(store.entries)) {
        bySource[entry.source] = (bySource[entry.source] || 0) + 1;
      }
      const stale = await this.isIndexStale();
      return { total: Object.keys(store.entries).length, bySource, indexedAt: store.indexedAt ?? null, stale };
    }
Behavior3/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds that it shows the current state, aligning with annotations. No additional behavioral context beyond what annotations offer, so baseline score is appropriate.

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

Conciseness2/5

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

The description is very short and incomplete, ending abruptly with 'breakdo...'. While it is front-loaded, the truncation means it fails to fully communicate the tool's behavior.

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?

Given the tool has no parameters, no output schema, and simple read operation, the description captures the main idea but is cut off. It mentions total entries and a breakdown, but the missing ending reduces completeness.

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 tool has no parameters, and schema coverage is 100%. The description correctly implies no arguments are needed but does not explicitly state that. With zero parameters, baseline is 4.

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

Purpose5/5

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

The description clearly states the tool shows the current state of the semantic vector index, including total entries and a breakdown. This specific verb+resource distinguishes it from siblings like semantic_clear, semantic_index, and semantic_search.

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

Usage Guidelines4/5

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

The description implies usage for checking index status, but does not explicitly state when not to use it or provide alternatives. The sibling tool names provide context, but the description itself lacks exclusion guidance.

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/heznpc/AirMCP'

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