Skip to main content
Glama
mhyrr
by mhyrr

delete_component

Remove a specific component by ID from Sketchup models using this tool, enabling precise control over 3D modeling workflows and scene manipulation.

Instructions

Delete a component by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'delete_component' MCP tool. It is decorated with @mcp.tool() for registration and implements the tool logic by forwarding a JSON-RPC 'tools/call' request to the SketchUp extension socket server to delete a component by its ID.
    @mcp.tool()
    def delete_component(
        ctx: Context,
        id: str
    ) -> str:
        """Delete a component by ID"""
        try:
            sketchup = get_sketchup_connection()
            result = sketchup.send_command(
                method="tools/call",
                params={
                    "name": "delete_component",
                    "arguments": {"id": id}
                },
                request_id=ctx.request_id
            )
            return json.dumps(result)
        except Exception as e:
            return f"Error deleting component: {str(e)}"
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the destructive action ('Delete') but lacks critical details: whether deletion is permanent, if it requires specific permissions, what happens to dependent elements, or error conditions. For a mutation tool with zero annotation coverage, this is a significant gap in safety and operational context.

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

Conciseness5/5

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

The description is extremely concise—a single, direct sentence with zero wasted words. It's front-loaded with the core action and resource, making it easy to parse. Every word earns its place, though this conciseness comes at the cost of completeness.

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

Completeness2/5

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

For a destructive mutation tool with no annotations, 0% schema description coverage, and sibling tools present, the description is inadequate. It doesn't address safety, permissions, or error handling, and while an output schema exists, the description provides no context on what 'delete' entails operationally. The agent lacks critical information to use this tool responsibly.

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 0%, but the description adds minimal parameter context by specifying 'by ID'. It doesn't explain the ID format, source, or validation rules. With only one parameter, the baseline is higher, but the description doesn't fully compensate for the schema's lack of descriptions, leaving the agent to guess ID semantics.

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 clearly states the action ('Delete') and target resource ('a component by ID'), making the purpose immediately understandable. It doesn't differentiate from sibling tools like 'create_component' or 'transform_component' beyond the obvious verb difference, but the verb+resource combination is specific enough for basic understanding.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (e.g., needing an existing component), consequences (e.g., irreversible deletion), or relationships to sibling tools like 'create_component' or 'get_selection'. The agent must infer usage purely from the tool name and context.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mhyrr/sketchup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server