Skip to main content
Glama

Warehouse status & selection

manage_warehouse
Read-only

Inspect SQL warehouses and selection logic: list ranked warehouses, check status, and determine which warehouse SQL tools use based on config and availability.

Instructions

Inspect SQL warehouses and the server's warehouse-selection logic. Selection is transparent and configurable: an explicit warehouse_id wins, then DBX_MCP_DEFAULT_WAREHOUSE_ID, then (with DBX_MCP_WAREHOUSE_SELECTION=prefer_running) the best visible warehouse ranked running > starting

stopped, then serverless > pro > classic, then name.

Safety classification: READ_ONLY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNolist: warehouses ranked for SQL execution; status: state/health of one warehouse; select: which warehouse SQL tools will use and why.select
warehouse_idNoWarehouse id for status (or to validate in select).
require_runningNoFor select: only accept a RUNNING warehouse.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
pageNo
planNo
toolYes
actionNo
safetyNo
statusNosuccess
summaryYes
warningsNo
next_stepsNoSuggested follow-up calls.
request_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, matching the description's 'READ_ONLY' claim, so no contradiction. The description adds useful context via the transparent selection precedence rules, which go beyond annotations. But it doesn't explain what 'list' or 'status' returns or any rate limits.

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?

The description is front-loaded with the core purpose and then explains the selection logic concisely. Every sentence adds value, though the safety classification sentence slightly duplicates annotation information.

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?

With annotations covering safety and an output schema present, the description needn't explain return values. It adequately covers the tool's scope and the critical selection precedence, though it could better differentiate from the sibling 'manage_sql_warehouse' for full completeness.

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 the schema already documents all three parameters including the enum for 'action' and the meaning of 'warehouse_id' and 'require_running'. The description reinforces the selection precedence but adds no syntax or format details 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-and-resource pairing ('Inspect SQL warehouses and the server's warehouse-selection logic'), which is clear. However, it does not distinguish itself from the closely named sibling 'manage_sql_warehouse', which risks agent confusion about which tool handles warehouse operations.

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 description implies usage through the selection logic ('an explicit warehouse_id wins, then DBX_MCP_DEFAULT_WAREHOUSE_ID...'), which helps an agent understand when selection applies. But it never explicitly states when to use this tool versus 'manage_sql_warehouse' or how 'select' relates to SQL execution tools like execute_sql.

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