Skip to main content
Glama
egarcia74

Warp SQL Server MCP

by egarcia74

list_databases

Retrieve all database names from a SQL Server instance to explore available data sources and manage connections.

Instructions

List all databases on the SQL Server instance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that executes a SQL query on sys.databases to retrieve user databases (excluding system ones), formats and returns the results.
    async listDatabases() {
      const query = `
        SELECT 
          name as database_name,
          database_id,
          create_date,
          collation_name,
          state_desc as state
        FROM sys.databases 
        WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb')
        ORDER BY name
      `;
      const result = await this.executeQuery(query, 'list_databases');
      return this.formatResults(result);
    }
  • Tool schema definition specifying no input parameters are required.
    name: 'list_databases',
    description: 'List all databases on the SQL Server instance',
    inputSchema: { type: 'object', properties: {} }
  • index.js:256-259 (registration)
    Registration in the main tool dispatch switch statement, routing calls to the DatabaseToolsHandler's listDatabases method.
    case 'list_databases':
      return {
        content: await this.databaseTools.listDatabases()
      };
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. While 'List all databases' implies a read-only operation, it doesn't specify whether this requires specific permissions, how results are formatted, if there are rate limits, or what happens with large result sets. The description adds minimal behavioral context beyond the basic operation.

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, efficient sentence with zero wasted words. It's front-loaded with the core functionality and appropriately sized for a simple listing operation with no parameters.

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?

For a simple listing tool with no parameters and no output schema, the description is minimally complete. However, without annotations or output schema, it should ideally provide more context about the return format, permissions needed, or limitations. The description meets basic requirements but leaves gaps in behavioral understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0 parameters and 100% schema description coverage, the baseline would be 4. The description appropriately indicates this is a parameterless operation that returns all databases, which aligns perfectly with the empty input schema.

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 clearly states the specific action ('List all databases') and the resource ('on the SQL Server instance'), which distinguishes it from siblings like list_tables or list_foreign_keys. It uses precise terminology that aligns with database administration tasks.

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 like get_server_info (which might include database information) or other listing tools. There's no mention of prerequisites, context, or comparison with sibling tools.

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

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/egarcia74/warp-sql-server-mcp'

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