Skip to main content
Glama

Detach instance

detach_instance
Destructive

Turn a component instance back into ordinary elements (the component's content with the instance's props), to change this screen only.

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": {
      "fileId": "<fileId>",
      "id": "<id>"
    },
    "name": "detach_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe instance (data-use).
fileIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description usefully clarifies the nature of the mutation (structure changes, content and props are preserved), but says nothing about irreversibility, loss of the link to the main component, or whether the operation can be undone.

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?

A single front-loaded sentence with a clarifying parenthetical; nothing is wasted. The phrasing is slightly compressed but readable.

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 two-parameter destructive mutation with no output schema, the description covers purpose and effect but leaves the fileId parameter and the reversibility/undo story unaddressed. Adequate but with clear gaps an agent would want filled.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: 'id' is documented in the schema while 'fileId' is not. The description mentions no parameters at all, so it does not compensate for the undocumented fileId or clarify the id format beyond the schema's terse 'data-use' note.

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?

States a specific verb and resource: turning a component instance into ordinary elements, with a parenthetical clarifying what the result contains (the component's content plus the instance's props). It is clearly distinct from creation-oriented siblings like make_component, though it never names the inverse operation explicitly.

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 trailing clause 'to change this screen only' implies the intended scenario (local, screen-scoped edits rather than editing the master component), which is genuine usage guidance. However, it never states when NOT to detach, nor names an alternative such as editing the main component, so the agent must infer the trade-off.

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.