Skip to main content
Glama

locus_top_terms

Returns corpus-wide top terms by document frequency, showing each term's chunk count and total term frequency to reveal which vocabulary dominates the knowledge base.

Instructions

Return the corpus-wide top terms by document frequency. Each entry includes the term, how many chunks contain it, and total TF. Useful for understanding what vocabulary dominates the knowledge base.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "locus_top_terms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does add real value by disclosing the return shape (term, chunk count, total TF), which is important since there is no output schema, and 'Return' implies a read-only operation. However it says nothing about ordering of results, whether `limit` truncates or errors, what scope `store_path` selects, or whether results are cached/stale.

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?

Three sentences, front-loaded with the core action, then the return payload, then the use case. No filler; the trailing 'Useful for…' sentence earns its place as guidance rather than repetition.

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?

For a zero-annotation, no-output-schema tool with 2 undocumented parameters, the description covers what is returned but leaves key operational questions (ordering, scope selection via store_path, limit behavior) unanswered. Adequate to invoke, but not complete.

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 definition carries no documented parameters — schema coverage is 0% and neither `limit` nor `store_path` is explained. The description lists the response fields but adds no meaning for either input. Score 2.

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 a specific verb and resource: 'Return the corpus-wide top terms by document frequency.' That is precise enough to distinguish it from retrieval, graph, or stats siblings, but it never names how it differs from any neighboring aggregate/inspection tool, so no explicit sibling differentiation is made.

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

Usage Guidelines3/5

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

'Useful for understanding what vocabulary dominates the knowledge base' gives an implied context of use (corpus-level vocabulary analysis), but there is no when-to-use vs. when-not guidance, no prerequisites, and no named alternative — guidance is inferred rather than stated.

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