Skip to main content
Glama

pylon_update_account

Modify account details in the Pylon customer support platform by updating name, domains, owner, tags, or logo.

Instructions

Update an existing account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe account ID
nameNoNew name for the account
domainsNoUpdated list of domains
primary_domainNoUpdated primary domain
logo_urlNoUpdated logo URL
owner_idNoUpdated owner ID
tagsNoUpdated tags

Implementation Reference

  • src/index.ts:101-119 (registration)
    Registration of the 'pylon_update_account' tool with input schema and handler function that delegates to PylonClient.updateAccount
    server.tool( 'pylon_update_account', 'Update an existing account', { id: z.string().describe('The account ID'), name: z.string().optional().describe('New name for the account'), domains: z.array(z.string()).optional().describe('Updated list of domains'), primary_domain: z.string().optional().describe('Updated primary domain'), logo_url: z.string().optional().describe('Updated logo URL'), owner_id: z.string().optional().describe('Updated owner ID'), tags: z.array(z.string()).optional().describe('Updated tags'), }, async ({ id, ...data }) => { const result = await client.updateAccount(id, data); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, );
  • MCP tool handler for pylon_update_account, which calls the PylonClient and formats the response
    async ({ id, ...data }) => { const result = await client.updateAccount(id, data); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; },
  • Zod input schema for the pylon_update_account tool parameters
    id: z.string().describe('The account ID'), name: z.string().optional().describe('New name for the account'), domains: z.array(z.string()).optional().describe('Updated list of domains'), primary_domain: z.string().optional().describe('Updated primary domain'), logo_url: z.string().optional().describe('Updated logo URL'), owner_id: z.string().optional().describe('Updated owner ID'), tags: z.array(z.string()).optional().describe('Updated tags'), },
  • PylonClient.updateAccount method that makes the PATCH API request to update an account
    async updateAccount( id: string, data: Partial<Account>, ): Promise<SingleResponse<Account>> { return this.request<SingleResponse<Account>>( 'PATCH', `/accounts/${id}`, data, ); }
  • TypeScript interface for Account used in updateAccount parameters and response
    export interface Account { id: string; name: string; domains?: string[]; primary_domain?: string; logo_url?: string; owner_id?: string; channels?: object[]; custom_fields?: object; external_ids?: object[]; tags?: string[]; }

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/JustinBeckwith/pylon-mcp'

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