Skip to main content
Glama

ruyi_close_page

Close a browser tab by its index. Prevents closing the main tab (index 0) to keep the browser session intact.

Instructions

关闭指定标签页。不能关闭主标签页(pageIdx=0)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdxYes要关闭的标签页索引
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It adds a valuable constraint that the main tab cannot be closed, but does not explain what happens when attempting to close it, whether the operation is permanent, or other side effects. Some context is provided, but not comprehensive.

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 with an essential note. It is front-loaded, contains zero waste, and every word earns its place.

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?

For a simple one-parameter tool with no output schema, the description covers the core purpose and the critical exception. However, it lacks details on response/behavior for invalid inputs (e.g., out-of-range index) and could be more complete for a destructive action.

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?

The schema already describes pageIdx as the index of the page to close (100% coverage), so baseline is 3. The description goes beyond the schema by stating that pageIdx=0 is invalid, which is a meaningful parameter constraint that helps the agent avoid errors.

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 closes a specified tab/page with a specific verb ('close') and resource ('page'). It distinguishes from sibling tools like new_page, select_page, etc., and adds a critical constraint about pageIdx=0.

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 implies usage when wanting to close a page, and provides an explicit limitation (cannot close pageIdx=0). However, it does not explicitly mention when to use alternatives or when this tool should be avoided beyond the main tab restriction, so context is implied rather than fully explicit.

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/Facetomyself/ruyi-mcp'

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