Skip to main content
Glama

page_close

Destructive

Closes Scribe tabs while keeping pages in the Library for reopening, or permanently deletes selected or bulk pages when requested.

Instructions

Close Scribe tabs (same as the UI close button). The pages stay in the Library and can be reopened with page_open. Pass id or key for one tab, or unpinned/all to close several open tabs. Pass permanent: true to delete the page(s) instead (no confirmation); deleted pages stay in the user's Trash for 7 days, and Ctrl+Shift+T (desktop app) or the notice's Undo restores the most recent delete (a bulk delete counts as one). Returns { closed: [ids] } or { deleted: [ids] } for the tabs this call closed or deleted — not the Library-wide closed-page count (that is page_list's closedCount).

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": "page_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTab id to close or delete.
allNoIf true, close (or permanently delete) every open tab including pinned ones.
keyNoTab key to close or delete.
unpinnedNoIf true, close (or permanently delete) every open tab that is not pinned.
permanentNoIf true, delete the page instead of just closing its tab. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true, but the description goes far beyond: permanent delete happens with no confirmation, pages survive in the Library on close, deleted pages sit in Trash for 7 days, and a bulk delete is undoable as a single unit. It also clarifies what the return payload is and, importantly, what it is not (not the Library-wide closedCount), which is exactly the kind of context annotations cannot convey.

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 front-loaded with the core action, then selection rules, then the destructive branch, then the return contract — a sensible ordering with little filler. The final sentence about closedCount versus page_list is valuable disambiguation but is dense and slightly long; it could be tightened without losing meaning.

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 five-parameter tool with no output schema and only a destructiveHint annotation, this covers the essentials: selection modes, destructive consequences, recovery, and return shape. The only gap is behavior when conflicting selectors (e.g. id plus all) are supplied together, which an agent might reasonably wonder about.

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 already 100%, so the baseline is 3, and the description earns above that by explaining how the parameters combine (id or key for one tab; unpinned/all for a set) and by spelling out the consequence of permanent rather than just its type. It stops short of detailing precedence if multiple selectors are passed at once, which would have been the final increment.

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?

States a specific verb and resource ('Close Scribe tabs') and anchors it to a familiar model ('same as the UI close button'), then extends it with the permanent-delete variant. An agent can tell at a glance how this differs from page_open and page_list without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: pass id or key for a single tab, unpinned/all for several, and permanent: true to delete rather than close. It also names the reopening alternative (page_open) and the recovery paths (Ctrl+Shift+T, the notice's Undo), so when-to-use and when-not-to-use are both covered.

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