Skip to main content
Glama

addAddresses

Add new addresses to customer accounts in the Mews hospitality platform. Specify address details including street lines, city, postal code, and country codes for accurate account management.

Instructions

Add new addresses to accounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
AddressesYes

Implementation Reference

  • Handler function that executes the tool by calling the Mews API to add addresses.
    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 the structure for the Addresses array, including 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'] },
  • Registration of the addAddressesTool in the allTools array exported for use in the MCP server.
    getAllAddressesTool, addAddressesTool,
  • src/tools/index.ts:5-5 (registration)
    Import statement bringing in the addAddressesTool for registration.
    import { addAddressesTool } from './accounts/addAddresses.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/code-rabi/mews-mcp'

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