Skip to main content
Glama

deleteCompanies

Remove specified companies from the Mews hospitality platform by providing their IDs to manage customer and company data effectively.

Instructions

Deletes specified companies

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
CompanyIdsYesArray of company IDs to delete

Implementation Reference

  • The execute method implementing the core logic of the deleteCompanies tool. It processes input arguments and sends a request to the Mews API endpoint for deleting companies.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/companies/delete', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the expected parameters for the deleteCompanies tool: an object with a required 'CompanyIds' array of strings (max 1000 items).
    inputSchema: { type: 'object', properties: { CompanyIds: { type: 'array', items: { type: 'string' }, description: 'Array of company IDs to delete', maxItems: 1000 } }, required: ['CompanyIds'], additionalProperties: false },
  • Registers the deleteCompaniesTool by including it in the allTools array, which is used for tool lookup (toolMap) and MCP server definitions (getToolDefinitions).
    deleteCompaniesTool,

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