Skip to main content
Glama

update_geomi_api_key

Modify an existing Geomi API key's configuration, including access permissions and rate limits, for Aptos development workflows.

Instructions

Update an API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
application_idYesThe application id to update the api key for.
current_api_key_nameYesThe current name of the api key.
frontend_argsNo
new_api_key_nameNoThe new name of the api key.
organization_idYesThe organization id to update the api key for.
project_idYesThe project id to update the api key for.

Implementation Reference

  • The update_geomi_api_key tool handler logic.
    export const updateApiKeyTool = {
      description:
        "Update an API Key for your Geomi Organization. Geomi is the essential toolkit for Aptos developers.",
      execute: async (
        args: {
          application_id: string;
          current_api_key_name: string;
          frontend_args?: Parameters<typeof toApiFrontendArgs>[0];
          new_api_key_name?: string;
          organization_id: string;
          project_id: string;
        },
        context: any
      ) => {
        try {
          await recordTelemetry({ action: "update_api_key" }, context);
          const geomi = new Geomi(context);
          context.log.info(
            `Updating api key: ${JSON.stringify(args.frontend_args)}`
          );
          const apiKey = await geomi.updateApiKey({
            application_id: args.application_id,
            current_api_key_name: args.current_api_key_name,
            frontend_args: toApiFrontendArgs(args.frontend_args),
            new_api_key_name: args.new_api_key_name ?? args.current_api_key_name,
            organization_id: args.organization_id,
            project_id: args.project_id,
          });
          return JSON.stringify(apiKey);
        } catch (error) {
          return `❌ Failed to update api key: ${error}`;
        }
      },
      name: "update_geomi_api_key",
      parameters: UpdateApiKeyToolScheme,
    };

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/aptos-labs/aptos-npm-mcp'

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