Skip to main content
Glama

Topic Of Document

topic_of_document
Read-onlyIdempotent

Tuatara Topics: place one document on the served topic sets — general (Wikipedia-scale) and finance (markets, companies, the economy) — and return the topics it belongs to with their weights, which set placed it, its confidence (the top topic's weight) and on_topic_set (false when nothing served covers the text). Nothing is stored.

Input Schema

NameRequiredDescriptionDefault
documentYesthe document (plain text)
num_wordsNowords per topic, 3-30 (default 15)
topic_setNoauto (default: the set that takes the document most confidently), general or finance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / topic_set
      Added value: +{
      +  "description": "auto (default: the set that takes the document most confidently), general or finance",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world. The description reinforces this with 'Nothing is stored' and meaningfully defines the confidence and on_topic_set return semantics, but says nothing about size limits, latency, or behavior on empty/very short input.

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?

One dense but well front-loaded sentence that packs the resource, both topic sets, all return fields and the miss case. It is efficient, though the em-dash chaining makes it slightly harder to parse at a glance.

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

Completeness4/5

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

With no output schema, the description carries the burden of explaining return values and does so well, covering topics, weights, confidence, placing set and the no-match indicator. It is nearly complete for a read-only classifier, missing only input-size expectations and error behavior.

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 coverage is 100% and the schema already documents document, num_words (3-30, default 15) and topic_set (auto/general/finance with the auto rule). The description adds only a little — that a document is placed on one set and which set is reported — so the baseline 3 is appropriate.

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?

The description opens with a specific verb+resource — 'place one document on the served topic sets' — and enumerates exactly what comes back (topics, weights, placing set, confidence, on_topic_set). It is clearly distinct from summarizers and topic-browsers in the sibling list, though it never names those siblings explicitly.

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?

Usage is implied (classify a document's topics) and the on_topic_set=false caveat tells the agent what a miss looks like, but there is no explicit when-to-use versus alternatives such as summarize_document or find_topics, and no stated prerequisites.

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.

Resources