Skip to main content
Glama

Describe a topic in a data source

describe_topic
Read-onlyIdempotent

Inspect a known topic's DuckDB schema, message definition, and query instructions before writing SQL or event predicates, without fetching message rows.

Instructions

Inspect one known topic before writing SQL or event predicates. Returns its DuckDB schema, original message definition, and query instructions, without message rows. Discover topic names with describe_data_source. Confirm units from the definition or user; do not infer units from field names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
pathYes
topicYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark the operation read-only, idempotent, and non-destructive. The description adds non-obvious behavioral traits: it returns schema, definition, and query instructions but not message rows, and explicitly warns against inferring units from field names. No contradiction with annotations.

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

Conciseness5/5

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

Three sentences, front-loaded with the action and purpose. Each sentence adds distinct value: when to use it, what it returns, and a critical data-interpretation warning. There is no filler or repetition.

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?

For a read-only inspection tool, the description covers when to call it, what it returns, and a critical unit-safety warning. An output schema exists to detail return values, but the input parameters are not fully defined, which is a minor completeness gap.

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 description coverage is 0%, so the description must compensate. It clarifies that 'topic' is a known topic and references describe_data_source for discovery, but it never defines 'path' or the optional 'args' object, leaving required inputs under-specified.

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?

States a specific action—inspect a known topic—and the resource (a topic in a data source). It explicitly distinguishes itself from describe_data_source by pointing to that tool for discovering topic names, so an agent can select the right one.

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?

Explicitly frames usage as a pre-step before writing SQL or event predicates, and directs topic discovery to describe_data_source. It does not explicitly name query_messages as the alternative for retrieving message rows, though the 'without message rows' clause implies that boundary.

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