Skip to main content
Glama

addAddresses

Enhance account details by adding new addresses, including street, city, postal code, and country information, via the Mews MCP server for streamlined customer and company management.

Instructions

Add new addresses to accounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
AddressesYes

Implementation Reference

  • The execute function implements the tool logic by calling the Mews API endpoint '/api/connector/v1/addresses/add' with the input arguments and returning the JSON result.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/addresses/add', args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining a required 'Addresses' array, where each item is an object with required 'AccountId' and optional address fields.
    inputSchema: { type: 'object', properties: { Addresses: { type: 'array', items: { type: 'object', properties: { AccountId: { type: 'string', description: 'Account ID to add address to' }, Line1: { type: 'string', description: 'First line of address' }, Line2: { type: 'string', description: 'Second line of address' }, City: { type: 'string', description: 'City' }, PostalCode: { type: 'string', description: 'Postal/ZIP code' }, CountryCode: { type: 'string', description: 'ISO country code' }, CountrySubdivisionCode: { type: 'string', description: 'State/province code' } }, required: ['AccountId'] } } }, required: ['Addresses'] },
  • The addAddressesTool is imported and registered in the 'allTools' array, making it available for execution.
    // Account tools getAllAddressesTool, addAddressesTool,

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/code-rabi/mews-mcp'

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