Skip to main content
Glama

list_credentials

View credential metadata for a wallet including names, types, and expiry dates without exposing sensitive values.

Instructions

List credential metadata for a wallet (names, types, expiry -- never shows values).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idNoWallet ID. Auto-resolved for single-wallet sessions.

Implementation Reference

  • The handler function that executes the API call to list credential metadata.
      async (args) => {
        const walletId = args.wallet_id || 'default';
        const result = await apiClient.get(`/v1/wallets/${walletId}/credentials`);
        return toToolResult(result);
      },
    );
  • Registration function that defines the 'list_credentials' tool and its schema.
    export function registerListCredentials(
      server: McpServer,
      apiClient: ApiClient,
      walletContext?: WalletContext,
    ): void {
      server.tool(
        'list_credentials',
        withWalletPrefix(
          'List credential metadata for a wallet (names, types, expiry -- never shows values).',
          walletContext?.walletName,
        ),
        {
          wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'),
        },
        async (args) => {
          const walletId = args.wallet_id || 'default';
          const result = await apiClient.get(`/v1/wallets/${walletId}/credentials`);
          return toToolResult(result);
        },
      );
    }

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/minhoyoo-iotrust/WAIaaS'

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