Skip to main content
Glama
yazelin

ERPNext MCP Server

by yazelin

get_item_details

Retrieves complete item details including master data, stock balance, and prices using exact name or keyword search, with fallback to fuzzy matching.

Instructions

Get full item info (master + stock balance + prices) by exact name or fuzzy keyword.

一次回完整資料,避免 AI 為了查一個品項要連打 3~4 支工具。 解析順序:

  1. 若提供 name → 直接 get

  2. 若提供 keyword → 先試精確 name;找不到 fallback find_items 取第 1 筆候選

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo精確 Item name/item_code(例如 "CTOS-KV-N40DT")
keywordNo模糊關鍵字(例如 "KV-N40DT");name 沒命中時用
warehouseNo可選的倉庫過濾(套用在 stock balance)
price_listNo可選的價單過濾(套用在 prices)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the burden. It explains the resolution logic and that it combines multiple data sources. However, it does not disclose potential side effects, authentication requirements, rate limits, or behavior when no parameters are provided or when lookup fails.

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 concise: two sentences plus a bullet list. Information is front-loaded with the core purpose. The bullet list for resolution order is well-structured. A minor inefficiency is the use of Chinese alongside English, but overall it earns its place.

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?

Given the high schema coverage and existence of an output schema (so return values are documented), the description adequately covers the composite logic and usage context. However, it lacks guidance on error handling or what happens when both name and keyword are absent.

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?

Schema coverage is 100%, baseline 3. The description adds significant value by explaining the resolution order for name and keyword, the fallback mechanism, and providing examples in parameter descriptions (e.g., 'CTOS-KV-N40DT'). This goes beyond what the schema alone provides.

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 that the tool gets full item info (master, stock balance, prices) by exact name or fuzzy keyword. It distinguishes from siblings like find_items and get_stock_balance, which are more specialized. The verb 'Get' and resource 'item details' are specific.

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 explicit resolution order: if name given, direct get; if keyword given, try exact name then fallback to find_items. It implies when to use each parameter. However, it does not explicitly state when not to use this tool or name alternative tools for partial data.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yazelin/erpnext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server