Skip to main content
Glama

Patch sidebar

patch_sidebar
DestructiveIdempotent

Atomically change a workspace's shared sidebar list; only workspace owners and admins can. Removes rows, then appends the added ones, then, with order, arranges every row. Name a row by its Page ID, plus a View ID for a row that opens one of the Page's Views. Any active Page can be listed, top-level or not. Returns the list as it ends up.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspaceId": "<workspaceId>"
    },
    "name": "patch_sidebar"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoRows to append, in this order. A row already listed keeps its place.
orderNoEvery row the sidebar holds after add and remove, each once, in the new order.
removeNoRows to take out of the sidebar. The Pages and Views themselves stay.
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds genuinely new context beyond them: the operation is atomic, it requires owner/admin privileges, and the internal sequence is remove-then-append-then-order. It does not cover failure modes (e.g., what happens if `order` omits an existing row), but it substantially exceeds the annotation baseline.

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?

Five short sentences, front-loaded with the operation and permission gate, and every sentence carries information about behavior or identifiers. The phrasing is slightly clipped ('only workspace owners and admins can'), but there is no filler.

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 destructive, atomic four-parameter mutation this covers permissions, atomicity, sequencing, row identity, and scope of what may be listed. An output schema exists so return values need not be explained, and only the workspaceId parameter and error behavior remain unaddressed.

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 75% and the schema itself documents add/remove/order semantics well, so the baseline applies. The description adds useful clarification of how a row is identified (Page ID plus optional View ID) and that ordering is applied last, but it says nothing about the required `workspaceId`, which is one of the undocumented fields.

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 description opens with a specific verb+resource: 'Atomically change a workspace's shared sidebar list,' which pins down both the operation and the object, and the mention of rows/Page ID/View ID makes it clearly distinct from read_sidebar. It stops short of naming the read sibling explicitly, so sibling differentiation is implied rather than stated.

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?

It gives a real prerequisite ('only workspace owners and admins can'), which tells the agent when the call will fail. However, it never says when to prefer this over read_sidebar or how to fall back if the caller lacks permission, and the ordering contract for add/remove/order is described mechanically rather than as usage guidance.

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.

Resources