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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the organization to update. | |
| organization_id | Yes | The organization id to update the organization for. |
Implementation Reference
- src/tools/geomi/organization.ts:36-51 (handler)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}`; } }, - src/tools/geomi/organization.ts:33-54 (registration)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, }; - src/tools/geomi/organization.ts:3-6 (schema)Import of the 'UpdateOrganizationToolScheme', which defines the input parameters schema for the update tool.
import { CreateOrganizationToolScheme, UpdateOrganizationToolScheme, } from "../types/organization.js";