Skip to main content
Glama

list_available_services

Discover which credential-protected services you can access by listing available options stored in your password manager.

Instructions

List all services that the user has stored credentials for. Returns service names only, no secrets. Useful for discovering what credentials are available before making requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `toolListServices` function is the handler for `list_available_services`. It checks agent policy and retrieves services from the bridge.
    private async toolListServices(
      session: MCPSession,
      policies: AgentPolicy[],
    ): Promise<ToolCallResult> {
      const request: AccessRequest = {
        agentId: session.agentId,
        action: 'read',
      };
    
      const decision = this.policyEngine.evaluate(policies, request);
      await this.logAccess(session, 'list_services', undefined, decision);
    
      if (!decision.allowed) {
        return {
          content: [{ type: 'text', text: `Access denied: ${decision.reason}` }],
          isError: true,
        };
      }
    
      const services = await this.bridge.listServices(session.userId);
    
      return {
        content: [{ type: 'text', text: JSON.stringify({ services }) }],
      };
    }
  • The `list_available_services` tool definition, including name, description, and input schema.
        name: 'list_available_services',
        description:
          'List all services that the user has stored credentials for. Returns service names only, no secrets. Useful for discovering what credentials are available before making requests.',
        inputSchema: {
          type: 'object',
          properties: {},
        },
      },
    ];

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/MARUCIE/authbox'

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