Skip to main content
Glama

topic-zero-shot

Zero-shot topic classification with embeddings (cosine against your categories, no training). input={text, categorias?}. [x402: 0.03 USDC on Base, pay-per-use]

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": {
      "input": "<input>"
    },
    "name": "topic-zero-shot"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText to classify

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real non-schema context: the embedding/cosine mechanism and a pay-per-use cost model (x402, 0.03 USDC on Base). It omits what happens when no categories are supplied, whether results come back as ranked scores or a single label, and any limits on category count or text length.

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?

The first sentence is dense and front-loaded with no waste, and the pricing tag is clearly bracketed. The `input={text, categorias?}` fragment is terse pseudo-syntax that does not parse cleanly and, as written, is wrong relative to the schema, so brevity comes at the cost of clarity.

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?

There is no output schema or annotation coverage, so the description is the only source of behavioral information, and for a simple one-parameter tool it covers purpose and cost adequately. However, the unresolved `categorias` ambiguity and the unstated return shape leave meaningful gaps an agent would hit on first invocation.

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

Parameters2/5

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

Schema coverage is 100% for the single `input` string parameter, which would normally set a baseline of 3, but the description's `input={text, categorias?}` notation directly contradicts the schema by implying `input` is an object with optional `categorias`. It leaves the agent guessing whether categories go in `input` as an object or are absent entirely, which is actively misleading for the one call-shaping decision that matters.

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?

"Zero-shot topic classification with embeddings (cosine against your categories, no training)" gives a specific verb, resource, and mechanism, so an agent immediately knows it classifies text into user-supplied categories without labeled data. It never names or distinguishes itself from plausible siblings such as keywords-tfidf or extract-entities, so it stops short of a 5.

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?

The phrase "no training" and "cosine against your categories" implies the use case (you have candidate labels but no labeled examples), but there is no explicit when-to-use / when-not-to-use statement and no alternative tool is named. 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.