Skip to main content
Glama
mayjack0312
by mayjack0312

eda_dmt_select_control_get_current_document_info

Retrieve the currently focused document's type, UUID, project UUID, and library UUID. Use it to identify which document is active and its associated parent IDs.

Instructions

dmt_SelectControl.getCurrentDocumentInfo() -> Promise<IDMT_EditorDocumentItem | undefined> 获取当前文档的属性 remarks: 将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID 或所属库的 UUID returns: 文档类型、UUID、所属工程的 UUID、所属库的 UUID 组成的对象,如若为 undefined 则获取失败

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the return contract (object with document type, UUID, project/library UUID), the focus-based selection behavior, and the failure signal (`undefined`). It does not explicitly state side effects, but the read-only nature is strongly implied by the getter wording and return 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: a signature, a one-line purpose, a remarks sentence, and a returns sentence. There is minimal redundancy and no filler. The key behavior (focus-based selection) and failure condition are both included without bloating the text.

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?

There is no output schema, so the description appropriately explains the return shape and the `undefined` failure case. It also clarifies which document qualifies as 'current' (last input focus). It could go deeper on multi-window behavior, but for a simple read operation with no required parameters, it is sufficiently complete.

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 the base expectation is met. The description adds the method signature `getCurrentDocumentInfo()` implying no positional args, which is useful, but it does not clarify the `windowId` parameter beyond the schema's generic description. Overall the schema already does most of the parameter work.

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 clearly states a specific action and resource: '获取当前文档的属性' (get current document's attributes) and enumerates the returned fields (document type, UUID, parent project/library UUID). It does not explicitly distinguish itself from sibling getters like get_current_project_info or get_current_schematic_info, but the focus on the currently focused document is specific enough.

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 remarks define the exact usage context: it retrieves the currently open document that has the last input focus. This tells the agent when to use this rather than other 'current' info getters. It does not mention alternatives or exclusions, but the context is clear and unambiguous.

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