Skip to main content
Glama

studio_delete_objects

Delete frames or elements from a Design Studio file by id (deleting a frame deletes its contents). To change an object, use studio_update_objects instead of deleting and re-adding it. Changes are saved to the cloud file; an editor tab that already has the file open must be reloaded to see them (and would overwrite them if it saves first). Requires auth (write).

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": {
      "document_id": "<document_id>",
      "ids": "<ids>"
    },
    "name": "studio_delete_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesFrame or element ids
document_idYesStudio document UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full disclosure burden and does so: it warns of cascading deletion of frame contents, states that changes persist to the cloud file, and describes a real concurrency hazard where an already-open editor tab could overwrite the result. It also names the auth scope (write).

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?

Front-loaded with the action, then alternatives, then persistence and concurrency caveats in a logical order with no filler sentences. The final auth parenthetical is slightly compressed, but every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with full schema coverage and no output schema, the description covers the destructive side effect, the alternative tool, persistence behavior, the overwrite risk, and auth requirements. Nothing an agent needs in order to call it safely is missing.

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 coverage is 100%, so both parameters (document_id, ids) are already documented in the schema and the description only echoes "by id". The cascade note about frames is parameter-adjacent value, but syntax and multi-id behavior add nothing beyond the schema. Baseline 3 is appropriate.

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 ("Delete frames or elements from a Design Studio file by id") and names the sibling it is not (studio_update_objects), so an agent can distinguish it without opening another schema. The parenthetical that deleting a frame also deletes its contents sharpens the scope further.

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 alternative case: to change an object, use studio_update_objects rather than deleting and re-adding. It also supplies the precondition (auth write) and the operational caveat that an open editor tab must be reloaded and may overwrite the change, which is exactly the kind of when-to-use context an agent needs.

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