Skip to main content
Glama
sansong089
by sansong089

publish_message

Send a message to a RabbitMQ exchange, specifying routing key and message content.

Instructions

向交换机发布消息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vhostNo虚拟主机名称 (默认: /)/
messageYes消息内容
exchangeNo交换机名称 (留空使用默认交换机)
routing_keyYes路由键
content_typeNo内容类型 (默认: application/json)application/json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 behavioral burden. 'Publish' implies a write/side-effecting operation, but nothing is said about delivery guarantees, persistence, whether an exchange must pre-exist, or what happens on failure. For a mutation tool with zero annotation coverage this is a significant gap.

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?

A single short sentence with zero waste, front-loaded on the action. It is arguably too terse for its job, but it is not padded or poorly structured.

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?

For a 5-parameter, side-effecting tool with no annotations and no output schema, the description omits what an agent needs: whether the exchange must exist, vhost semantics, confirmation of delivery, and error behavior. The schema covers inputs but nothing covers operation 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 description coverage is 100%, so all five parameters including defaults for vhost, exchange and content_type are already documented in the schema. The description adds nothing beyond that, which is the baseline 3 when the schema does the heavy lifting.

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?

States a specific verb and resource: publish a message to an exchange. An agent can distinguish it from consume_message and the create_*/list_* siblings, though it never names an alternative explicitly. The purpose is clear but the sibling differentiation is left to inference.

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, no mention of prerequisites (e.g. the exchange must already exist, how vhost selection interacts with the default), and no statement of when to prefer consume_message or another tool. Only the bare action is given.

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