{
    "openapi": "3.0.3",
    "info": {
        "title": "Ark River \u2014 SSC Agentic API",
        "description": "Agent-callable API for scheduling inspections and requesting callbacks.",
        "version": "5.8.101"
    },
    "servers": [
        {
            "url": "https://www.arkriver.org"
        }
    ],
    "paths": {
        "/wp-json/ssc/v1/mcp": {
            "post": {
                "summary": "Call a tool: request_callback",
                "description": "JSON-RPC 2.0. Set method to \"tools/call\", params.name to the tool and params.arguments to its fields. \"tools/list\" returns every tool with its input schema.",
                "operationId": "callTool",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "jsonrpc",
                                    "id",
                                    "method",
                                    "params"
                                ],
                                "properties": {
                                    "jsonrpc": {
                                        "type": "string",
                                        "enum": [
                                            "2.0"
                                        ]
                                    },
                                    "id": {
                                        "type": "integer"
                                    },
                                    "method": {
                                        "type": "string",
                                        "enum": [
                                            "tools/call"
                                        ]
                                    },
                                    "params": {
                                        "type": "object",
                                        "required": [
                                            "name",
                                            "arguments"
                                        ],
                                        "properties": {
                                            "name": {
                                                "type": "string",
                                                "enum": [
                                                    "request_callback"
                                                ]
                                            },
                                            "arguments": {
                                                "oneOf": [
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "contact_name",
                                                            "contact_phone"
                                                        ],
                                                        "properties": {
                                                            "contact_name": {
                                                                "type": "string"
                                                            },
                                                            "contact_phone": {
                                                                "type": "string"
                                                            },
                                                            "best_time": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "JSON-RPC result. On success result.content[0].text is the JSON of {success, confirmation_id, confirmation_message}; on refusal (missing fields, rate limit) the body carries error.message."
                    }
                }
            }
        }
    }
}