Skip to main content
Glama

detect_topic

Analyzes text to identify and classify its main topic, using a confidence threshold to return relevant classifications.

Instructions

Automatic topic detection and classification

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "detect_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to analyze for topic detection
confidenceNoMinimum confidence threshold (0-1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-alpha.2

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and mostly fails it. The single word 'Automatic' hints the classification is unsupervised rather than caller-specified, but nothing is said about what topic set is returned, whether results are scored, or how the confidence threshold changes behavior. For a text-analysis tool with zero annotation coverage this is thin.

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

Conciseness3/5

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

It is a single short phrase with no filler, so nothing is wasted. However, the brevity comes at the cost of specification rather than from efficient packing of information, which reads as under-description rather than conciseness.

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?

With two parameters, no annotations, and no output schema, the description needed to explain the return shape (topic labels, scores, ordering) and the effect of the threshold. It covers none of that, so an agent knows roughly what the tool is for but not what it will get back.

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 description coverage is 100%, so both the text input and the 0-1 confidence threshold are already documented in structured form. The description adds no meaning beyond that — it never explains what happens when the threshold filters everything out or what confidence values represent. Baseline 3 applies when the schema does all the work.

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 phrase 'topic detection and classification' names a recognizable verb+resource pair, so an agent can infer this analyzes text and assigns topics. But it largely restates the tool name detect_topic and adds no detail on what taxonomy, granularity, or output form the classification takes. It also draws no boundary against siblings like enrich_context, which could plausibly cover similar ground.

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?

There is no when-to-use guidance at all — nothing says whether this is for tagging documents, routing content, or classifying short queries. No alternatives are named and no exclusions are stated, leaving the agent to guess between this and enrich_context.

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

Deploy Server

Other Tools