Skip to main content
Glama
sansong089
by sansong089

create_binding

Bind an exchange to a queue or exchange in RabbitMQ using a routing key and virtual host to enable message routing.

Instructions

创建交换机到队列的绑定

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vhostNo虚拟主机名称 (默认: /)/
sourceYes源交换机名称
destinationYes目标队列名称
routing_keyNo路由键 (默认: "")
destination_typeNo目标类型 (queue或exchange,默认: queue)queue

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, yet it discloses nothing about mutation semantics: idempotency, what happens if an identical binding exists, required permissions, or failure modes. A single declarative sentence about creation is not sufficient for a write operation with zero annotation coverage.

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?

One short, front-loaded sentence with no padding or redundancy. Nothing could be removed without losing the core meaning.

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 mutation tool with no annotations and no output schema, the description is far too thin: it omits preconditions, error behavior, and the destination_type nuance. The agent is left to infer everything beyond the bare action from the schema alone.

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 every parameter (vhost, source, destination, routing_key, destination_type) is already documented in the schema, making 3 the baseline. The description adds no format hints or examples, and its 'exchange to queue' framing actually conflicts with the destination_type enum that allows queue or exchange.

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 states a specific verb (创建) and resource (交换机到队列的绑定), which is enough to distinguish it from siblings like delete_binding and list_bindings. However, it narrows the scope to exchange→queue while the schema's destination_type enum also permits exchange→exchange, so the stated purpose is slightly misleading about the actual capability.

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 guidance on when to use this tool versus alternatives, nor any prerequisites such as the source exchange and destination queue needing to already exist. The sibling set (create_exchange, create_queue, delete_binding) makes routing guidance genuinely useful and it is entirely absent.

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