Skip to main content
Glama

getAllCountries

Retrieve a list of all countries supported by the Mews API to enable global hospitality operations, including customer management, reservations, and financial transactions.

Instructions

Returns all countries supported by the API

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute function that performs the core logic: calls the Mews API to get all countries and returns the result as formatted JSON.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/countries/getAll', {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema specifying no input parameters are required.
    inputSchema: { type: 'object', properties: {}, additionalProperties: false },
  • Import statement that brings the tool definition into the central index.
    import { getAllCountriesTool } from './configuration/getAllCountries.js';
  • Adds the tool to the allTools array for global registration.
    getAllCountriesTool,

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