Skip to main content
Glama
treasure-data

Treasure Data MCP Server

Official

use_database

Switch the active database context so later SQL queries run against the intended Treasure Data database instead of the default one.

Instructions

Switch the current database context for subsequent queries

Input Schema

NameRequiredDescriptionDefault
databaseYesThe database to switch to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the key behavioral trait that this mutates session state affecting later calls, which is valuable. However, it omits whether the context persists across sessions, whether an invalid database errors, and what permissions are required.

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?

A single front-loaded sentence with zero waste. The stateful implication is placed where the agent will read it first.

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 one-parameter tool with no output schema and no annotations, the description covers the essential statefulness needed to call it correctly. Only minor gaps remain, such as error behavior on an unknown database name.

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 single 'database' parameter is already documented in the schema. The description adds no syntax, format, or naming-convention detail beyond what the schema provides, so the baseline 3 applies.

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+resource: 'Switch the current database context.' This is clearly distinct from siblings like query, execute, and list_databases. It stops short of naming an alternative, so it doesn't reach the 5 level of explicit sibling differentiation.

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?

'for subsequent queries' implies the usage context (call this before running queries against a different database), but there is no explicit when-to-use, when-not-to-use, or named alternative such as list_databases for discovering valid names.

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