Skip to main content
Glama

use_database

Switch the active database on a MySQL server to target subsequent queries to the desired schema.

Instructions

Switch to a different database on a server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serverNoServer name (optional, defaults to 'default')
databaseYesDatabase name to switch to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of exposing side effects. It only says 'Switch', without clarifying that this changes the active database context for subsequent operations, whether it validates the database exists, or what the success/failure behavior is.

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 a single, front-loaded sentence with no filler. It conveys the essential operation without redundancy, making it easy for an agent to parse quickly.

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?

The tool is simple and has fully documented parameters, but the absence of annotations and output schema leaves gaps around side effects and return behavior. The description is minimally viable but does not fully explain the consequences of switching databases.

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 coverage is 100%, so the schema already fully documents both parameters. The description adds no additional meaning beyond 'database on a server', and the schema already explains the server default. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

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

The description uses a specific verb ('Switch') and a clear resource ('database on a server'). It is immediately distinguishable from the sibling tools, which list servers/tables, query, or describe schemas rather than changing context.

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 states what the tool does but gives no guidance on when to use it instead of alternatives. It does not mention that it should be used before queries, how it relates to show_databases, or when the optional server parameter matters.

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