Skip to main content
Glama

addAccountNotes

Add notes to customer accounts in Mews hospitality platform for tracking interactions, preferences, or important details.

Instructions

Adds new account notes to the system and assigns them to specified accounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
AccountNotesYesArray of note objects to create

Implementation Reference

  • The execute handler function that processes input arguments and makes an HTTP request to the Mews API endpoint '/api/connector/v1/accountNotes/add' to add account notes.
    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/accountNotes/add', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the expected structure: an object with 'AccountNotes' array, each item having 'AccountId', 'Text' (required), and optional 'Type'.
    inputSchema: { type: 'object', properties: { AccountNotes: { type: 'array', items: { type: 'object', properties: { AccountId: { type: 'string', description: 'Account ID to add note to' }, Text: { type: 'string', description: 'Note content' }, Type: { type: 'string', description: 'Note type or category' } }, required: ['AccountId', 'Text'] }, description: 'Array of note objects to create' } }, required: ['AccountNotes'], additionalProperties: false },
  • Import statement bringing in the addAccountNotesTool for registration.
    import { addAccountNotesTool } from './accountNotes/addAccountNotes.js';
  • Inclusion of addAccountNotesTool in the allTools array, which is used for tool registry and lookup.
    addAccountNotesTool,

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