Skip to main content
Glama
guansuian

Andon SOP MCP Server

by guansuian

queryAbnormalReportPage

Query MES abnormal report records with pagination and dynamic filters. Retrieve historical abnormal events and processing details for root cause analysis.

Instructions

调用工具前,应先读取 MCP resource: mcp://abnormal-report-mcp/instructions/serverInstructions。该 resource 描述了安灯系统 MCP 的能力、查询流程和输出要求;如果 resources/list 为空,也可以直接用 resources/read 读取该 URI。查询 MES 异常报表/安灯异常记录时使用本工具;当用户明确想查看异常报表、异常记录、异常统计、异常处理历史时,应调用本工具。用户提出制造现场、生产现场、工位、设备、质量、物料、节拍等问题或异常,并希望查找原因、处理结果、历史解决方案、处置经验时,也应先调用本工具查询 AndonAbnormalReport 历史异常记录,再从查询结果中的异常详情、处理结果、处理人、持续时长等字段中总结可参考的解决方案。工具会先读取 AndonAbnormalReport 表单字段配置,构建动态查询参数,查询分页数据,并使用数据字典翻译展示值。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo页码,从 1 开始。默认 1。
limitNo每页数量,默认 5,最大 100。
containNo初始化表单字段时只包含指定字段,默认空。
excludeNo初始化表单字段时排除指定字段,默认空。
filtersNo动态查询条件。key 必须是表单字段 field;文本字段模糊查,时间字段传 {start,end} 范围查。
Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It discloses key behaviors: reads form field configurations, builds dynamic query parameters, queries paginated data, and uses data dictionary translations. However, it does not explicitly state that the tool is read-only, nor does it mention authentication, rate limits, or side effects. The info is adequate but not exhaustive.

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 a single paragraph that front-loads the critical prerequisite (reading an MCP resource) before stating the main purpose. It contains several sentences but all contribute useful information. It could be slightly more concise, but the structure is logical and prioritized.

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

Completeness3/5

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

The tool is complex (5 parameters, nested objects) and has no output schema. The description mentions that results include fields like 异常详情, 处理结果, and that translation is applied, but it does not describe the response format, pagination metadata, or error handling. For a tool of this complexity, more detail about the output would be beneficial.

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%, so baseline is 3. The description adds value by explaining that filters support fuzzy search for text fields and range search for time fields, and that 'contain' and 'exclude' manage form field initialization. These details enrich the agent's understanding beyond the schema alone.

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 the tool's purpose: querying MES abnormal reports / Andon abnormal records. It uses specific verbs (查询) and resource (AndonAbnormalReport), and explicitly lists scenarios where the tool should be used, making it easy for an agent to select correctly.

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 guidance on when to use the tool, including specific user intents (e.g., viewing abnormal reports, records, statistics) and even suggests it as a first step for exploring historical solutions. It also instructs to read a prerequisite MCP resource. However, no sibling tools are listed, so no direct comparison or when-not-to-use is given.

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/guansuian/sop-mcp-server'

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