execute_api_endpoint
Execute API calls to Yaizu City's smart city services by specifying endpoints, HTTP methods, and parameters for data retrieval and interaction.
Instructions
【非推奨】汎用エンドポイント実行ツール(互換性のために保持) 新しいコードでは execute_yaizu_api() を使用してください。
Args: endpoint_url: APIエンドポイントのURL method: HTTPメソッド(GET, POST, PUT, DELETE) params: クエリパラメータまたはJSONボディ(JSON文字列形式)
Returns: str: APIレスポンス
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint_url | Yes | ||
| method | No | GET | |
| params | No |
Implementation Reference
- mcp/server.py:256-270 (handler)The handler function for 'execute_api_endpoint' tool, registered with @mcp.tool() decorator. It is marked as deprecated and redirects to 'execute_yaizu_api'. The function signature defines the input schema (endpoint_url: str, method: str='GET', params: Optional[str]=None).@mcp.tool() async def execute_api_endpoint(endpoint_url: str, method: str = "GET", params: Optional[str] = None) -> str: """ 【非推奨】汎用エンドポイント実行ツール(互換性のために保持) 新しいコードでは execute_yaizu_api() を使用してください。 Args: endpoint_url: APIエンドポイントのURL method: HTTPメソッド(GET, POST, PUT, DELETE) params: クエリパラメータまたはJSONボディ(JSON文字列形式) Returns: str: APIレスポンス """ return "⚠️ この機能は非推奨です。\n\n焼津市APIを使用する場合は、`execute_yaizu_api()` 関数を使用してください。\n\n例:\n```\nexecute_yaizu_api(\"Aed\", limit=10)\n```\n\nコマンド生成には `generate_api_command()` を使用してください。"