Skip to main content
Glama

Detach a REST catalog from a DataLens Trino cluster

datalens_trinoclusters_catalog_delete
Destructive

Detach a REST catalog from a Trino cluster without deleting the catalog itself. Use it to remove a cluster-catalog association while keeping the catalog available.

Instructions

Detach a REST catalog from a Trino cluster; the catalog itself stays.

Experimental in the DataLens API, written from its document and never called: not measured.

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": {
      "cluster_id": "<cluster_id>",
      "catalog_id": "<catalog_id>"
    },
    "name": "datalens_trinoclusters_catalog_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
catalog_idYesThe id of the REST catalog to detach.
cluster_idYesId of the Trino cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Addedv0.122.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is supplied; the description still adds real value beyond that by scoping the destruction to the cluster-catalog attachment rather than the catalog object. It also discloses a materially important reliability caveat ('written from its document and never called: not measured'), which no annotation conveys. It does not say what a failure leaves behind, which keeps it below 5.

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?

Two short sentences with the effect stated first and the experimental caveat second; nothing is repeated and nothing could be cut without losing information. Front-loading the 'catalog itself stays' scope note is the right ordering.

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, non-idempotent mutation with no output schema, the definition covers the effect, the scope of destruction, and its unverified status, while the schema fully covers parameters and annotations cover safety. What is missing is recoverability (whether re-creating the attachment restores it) and any permission requirement, which an agent deleting a live attachment would reasonably want.

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%, so all three parameters (cluster_id, catalog_id, dry_run) are already documented in the schema, including the dry_run return shape. The description adds no meaning beyond that baseline, which is exactly the 3 case where the schema does the work.

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 names a specific verb and resource ('Detach a REST catalog from a Trino cluster') and immediately clarifies the scope of the operation ('the catalog itself stays'). That clarification is genuinely load-bearing because the tool name ends in `_delete` while the behavior is a detach, so an agent can tell it apart from a destructive delete. It stops short of naming a sibling to contrast with (e.g. `datalens_trinoclusters_catalog_create`), so it is not a 5.

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?

When to use this is only implied: the phrase 'the catalog itself stays' tells the agent this is the non-destructive removal path, which is useful context for selection. There is no explicit when-to-use / when-not-to-use statement, no mention of prerequisites (does the cluster need to be stopped?), and no pointer to the re-attach alternative.

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

Deploy Server

Other Tools