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
| Name | Required | Description | Default |
|---|---|---|---|
| Addresses | Yes |
Implementation Reference
- src/tools/accounts/addAddresses.ts:31-39 (handler)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'] },
- src/tools/index.ts:88-90 (registration)The addAddressesTool is imported and registered in the 'allTools' array, making it available for execution.// Account tools getAllAddressesTool, addAddressesTool,