Skip to main content
Glama

close_safari_tab

Close a Safari tab by specifying its index (1-based) or use -1 to close the current tab.

Instructions

Close a Safari tab. Use -1 for current tab or specify tab index (1-based)

Args: tab_index: Tab index to close (-1 for current tab, or 1-based index)

Returns: Success or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_indexNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions the return type ('Success or error message') but does not disclose potential side effects, such as whether closing the last tab closes the window, or any permissions needed.

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 short and front-loaded with the core action. The docstring format with Args and Returns is clear, though slightly verbose for such a simple tool.

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 tool with one optional parameter, the description is mostly complete. However, it could mention that Safari must be running and what happens if an invalid index is provided. The output schema is not explicitly defined, but the description covers the return type.

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 description explains the meaning of 'tab_index' and its special value -1, adding context beyond the input schema (which only specifies type and default). This is valuable for the agent.

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 action ('Close') and the resource ('a Safari tab'), and specifies how to use the parameter (-1 for current tab, 1-based index). This distinguishes it from sibling tools like 'close_safari_window' and 'switch_safari_tab'.

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 how to specify the tab index, including the special -1 value for the current tab. However, it does not explicitly state when to use this tool versus alternatives like 'switch_safari_tab' or 'close_safari_window', 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/altic-dev/altic-mcp'

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