Skip to main content
Glama

resolve_part_number

Narrows a product series by specification values or partial part number, confirms whether the model number is complete, and returns missing options, candidates, and CAD availability.

Instructions

依規格值逐步縮小一個系列,直到得到完整型號。

series_code 是系列代碼。specs 是「規格欄代碼 → 值」:離散欄的值可以是值代碼或完全相同 的顯示文字(子值寫成「父值 / 子值」,子值文字在該欄唯一時可只寫子值);可輸入數值的欄 位(尺寸、加工選項)的值是數字或數字字串,必須在允許的範圍與間隔內。加工選項的代碼 (例如追加加工的欄位)也放在 specs:型號還沒完整時它們暫時不會套用,回應的 deferred_specs 列出這些代碼,型號完整後才會檢查並套用。part_number 可以是不完整的型號 (例如型號前綴),用來確認它是否完整、還缺哪些選擇。

回傳 complete。完整時給 part_number、brand_code、numeric_specs(數值型加工選項與 尺寸)、option_specs(清單型加工選項,可用 specs 指定)與 CAD 能否自動下載(cad); 不完整時給 selected_specs(你已選定的)、open_specs(仍可選,附可選值,超過 30 個只列 前 30 個並以 more_count 說明)、fixed_specs(只剩一個值)、numeric_specs(可輸入數值的 欄位與範圍)、剩 10 筆以內時的 candidates,以及推斷出來的 dependent_specs(範圍受你的 輸入影響、很可能是還需要給值的後續選項)。輸入有問題時回傳 error 與 problem,並附上 可選值或允許範圍。

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": {
      "series_code": "<series_code>"
    },
    "name": "resolve_part_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
specsNo
part_numberNo
series_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it explains that machining-option codes are held back and surfaced in deferred_specs until the model is complete, that open_specs is truncated at 30 with more_count, that candidates appear only under 10 matches, and that errors return error plus problem with allowed values. The remaining gap is that it never explicitly states the operation is read-only and side-effect free, which matters given the absence of annotations.

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 purpose is front-loaded in one line, followed by input semantics and then the response contract in a logical order. The prose is dense and nearly every clause carries operational information, though the response paragraph is a long run-on that could be split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, no annotations, and zero schema description coverage, this description supplies everything an agent needs: input formats for all three parameters, the full return shape for both the complete and incomplete cases, and the error contract. Nothing material about calling or interpreting the tool is missing.

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?

Schema description coverage is 0%, so the description must define every parameter, and it does: series_code as the series code, specs as a map of spec-column code to value, and part_number as a possibly incomplete model string. It adds real semantics the schema cannot express, such as discrete fields accepting a value code or the exact display text, sub-values written as 'parent / child', and numeric fields requiring numbers within the permitted range and step.

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 opening sentence states a specific verb and outcome: progressively narrow a series by spec values until a complete part number is produced. That is far more than a restatement of the name and makes the tool's job unambiguous. It stops short of a 5 because it never contrasts itself with nearby siblings such as search_parts or get_series, so the agent must infer the boundary.

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?

Usage is implied through the two entry paths it describes: supply series_code plus specs to drive selection, or pass a possibly incomplete part_number to check completeness and see remaining choices. There is no explicit when-to-use versus when-not, and no statement of prerequisites or alternatives among the sibling tools. An agent can infer the workflow but is not routed.

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