Skip to main content
Glama
yazelin

ERPNext MCP Server

by yazelin

get_stock_balance

Retrieves real-time stock balance for a specific item code, with optional warehouse filter. Returns empty array if no matching record is found.

Instructions

Get real-time stock balance from Bin (exact match on item_code).

⚠️ 此工具對 item_code 做精確比對。回傳空陣列代表「找不到對應 Bin 紀錄」, 可能是真的零庫存,也可能是 item_code 拼錯或缺少公司前綴(例如系統實際是 CTOS-KV-N40DT 而你只查了 KV-N40DT)。若回傳空陣列,請改用 find_items(keyword=...)get_item_details(keyword=...) 模糊確認

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_codeNoOptional exact item code to filter
warehouseNoOptional warehouse to filter

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses exact match behavior, empty array return meaning, and common pitfalls (typo, missing prefix). Could mention if read-only, but otherwise strong.

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?

Front-loaded with purpose, second paragraph adds valuable warnings. Could be slightly more concise, but every sentence is informative.

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?

Given output schema exists and tool is simple, description covers what to expect, how to interpret empty results, and error scenarios. Complete for its purpose.

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. Description adds value by clarifying that item_code is exact match, which goes beyond schema description. Warehouse is straightforward.

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?

Clearly states 'Get real-time stock balance from Bin (exact match on item_code)'. Specific verb and resource, distinguishing it from siblings like find_items or get_stock_ledger.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly explains when to use (exact match) and provides alternatives for empty results: use find_items or get_item_details for fuzzy search. Good guidance on handling misinterpretation.

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