Skip to main content
Glama

update_geomi_organization

Modify organization details for your Geomi account, a toolkit for Aptos developers, by specifying the organization ID and new name.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the organization to update.
organization_idYesThe organization id to update the organization for.

Implementation Reference

  • The handler function that executes the 'update_geomi_organization' tool, responsible for calling the Geomi service to update an organization.
    execute: async (
      args: { name: string; organization_id: string },
      context: any
    ) => {
      try {
        await recordTelemetry({ action: "update_organization" }, context);
        const geomi = new Geomi(context);
        const organization = await geomi.updateOrganization({
          name: args.name,
          organization_id: args.organization_id,
        });
        return JSON.stringify(organization);
      } catch (error) {
        return `❌ Failed to update organization: ${error}`;
      }
    },
  • The 'updateOrganizationTool' object definition, which registers the tool name, description, parameters, and handler function.
    export const updateOrganizationTool = {
      description:
        "Update an Organization for your Geomi account. Geomi is the essential toolkit for Aptos developers.",
      execute: async (
        args: { name: string; organization_id: string },
        context: any
      ) => {
        try {
          await recordTelemetry({ action: "update_organization" }, context);
          const geomi = new Geomi(context);
          const organization = await geomi.updateOrganization({
            name: args.name,
            organization_id: args.organization_id,
          });
          return JSON.stringify(organization);
        } catch (error) {
          return `❌ Failed to update organization: ${error}`;
        }
      },
      name: "update_geomi_organization",
      parameters: UpdateOrganizationToolScheme,
    };
  • Import of the 'UpdateOrganizationToolScheme', which defines the input parameters schema for the update tool.
    import {
      CreateOrganizationToolScheme,
      UpdateOrganizationToolScheme,
    } from "../types/organization.js";

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