Skip to main content
Glama
gzgs-xgxt-mcp
by yjp-jdp

真实菜单树

xg_menu

Fetch role-based navigation menus from the backend to determine which features an account can access on desktop (pc) or mobile (m).

Instructions

拉取后端按当前角色下发的菜单(getRouters)。这是"这个账号实际能点开什么"的权威答案。 platform=pc 是桌面端,platform=m 是手机端。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xg_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNopc(默认)或 m

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It usefully discloses that results are role-scoped and backend-issued (results vary by logged-in account role) and that output differs by platform, but it does not describe the returned tree structure or confirm read-only behavior explicitly, leaving meaningful gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, front-loaded with the action and resource, then the authoritative claim, then the platform semantics. No wasted wording.

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?

For a single optional enum param and no output schema, the description covers purpose, role dependence, and platform variants well enough to call it correctly. It stops short of describing the menu tree payload, but the title (真实菜单树) partially compensates.

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% with an enum, so the baseline is 3; the description still adds meaning by explaining platform=pc is desktop and platform=m is mobile, clarifying what the enum values represent beyond the schema's bare 'pc(默认)或 m'.

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?

Uses a specific verb (拉取/fetch) plus resource (菜单/menu) and a qualifier (后端按当前角色下发). It also frames the value proposition clearly: the authoritative answer to "what this account can actually click open", which no sibling provides.

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?

Implies when to use it by declaring it the authoritative source for menu accessibility, which helps an agent pick it when it needs real permission-visible menus. However, it names no alternative tools and gives no explicit when-not or prerequisite guidance.

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