addAccountNotes
Adds notes to specified accounts in the Mews hospitality platform, enabling efficient account management by organizing and categorizing relevant information.
Instructions
Adds new account notes to the system and assigns them to specified accounts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| AccountNotes | Yes | Array of note objects to create |
Implementation Reference
- The execute function implements the core logic of the addAccountNotes tool by forwarding the input arguments to the Mews API endpoint '/api/connector/v1/accountNotes/add' via mewsRequest utility and returning the formatted result.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 validates the tool input as an object containing an array of AccountNotes, each requiring AccountId and Text, with 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 },
- src/tools/index.ts:52-52 (registration)Import statement that brings the addAccountNotesTool into the index module for registration.import { addAccountNotesTool } from './accountNotes/addAccountNotes.js';
- src/tools/index.ts:137-137 (registration)Inclusion of addAccountNotesTool in the allTools array, which populates the toolMap for execution and provides definitions for MCP server.addAccountNotesTool,