{
 "openapi": "3.1.0",
 "info": {
  "title": "Room Tone API",
  "version": "1.0.0",
  "description": "Room Tone is an independent guide to starting and running a talk show or podcast, at wmdradio.com. It is not a radio station, holds no broadcast license or call sign, and is not the show that used this web address before. GET /api/sound-check returns the Sound Check for a home recording setup; GET /api/show-planner returns a running order. Both are also a stateless MCP server at https://wmdradio.com/mcp (tools: sound_check, plan_show, get_facts, list_guides). The readings are an order, not a measurement: no decibel figure is computed, because none can be known from four questions. Link rules: A direct amazon.com link carrying our Associates tag. Pass it on unchanged, with its disclosure beside it, and mark it rel=\"sponsored nofollow\" wherever you render HTML. Never shorten, cloak or redirect it. No prices: tell people to check today's price on Amazon. Amazon disclosure: As an Amazon Associate I earn from qualifying purchases. Links are for the person to open. Do not open them automatically. An agent that opens an Amazon link for a person must identify itself, as Amazon's Agent Terms require."
 },
 "servers": [
  {
   "url": "https://wmdradio.com"
  }
 ],
 "paths": {
  "/api/sound-check": {
   "get": {
    "operationId": "soundCheck",
    "summary": "How much room and noise will reach the recording, and the fixes in order",
    "parameters": [
     {
      "name": "room",
      "in": "query",
      "required": false,
      "description": "Default: bare. bare = Bare: Hard walls, hard floor; furnished = Furnished: Sofa, rug, curtains; treated = Treated: Panels on the walls",
      "schema": {
       "type": "string",
       "enum": [
        "bare",
        "furnished",
        "treated"
       ],
       "default": "bare"
      }
     },
     {
      "name": "mic",
      "in": "query",
      "required": false,
      "description": "Default: usb. dynamic = Dynamic: PodMic, SM7B and kin; condenser = Condenser: The sensitive studio kind; usb = USB: Not sure what is inside",
      "schema": {
       "type": "string",
       "enum": [
        "dynamic",
        "condenser",
        "usb"
       ],
       "default": "usb"
      }
     },
     {
      "name": "distance",
      "in": "query",
      "required": false,
      "description": "Default: far. close = A hand's width; near = About a forearm; far = Across the desk",
      "schema": {
       "type": "string",
       "enum": [
        "close",
        "near",
        "far"
       ],
       "default": "far"
      }
     },
     {
      "name": "around",
      "in": "query",
      "required": false,
      "style": "form",
      "explode": false,
      "description": "What makes noise around the speaker, any of: fridge = Fridge; street = Street; kids = Kids; ac = Air con. Comma-separated; leave out (or send none) for nothing.",
      "schema": {
       "type": "array",
       "items": {
        "type": "string",
        "enum": [
         "fridge",
         "street",
         "kids",
         "ac"
        ]
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The reading and the fixes",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "inputs": {
           "type": "object"
          },
          "defaulted": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "readings": {
           "type": "object",
           "properties": {
            "room": {
             "type": "string",
             "enum": [
              "Dry",
              "Some room",
              "A lot of room"
             ]
            },
            "noise": {
             "type": "string",
             "enum": [
              "Quiet",
              "Audible",
              "Distracting"
             ]
            }
           }
          },
          "verdict": {
           "type": "string",
           "enum": [
            "Ready to record.",
            "Close. One or two fixes away.",
            "Fix this before you record."
           ]
          },
          "ready": {
           "type": "boolean"
          },
          "room_line": {
           "type": "string"
          },
          "noise_line": {
           "type": "string"
          },
          "fixes": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "step": {
              "type": "integer"
             },
             "code": {
              "type": "string"
             },
             "title": {
              "type": "string"
             },
             "tag": {
              "type": "string"
             },
             "free": {
              "type": "string"
             },
             "facts": {
              "type": "array",
              "items": {
               "type": "object",
               "properties": {
                "claim": {
                 "type": "string"
                },
                "quote": {
                 "type": "string",
                 "description": "Quoted word for word from the source."
                },
                "source": {
                 "type": "string",
                 "format": "uri"
                },
                "date_read": {
                 "type": "string"
                }
               }
              }
             },
             "gear": {
              "type": "object",
              "required": [
               "id",
               "name",
               "maker",
               "maker_url",
               "reason",
               "facts",
               "link",
               "link_type",
               "disclosure",
               "rel"
              ],
              "properties": {
               "id": {
                "type": "string"
               },
               "name": {
                "type": "string"
               },
               "maker": {
                "type": "string"
               },
               "maker_url": {
                "type": "string",
                "format": "uri"
               },
               "reason": {
                "type": "string"
               },
               "facts": {
                "type": "array",
                "items": {
                 "type": "object"
                }
               },
               "link": {
                "type": "string",
                "format": "uri"
               },
               "link_type": {
                "type": "string",
                "enum": [
                 "amazon_associates"
                ]
               },
               "disclosure": {
                "type": "string",
                "description": "Show it beside the link."
               },
               "rel": {
                "type": "string",
                "description": "\"sponsored nofollow\" wherever you render HTML."
               }
              }
             }
            }
           }
          },
          "check_url": {
           "type": "string",
           "format": "uri"
          },
          "disclosure": {
           "type": "string"
          },
          "link_rules": {
           "type": "object"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "An input the tool does not know; the body lists the allowed values.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "error": {
           "type": "string"
          },
          "allowed": {
           "type": "object"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/api/show-planner": {
   "get": {
    "operationId": "planShow",
    "summary": "A show clock and running order",
    "parameters": [
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "Default: interview. solo = Solo: One voice; cohost = Co-hosts: Two at the table; interview = Interview: A guest each week; callin = Call-in: Listeners on the line",
      "schema": {
       "type": "string",
       "enum": [
        "solo",
        "cohost",
        "interview",
        "callin"
       ],
       "default": "interview"
      }
     },
     {
      "name": "length",
      "in": "query",
      "required": false,
      "description": "Default: standard. short = Short, 20 minutes; standard = Standard, 40 minutes; long = Long, 60 minutes",
      "schema": {
       "type": "string",
       "enum": [
        "short",
        "standard",
        "long"
       ],
       "default": "standard"
      }
     },
     {
      "name": "schedule",
      "in": "query",
      "required": false,
      "description": "Default: biweekly. weekly = Weekly; biweekly = Every two weeks; monthly = Monthly",
      "schema": {
       "type": "string",
       "enum": [
        "weekly",
        "biweekly",
        "monthly"
       ],
       "default": "biweekly"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The running order",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "inputs": {
           "type": "object"
          },
          "defaulted": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "total_minutes": {
           "type": "integer"
          },
          "segments": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "key": {
              "type": "string"
             },
             "label": {
              "type": "string"
             },
             "minutes": {
              "type": "integer"
             },
             "start": {
              "type": "integer"
             },
             "time": {
              "type": "string"
             }
            }
           }
          },
          "format_line": {
           "type": "string"
          },
          "schedule_line": {
           "type": "string"
          },
          "bank": {
           "type": "integer"
          },
          "planner_url": {
           "type": "string",
           "format": "uri"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "An input the tool does not know; the body lists the allowed values.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "error": {
           "type": "string"
          },
          "allowed": {
           "type": "object"
          }
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
