Skip to main content
Glama

get_high_tide_flooding_daily

Retrieve daily high tide flooding counts for a specific station, filtering by date range, flood threshold, and datum reference. Supports JSON, XML, and CSV output formats.

Instructions

Get high tide flooding daily count data for a station

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
begin_dateNoStart date (YYYYMMDD format)
datumNoDatum reference for DPAPI
end_dateNoEnd date (YYYYMMDD format)
formatNoOutput format (json, xml, csv)
stationYesStation ID
thresholdNoFlood threshold level
yearNoYear for analysis (YYYY format)

Implementation Reference

  • Registers the 'get_high_tide_flooding_daily' tool with the FastMCP server, including name, description, input schema, and handler function that delegates to DpapiService and returns JSON.
    server.addTool({ name: 'get_high_tide_flooding_daily', description: 'Get high tide flooding daily count data for a station', parameters: HighTideFloodingDailySchema, execute: async (params) => { try { const result = await dpapiService.getHighTideFloodingDaily(params); return JSON.stringify(result); } catch (error) { if (error instanceof Error) { throw new Error(`Failed to get high tide flooding daily data: ${error.message}`); } throw new Error('Failed to get high tide flooding daily data'); } } });
  • Zod schema defining the input parameters for the get_high_tide_flooding_daily tool, including station, format, datum, threshold, and date range options.
    export const HighTideFloodingDailySchema = z.object({ station: StationSchema, format: FormatSchema, datum: DpapiDatumSchema, threshold: ThresholdSchema, begin_date: z.string().optional().describe('Start date (YYYYMMDD format)'), end_date: z.string().optional().describe('End date (YYYYMMDD format)'), year: YearSchema }).describe('Get high tide flooding daily count data');
  • DpapiService method implementing the core logic: extracts parameters and calls fetchDpapi with the '/htf/daily' endpoint to retrieve data from NOAA DPAPI.
    async getHighTideFloodingDaily(params: Record<string, any>): Promise<any> { const { station, format = 'json', ...rest } = params; return this.fetchDpapi('/htf/daily', { station, format, ...rest }); }

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/RyanCardin15/NOAA-TidesAndCurrents-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server