Skip to main content
Glama

Close a panel tab

panel_close

The panel is the document beside the chat on the ShapelessAI Ask page (shapelessai.com/studio): tabs the person looks at while you talk, and the place they answer a question with a press or edit a plan's node by hand. The browser, the chat's own agent and you (from a terminal) share one panel per conversation. The page draws it for the founder's account today (it is being rolled out); every account holds and can read its panel through these tools and the API. Closes one tab. Needs the write scope.

Input Schema

NameRequiredDescriptionDefault
idYesThe tab's id.
conversation_idNoThe conversation (job) id whose panel to use. Omit it to use the conversation the person opened last in the browser, which is the one they are most likely looking at.

Output Schema

NameRequiredDescriptionDefault
textYes
panelYes
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

The description adds real context beyond the annotations by disclosing the auth prerequisite (write scope) and the fact that the panel is shared across the browser, the chat agent, and a terminal — implying a close is visible to other actors. It does not say whether closing is reversible, whether the tab's state is destroyed, or what happens to a tab re-opened later, which are the questions an agent most needs answered for a close operation marked destructiveHint=false.

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

Conciseness2/5

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

Roughly four sentences of panel exposition precede the one sentence that states what the tool does, so the payload is not front-loaded. Sentences like the rollout note ("it is being rolled out") and the mixed entitlement/API clause are muddled and cost more than they return for a two-parameter tool.

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?

With annotations, a complete input schema, and an output schema already present, the description's job is the shared-state mental model, and it delivers that: one panel per conversation, multiple actors, write scope required. The remaining gaps — reversibility of a close and effect on other participants' views — keep it short of full completeness.

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% and both parameters are documented there, including the useful fallback rule for omitting conversation_id. The description adds nothing about id format, what happens if the id is unknown, or the consequences of targeting the wrong conversation, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The operative statement is "Closes one tab," a specific verb plus resource, and the surrounding text makes clear the tab lives in a conversation's shared panel. It does not explicitly differentiate from panel_update/panel_open (e.g., closing vs. removing content), but the panel mental model makes the distinction inferable. The defect is placement: the actual purpose is buried in the fifth sentence behind framing prose.

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?

Usage is only implied: the reader learns the panel is what the person looks at while talking, so closing removes a tab from that view, and learns a prerequisite ("Needs the write scope"). There is no explicit when-to-use, when-not-to-use, or routing versus panel_update, and no statement of when closing is preferable to just leaving a tab in place.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.