Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sys_timer_set_interval_timer

Set a repeating interval timer in EasyEDA Pro that runs a callback on each cycle. Removes any previous timer with the same ID, then returns if setup succeeded.

Instructions

sys_Timer.setIntervalTimer(id: string, timeout: number, callFn: (...args: any) => void, ...args: any) -> boolean 设置循环定时器 remarks: 如果遇到 ID 重复的定时器,则之前设置的定时器将被清除 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

B3.4/5.0
Behavior3/5

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

Since no annotations are provided, the description carries the full burden. It discloses that duplicate IDs will clear the previously set timer and that it returns a boolean success flag. However, it does not mention the callback behavior (e.g., whether it receives args), the units of the timeout, or that the timer is window-scoped via the `windowId` parameter. Some behavioral detail is present, but more could be disclosed.

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 brief and front-loaded with the signature, followed by the purpose and important remarks. No unnecessary prose. It earns a high score for efficiency, though it could be slightly more organized (e.g., separating remarks clearly). Overall, it is well-structured for a short description.

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 timer-setting tool, the description covers the signature, duplicate-ID behavior, and return value, which is sufficient for basic invocation. It lacks details on how to clear the timer (though a sibling exists) and the exact meaning of `timeout` (units). Given the tool's simplicity and the presence of a clear sibling for clearing, this is reasonably complete, but not exhaustive.

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 description provides the full signature `sys_Timer.setIntervalTimer(id: string, timeout: number, callFn: (...args: any) => void, ...args: any)` which clarifies the content of the `args` array in the input schema (which only says 'JSON parameter array in official signature order'). This adds substantial meaning beyond the schema, though it does not elaborate on the semantics of each parameter (e.g., what id represents, timeout units). A slight deduction for not explaining parameter meaning beyond types.

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 the tool sets a recurring interval timer ('设置循环定时器') and provides the full function signature. It is clear about the verb and resource, but it does not explicitly distinguish itself from the sibling `eda_sys_timer_set_timeout_timer` (one-shot timer), which would be useful for an agent choosing between them.

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?

No explicit guidance on when to use this tool versus alternatives like timeout timers or clearing timers. The name and remarks imply usage, but there is no stated context such as 'use for periodic tasks' or 'use instead of set_timeout_timer for repeating actions'. An agent must infer the use case from the name alone.

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