Skip to main content
Glama
amranu

DigitalOcean MCP Server

by amranu

search_endpoints

Locate specific DigitalOcean API endpoints by entering a search query and optionally setting a result limit. Enhances access to over 471 endpoints via the MCP server, enabling precise filtering and direct API calls with authentication.

Instructions

Search for DigitalOcean API endpoints

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoLimit number of results
queryYesSearch query

Implementation Reference

  • Primary execution handler for the search_endpoints tool. It destructures the query and optional limit from args, searches using the helper, limits results, formats as bullet list, and returns formatted text content.
    private async handleSearchEndpoints(args: any) {
      const { query, limit = 20 } = args;
      
      const endpoints = searchEndpoints(query).slice(0, limit);
    
      const endpointList = endpoints.map(ep => 
        `• ${ep.method} ${ep.path} - ${ep.summary} (${ep.operationId})`
      ).join('\n');
    
      return {
        content: [
          {
            type: 'text',
            text: `Found ${endpoints.length} endpoints matching "${query}":\n\n${endpointList}`,
          },
        ],
      };
    }
  • src/index.ts:95-113 (registration)
    Tool registration in the MCP server's listTools response, defining name, description, and inputSchema for search_endpoints.
    {
      name: 'search_endpoints',
      description: 'Search for DigitalOcean API endpoints',
      inputSchema: {
        type: 'object',
        properties: {
          query: {
            type: 'string',
            description: 'Search query',
          },
          limit: {
            type: 'number',
            description: 'Limit number of results',
            default: 20,
          },
        },
        required: ['query'],
      },
    } as Tool,
  • Core helper function implementing the search logic by filtering endpoints based on case-insensitive matches in operationId, summary, description, or tags.
    export function searchEndpoints(query: string): DOEndpoint[] {
      const endpoints = loadEndpoints();
      const lowercaseQuery = query.toLowerCase();
      
      return endpoints.filter(ep => 
        ep.operationId.toLowerCase().includes(lowercaseQuery) ||
        ep.summary.toLowerCase().includes(lowercaseQuery) ||
        ep.description.toLowerCase().includes(lowercaseQuery) ||
        ep.tags.some(tag => tag.toLowerCase().includes(lowercaseQuery))
      );
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the search action without mentioning permissions, rate limits, response format, or pagination behavior. This is inadequate for a search tool with zero annotation coverage, as it leaves critical operational details unspecified.

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 waste, front-loading the core purpose. It is appropriately sized for the tool's complexity, making it easy to parse without unnecessary elaboration.

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 lack of annotations and output schema, the description is incomplete. It doesn't address behavioral traits, result handling, or differentiation from siblings, which are essential for effective tool use. This gap is significant for a search tool with multiple related siblings.

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%, meaning the input schema already documents both parameters ('limit' and 'query') fully. The description adds no additional meaning beyond what the schema provides, such as query syntax examples or result filtering details, so it meets the baseline score for high schema coverage.

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 action ('Search for') and resource ('DigitalOcean API endpoints'), providing a specific verb+resource combination. However, it doesn't differentiate this tool from sibling tools like 'list_endpoints' or 'get_endpoint_details,' which likely have overlapping functionality, so it misses 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 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 such as 'list_endpoints' or 'get_endpoint_details.' It lacks explicit context, exclusions, or prerequisites, leaving the agent with minimal usage direction beyond the basic purpose.

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