Skip to main content
Glama

list-databases

Fetch a list of all databases managed by Coolify to view database instances and monitor resources.

Instructions

Fetch a list of all databases managed by Coolify. This provides an overview of all database instances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'list-databases' tool. Calls the Coolify API endpoint '/databases' and returns the list of databases as formatted JSON text.
    case "list-databases": {
      const databases = await coolifyApiCall('/databases');
      return {
        content: [{
          type: "text",
          text: JSON.stringify(databases, null, 2)
        }]
      };
    }
  • src/index.ts:119-122 (registration)
    Tool registration in the listTools response, defining name, description, and empty input schema (no parameters required).
      name: "list-databases",
      description: "Fetch a list of all databases managed by Coolify. This provides an overview of all database instances.",
      inputSchema: zodToJsonSchema(z.object({})),
    },
  • Input schema for list-databases tool: empty object (no input parameters).
    inputSchema: zodToJsonSchema(z.object({})),
  • Shared helper function coolifyApiCall used by list-databases (and other tools) to make authenticated API calls to Coolify backend.
    async function coolifyApiCall(endpoint: string, method: string = 'GET', body?: any): Promise<any> {
      const baseUrl = process.env.COOLIFY_BASE_URL?.replace(/\/$/, '') || 'https://coolify.stuartmason.co.uk';
      const url = `${baseUrl}/api/v1${endpoint}`;
    
      const response = await fetch(url, {
        method,
        headers: {
          'Authorization': `Bearer ${process.env.COOLIFY_ACCESS_TOKEN}`,
          'Content-Type': 'application/json',
        },
        body: body ? JSON.stringify(body) : undefined,
      });
    
      if (!response.ok) {
        const errorBody = await response.json().catch(() => ({}));
        throw new Error(JSON.stringify({
          error: `Coolify API error: ${response.status} ${response.statusText}`,
          status: response.status,
          details: errorBody
        }));
      }
    
      return await response.json();
    }
Behavior3/5

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

With no annotations provided, the description carries full burden. It describes the tool's behavior as fetching a list for overview purposes, but doesn't disclose important behavioral traits like pagination, rate limits, authentication requirements, or what 'overview' specifically entails.

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 concise sentences that are front-loaded with the core purpose. Every sentence earns its place - the first states the action, the second adds context about the output's purpose.

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 list tool with no parameters and no output schema, the description is adequate but lacks completeness. It doesn't describe the return format, what fields are included in the list, or any limitations on the data returned.

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 is 4. The description appropriately doesn't discuss parameters since none exist, and the schema already fully documents the empty input structure.

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 ('Fetch a list') and resource ('all databases managed by Coolify'), distinguishing it from siblings like list-applications or list-services. It explicitly identifies what resource type is being listed.

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 context ('provides an overview') but doesn't explicitly state when to use this tool versus alternatives like list-resources or get-application. No explicit exclusions or sibling comparisons are provided.

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/StuMason/coolify-mcp-server'

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