Skip to main content
Glama

getAllAddresses

Retrieve all address data for specified accounts in the Mews hospitality platform to manage customer information and support operations.

Instructions

Get all addresses associated with specified accounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
AccountIdsYesArray of account IDs to get addresses for

Implementation Reference

  • The main handler function that executes the tool logic: calls the Mews API endpoint '/api/connector/v1/addresses/getAll' with provided AccountIds and returns the result as formatted JSON.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/addresses/getAll', args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the required 'AccountIds' array parameter for the tool.
    inputSchema: { type: 'object', properties: { AccountIds: { type: 'array', items: { type: 'string' }, description: 'Array of account IDs to get addresses for' } }, required: ['AccountIds'] },
  • Registers the getAllAddressesTool in the central allTools array, which is used to generate tool definitions for MCP server and populate the toolMap.
    getAllAddressesTool,
  • src/tools/index.ts:4-4 (registration)
    Imports the getAllAddressesTool for inclusion in the tools registry.
    import { getAllAddressesTool } from './accounts/getAllAddresses.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