NannyFYI

NannyFYI MCP 接入文档

本页提供可直接用于 AI Agent 的 MCP 端点、方法与工具调用示例。

端点

https://nanny.fyi/api/mcp

支持的方法

工具列表

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2024-11-05"
  }
}
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list"
}

工具调用示例

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "find_nannies",
    "arguments": {
      "top": 5,
      "country": "US",
      "state": "CA",
      "city": "Sunnyvale",
      "distance": 30,
      "language": "Mandarin"
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "verify_certificate",
    "arguments": {
      "certificateId": "ABCD1234"
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "get_nanny_profile",
    "arguments": {
      "id": "6366c7c954c9536d6c04bc35"
    }
  }
}