Skip to main content
Glama

cad_select_target

Read-onlyIdempotent

Sets the default CAD target for new change sessions, ensuring subsequent modeling changes apply to the intended CAD system.

Instructions

设置默认 CAD 目标(新变更会话使用)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "cad_select_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact: the selection only affects future change sessions, not current ones. It does not say whether the target must already exist, what happens with an invalid target, or whether the choice persists across restarts. Note a mild tension between the verb "设置" (set, which implies state change) and readOnlyHint=true, though this is defensible for session-scoped configuration rather than model mutation.

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?

A single short sentence with the action front-loaded and no filler. It earns its length, though that length is very short and the brevity comes partly at the cost of the missing parameter and prerequisite information.

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?

An output schema exists, so return values need no explanation, and the tool is simple. However, for a one-parameter selector with zero schema coverage, the definition should tell the agent where valid target values come from and what "default" implies relative to per-session overrides; neither is present.

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

Parameters2/5

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

Schema description coverage is 0% for the single required `target` parameter, so the schema contributes nothing beyond the name. The description does not compensate at all: it never says whether `target` is a name, an ID, or a path, nor that valid values come from cad_list_targets. With one undocumented and unconstrained string parameter, this is a meaningful gap.

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 object: "设置默认 CAD 目标" (set the default CAD target), and adds a scope qualifier that it applies to new change sessions. It is clearly distinguishable from construction siblings such as cad_build_part, but it does not explicitly distinguish itself from the closely related cad_list_targets, which presumably surfaces the very targets this tool selects.

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?

The parenthetical "(新变更会话使用)" explains when the setting takes effect, not when the agent should call the tool. There is no mention of using cad_list_targets first, no statement of prerequisites, and no guidance on how this relates to cad_change_begin or an existing change session.

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