AroFlo: Get LastUpdate
aroflo_get_lastupdateQuery the AroFlo lastupdate zone to retrieve incremental data for synchronization workflows, enabling efficient data updates.
Instructions
Query the AroFlo lastupdate zone for incremental sync workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoneName | No | ||
| sinceUtc | No | ||
| orderDirection | No | asc | |
| page | No | ||
| pageSize | No | ||
| mode | No | ||
| verbose | No | ||
| debug | No | ||
| raw | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/tools/get-lastupdate.ts:36-84 (handler)The handler function for the 'aroflo_get_lastupdate' tool, which constructs the query parameters and calls the AroFlo client.
async (args) => { const mode = resolveOutputMode(args); const envelopeRequested = typeof args.mode === 'string' || Boolean(args.raw) || Boolean(args.verbose); try { const where: string[] = []; if (args.zoneName) { where.push(`and|zonename|=|${args.zoneName}`); } if (args.sinceUtc) { where.push(`and|lastupdateutc|>|${args.sinceUtc}`); } const response = await client.get('lastupdate', { where, order: [`lastupdateutc|${args.orderDirection}`], page: args.page, pageSize: args.pageSize }); if (!envelopeRequested) { return successToolResult(response); } const out = buildZoneDataEnvelope({ zone: 'LastUpdate', response, page: args.page, pageSize: args.pageSize, mode, debug: mode === 'debug' || mode === 'raw' ? { zone: 'LastUpdate', normalized: { where, order: [`lastupdateutc|${args.orderDirection}`], page: args.page, pageSize: args.pageSize } } : undefined }); return successToolResult(out); } catch (error) { return errorToolResult(error, { mode, debug: { zone: 'LastUpdate' } }); } } - src/mcp/tools/get-lastupdate.ts:21-35 (registration)The registration of the 'aroflo_get_lastupdate' tool within the MCP server using registerTool.
server.registerTool( 'aroflo_get_lastupdate', { title: 'AroFlo: Get LastUpdate', description: 'Query the AroFlo lastupdate zone for incremental sync workflows.', inputSchema, // MCP SDK expects output schemas to be object schemas (or raw object shapes). // `z.any()` causes output validation to crash under the current SDK. outputSchema: z.object({}).passthrough(), annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true } }, - src/mcp/tools/get-lastupdate.ts:8-18 (schema)The input schema definition for the 'aroflo_get_lastupdate' tool.
const inputSchema = { zoneName: z.string().min(1).optional(), sinceUtc: z.string().min(1).optional(), orderDirection: z.enum(['asc', 'desc']).default('asc'), page: z.number().int().positive().default(1), pageSize: z.number().int().positive().max(500).optional(), mode: z.enum(['data', 'verbose', 'debug', 'raw']).optional(), verbose: z.boolean().optional(), debug: z.boolean().optional(), raw: z.boolean().optional() };