Skip to main content
Glama

validation_permission

Detect horizontal and vertical privilege escalation, and validate role-based menu visibility in web applications through automated browser testing.

Instructions

权限越权检测工具。支持三种模式:horizontal_privilege=水平越权检测(替换API路径中的ID);vertical_privilege=垂直越权检测(普通用户访问管理API);role_menu=基于角色的菜单可见性验证

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo检测名称
actionYes检测模式:horizontal_privilege=水平越权;vertical_privilege=垂直越权;role_menu=角色菜单
entityNo实体名称(如 leads/orders),用于构造 API 路径
timeoutNo超时时间(毫秒),默认 15000
entityIdNo当前用户的实体 ID(水平越权检测时,将被替换为 otherEntityId)
targetUrlNo目标页面 URL
targetRoleNorole_menu 模式:目标角色名称
roleSelectorNorole_menu 模式:角色切换按钮/下拉框的选择器
adminApiPathsNo管理端 API 路径数组(垂直越权检测时访问这些路径)
otherEntityIdNo其他用户的实体 ID(水平越权检测时替换为目标值)
expectedMenuItemsNorole_menu 模式:目标角色应看到的菜单项文本
unexpectedMenuItemsNorole_menu 模式:目标角色不应看到的菜单项文本
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as side effects, required permissions, or whether the tool is read-only. For a detection tool, missing information about safety or impact reduces transparency.

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?

The description is a single sentence that efficiently captures the tool's purpose and main modes. It is front-loaded and contains no superfluous information.

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?

Given the complexity of 12 parameters and no output schema, the description is relatively brief. While the modes are explained, there is no guidance on which parameters to use for each mode or on expected outcomes, leaving the agent to infer from the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already provides detailed parameter descriptions. The tool description adds value by contextualizing the action enum and modes, but it does not add meaning beyond what is in the schema for other parameters.

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 as a permission escalation detection tool and enumerates three specific modes (horizontal privilege, vertical privilege, role menu), which distinguishes it from sibling tools that are mostly browser automation or generic validation tools.

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?

The description explains the three modes and their use cases, providing context for when to use each mode. However, it does not explicitly state when not to use this tool or mention alternatives, leaving some ambiguity.

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/validpilot/ai-verify-mcp'

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