Skip to main content
Glama
amranu

DigitalOcean MCP Server

by amranu

configure_digitalocean_api

Set up and manage DigitalOcean API credentials directly or via environment variables, enabling authenticated access to DigitalOcean's API endpoints for streamlined integration and automation.

Instructions

Configure DigitalOcean API credentials. Can be auto-configured from DIGITALOCEAN_API_TOKEN environment variable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseUrlNoAPI base URL (default: https://api.digitalocean.com)https://api.digitalocean.com
tokenYesDigitalOcean API token

Implementation Reference

  • The handler function that configures the DigitalOcean API client instance using the provided token and optional baseUrl.
    private async handleConfigureApi(args: any) {
      const { token, baseUrl = 'https://api.digitalocean.com' } = args;
      
      if (!token) {
        throw new Error('API token is required');
      }
    
      const config: DOApiConfig = { token, baseUrl };
      this.apiClient = new DigitalOceanApiClient(config);
    
      return {
        content: [
          {
            type: 'text',
            text: 'DigitalOcean API configured successfully',
          },
        ],
      };
  • Input schema defining the parameters for configuring the DigitalOcean API (token required, baseUrl optional).
    inputSchema: {
      type: 'object',
      properties: {
        token: {
          type: 'string',
          description: 'DigitalOcean API token',
        },
        baseUrl: {
          type: 'string',
          description: 'API base URL (default: https://api.digitalocean.com)',
          default: 'https://api.digitalocean.com',
        },
      },
      required: ['token'],
    },
  • src/index.ts:57-75 (registration)
    Tool registration in the list_tools response, including name, description, and schema.
    {
      name: 'configure_digitalocean_api',
      description: 'Configure DigitalOcean API credentials. Can be auto-configured from DIGITALOCEAN_API_TOKEN environment variable.',
      inputSchema: {
        type: 'object',
        properties: {
          token: {
            type: 'string',
            description: 'DigitalOcean API token',
          },
          baseUrl: {
            type: 'string',
            description: 'API base URL (default: https://api.digitalocean.com)',
            default: 'https://api.digitalocean.com',
          },
        },
        required: ['token'],
      },
    } as Tool,
  • src/index.ts:165-166 (registration)
    Dispatch case in the CallToolRequest handler that routes to the configure handler.
    case 'configure_digitalocean_api':
      return await this.handleConfigureApi(args);
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 behavioral disclosure. It mentions that credentials 'can be auto-configured,' which hints at a setup or initialization behavior, but it doesn't disclose critical traits such as whether this action is idempotent, if it requires specific permissions, what happens on failure, or if it persists credentials globally. For a configuration tool with zero annotation coverage, this is a significant gap in transparency.

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 extremely concise and front-loaded, consisting of just two sentences that directly state the purpose and a key usage note. Every sentence earns its place by providing essential information without any waste, making it easy to scan and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a configuration tool with no annotations and no output schema, the description is incomplete. It lacks details on what the tool actually does behaviorally (e.g., stores credentials, validates them, returns success/failure), and it doesn't explain the outcome or any potential side effects. For such a tool, more context is needed to be fully helpful to an AI agent.

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?

The description does not add any parameter-specific information beyond what the input schema provides. The schema has 100% description coverage, clearly documenting both parameters ('baseUrl' and 'token') with their types, defaults, and requirements. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate with additional semantics.

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 clearly states the tool's purpose: 'Configure DigitalOcean API credentials.' It specifies the verb ('configure') and resource ('DigitalOcean API credentials'), making it easy to understand what the tool does. However, it doesn't explicitly differentiate from sibling tools like 'call_digitalocean_api' or 'list_endpoints,' which might also involve API interactions, so it doesn't reach the highest score.

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 provides some usage context by mentioning auto-configuration from an environment variable, which implies when this tool might be used (e.g., for initial setup). However, it lacks explicit guidance on when to use this tool versus alternatives like manually setting credentials elsewhere or using other sibling tools. No exclusions or clear alternatives are stated, leaving usage somewhat implied rather than fully guided.

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

Related 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/amranu/digitalocean-mcp'

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