Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sys_message_bus_subscribe

Subscribe to persistent message bus topics in EasyEDA Pro by providing a topic and callback function to handle incoming messages.

Instructions

sys_MessageBus.subscribe(topic: string, callbackFn: (message: any) => void) -> ISYS_MessageBusTask 私有消息总线:订阅消息 remarks: 持久性订阅消息 returns: 消息总线任务

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo按官方签名顺序排列的JSON参数数组
windowIdNo目标EDA窗口ID;省略时使用当前活动窗口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the subscription is persistent and that it returns a message bus task, which hints at handle-based management. However, it does not explain cleanup, whether the bus must already exist, or callback invocation semantics.

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?

The description is compact and front-loads the essential signature before the Chinese summary. The 'remarks' and 'returns' fragments add useful info without padding, though the structure is slightly terse.

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?

The description covers the core subscribe action, persistence, and return type, but omits important operational context such as whether a private message bus must be created beforehand, how to unsubscribe using the returned task, and topic requirements. Given the absence of annotations and output schema, these gaps are material.

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

Parameters5/5

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

The schema only provides a generic args array, but the description's function signature explicitly defines the two parameters (topic: string, callbackFn: (message: any) => void) and their order. This meaningfully compensates for the schema's opacity.

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 ('subscribe'), the resource ('private message bus'), and includes the full function signature. The '私有消息总线' and '持久性订阅消息' qualifiers distinguish it from sibling tools like eda_sys_message_bus_subscribe_public and eda_sys_message_bus_subscribe_once.

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?

The description provides clear context: it is a private, persistent subscription, from which an agent can infer it is not for public buses or one-time subscriptions. However, it does not explicitly name alternatives or state when-not-to-use conditions.

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

Deploy Server

Other Tools