Skip to main content
Glama

topic_publish

Publish a JSON event to a topic. Returns {ok: true, cursor}. Multiple readers can tail the same topic by cursor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slugYes
eventYes
owner_keyNoOptional. If omitted, defaults to the owner_key resolved from the connection's `Authorization: Bearer <owner_key>` header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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. It discloses the return shape ({ok, cursor}) and the multi-reader tailing behavior, which is helpful. However, it omits side effects, durability, ordering, permissions, or any error semantics, leaving the agent to infer the mutation nature from the word 'Publish'.

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?

Two sentences, no wasted words. The core purpose and the most important behavioral detail (cursor tailing) are front-loaded. Every sentence earns its place.

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?

Given the absence of annotations and output schema, the description covers the return value and the tailing pattern, which is useful. But the ambiguous parameters and lack of usage guidance mean an agent would likely need to probe or ask for clarification before a correct call.

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?

The schema covers only 1 of 4 parameters (owner_key). The description adds minimal compensation by calling the event 'JSON', but it does not explain 'slug' or 'name'. An agent cannot reliably determine what constitutes a topic or how to identify it without further context.

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?

The description clearly states the action ('Publish') and the resource ('a topic'), with specificity about the payload ('JSON event') and the return value. It is immediately distinguishable from siblings like topic_read or queue_push.

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 description implies the tool is for publishing events that can be tailed by multiple readers, but it never explicitly says when to use this over comparable tools (e.g., queue_push, discussion_post). There is no when-not guidance or named alternatives.

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