← 返回
效率工具 中文

Access global ocean tides model. Functions include tide height at a given date/time/location, tide extrema, and grid weather data.

Access global ocean tides model. Functions include tide height at a given date/time/location, tide extrema, and grid weather data.
访问全球海洋潮汐模型。功能包括查询指定日期、时间和地点的潮高、潮汐极值及格点天气数据。
hamandmore
效率工具 clawhub v1.0.0 1 版本 99744.5 Key: 无需
★ 0
Stars
📥 1,171
下载
💾 33
安装
1
版本
#latest

概述

Tides JSON-RPC Access

Use this guide to call the deployed API directly:

  • Base URL: https://hamandmore.net/api/harmonics/mcp
  • Method: POST
  • Content-Type: application/json
  • Protocol: JSON-RPC 2.0 request envelope

Authentication

Use one of these modes:

  • Anonymous: no Authorization header (free tier rate limits)
  • Keyed: add Authorization: Bearer or Authorization: Basic
  • Need higher usage tiers? Request authentication by emailing hamandmore@gmail.com.

Important:

  • Basic here is an opaque token prefix, not RFC Basic base64 decoding.
  • Tokens do not need to be valid base64.

JSON-RPC Envelope

Always send:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}
  • id: any client correlation value
  • method: one of initialize, tools/list, tools/call
  • params: object (required shape depends on method)

Quick Start Commands

Initialize:

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

List tools:

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

List tools (keyed tier):

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  -H 'authorization: Bearer YOUR_TOKEN' \
  --data '{"jsonrpc":"2.0","id":3,"method":"tools/list","params":{}}'

Tool Call Pattern

All tool calls use:

{
  "jsonrpc": "2.0",
  "id": 10,
  "method": "tools/call",
  "params": {
    "name": "TOOL_NAME",
    "arguments": {}
  }
}

Curl Examples

1) Current time (tides_time)

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":10,"method":"tools/call","params":{"name":"tides_time","arguments":{}}}'

2) Single tide value (tides_single)

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":11,"method":"tools/call","params":{"name":"tides_single","arguments":{"latitude":40.7128,"longitude":-74.0060,"time":"2026-02-10T00:00:00Z"}}}'

3) Tide extrema (tides_extrema)

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":12,"method":"tools/call","params":{"name":"tides_extrema","arguments":{"latitude":40.7128,"longitude":-74.0060,"start_time":"2026-02-10T00:00:00Z","end_time":"2026-02-11T00:00:00Z"}}}'

4) Weather points (weather_met)

curl -sS -X POST https://hamandmore.net/api/harmonics/mcp \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":13,"method":"tools/call","params":{"name":"weather_met","arguments":{"latitude":40.7128,"longitude":-74.0060,"start_time":"2026-02-10T00:00:00Z","variables":["wind/surface/0","tmp/surface/0"]}}}'

Response Shape

Successful responses include:

  • result.content[0].text: stringified JSON result
  • result.structuredContent: same result as an object (preferred)

Errors use JSON-RPC error:

  • -32602: invalid params
  • -32601: method not found
  • -32603: server/tool exception

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,788
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,410
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 430 📥 103,734