Skip to main content
Glama

查看业务消息协议模板

mqtt_templates

Lists all defined business protocol templates and their required variables, helping you identify the correct MQTT message structure for publishing or subscribing.

Instructions

列出所有已定义的业务协议模板及其所需变量。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mqtt_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description must carry the behavioral burden. '列出' (list) implies a read-only, non-destructive operation, and the description does add value by disclosing that the required variables for each template are part of the result. Beyond that, however, it gives no information such as whether the listing is complete, ordered, or paginated, or whether the full template body is included.

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?

It is a single sentence, front-loaded with the action and the resource, and it also states the returned payload. There is no filler, no repetition of the title, and no unnecessary preamble.

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 tool with zero parameters and no output schema, the description is nearly sufficient: it states what is enumerated and what is returned alongside each template, which is the key information because the return shape is otherwise undocumented. The minor gap is the absence of any note that this is a read-only discovery call that must be paired with mqtt_template_save or mqtt_template_remove for changes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters and its schema is an empty object, so there are no parameter semantics to explain. Under the baseline rule, this dimension gets a 4; the description adds nothing here, and there is nothing it needs to add.

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 gives a specific verb and resource: '列出所有已定义的业务协议模板' (list all defined business protocol templates), and it adds the returned content, '及其所需变量' (and their required variables). An agent can tell that this is a pure enumeration tool rather than the sibling save/remove mutators. It does not explicitly name those siblings to differentiate itself from them.

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 usage is only implied: because the description says it lists all defined templates, an agent can infer that this tool is for discovering existing templates before acting on them. The description provides no explicit condition for when to prefer this tool, no mention of mqtt_template_save or mqtt_template_remove as the alternative tools for creating or deleting templates, and no statement of prerequisites.

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