Skip to main content
Glama

aegis_list_services

List all available services registered in Aegis to view service names, authentication types, and allowed domains without exposing sensitive credentials.

Instructions

List all available services registered in Aegis. Returns service names, auth types, and allowed domains — never secrets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for aegis_list_services tool which retrieves services from the vault and filters them based on agent grants.
    async () => {
      const credentials = this.vault.list();
    
      // If an agent is authenticated, filter to only their granted credentials
      let filtered = credentials;
      if (this.authenticatedAgent && this.agentRegistry) {
        const grantedIds = this.agentRegistry.listGrants(this.authenticatedAgent.name);
        if (grantedIds.length > 0) {
          filtered = credentials.filter((c) => grantedIds.includes(c.id));
        }
      }
    
      const services = filtered.map((c) => ({
        name: c.name,
        service: c.service,
        authType: c.authType,
        domains: c.domains,
        scopes: c.scopes,
        expiresAt: c.expiresAt ?? null,
        rateLimit: c.rateLimit ?? null,
      }));
    
      return {
        content: [
          {
            type: 'text' as const,
            text: JSON.stringify({ services, total: services.length }, null, 2),
          },
        ],
      };
  • Registration of the aegis_list_services tool in the MCP server.
    private registerListServicesTool(): void {
      this.server.registerTool(
        'aegis_list_services',
        {
          title: 'Aegis List Services',
          description:
            'List all available services registered in Aegis. Returns service names, auth types, and allowed domains — never secrets.',
          inputSchema: {},
        },

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/getaegis/aegis'

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