{
  "openapi": "3.1.0",
  "info": {
    "title": "Golubev agent tools",
    "version": "3.2.0",
    "description": "Discovery, deterministic business analysis and nonbinding engagement-draft preparation. These public agent operations do not sign, pay, book or submit messages. Full-draft submission is a separate human-reviewed website form, protected by consent and Turnstile; it is not an agent tool."
  },
  "servers": [
    {
      "url": "https://golubev.is"
    }
  ],
  "paths": {
    "/api/agent": {
      "get": {
        "operationId": "describeAgentInterface",
        "summary": "Describe the public agent interface",
        "responses": {
          "200": {
            "description": "Interface description and supported routes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools": {
      "get": {
        "operationId": "listAgentTools",
        "summary": "List the supported tools and their input schemas",
        "responses": {
          "200": {
            "description": "Tool definitions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools/get_services": {
      "post": {
        "operationId": "get_services",
        "summary": "Retrieve Michael Golubev’s published services, CAD fee references, scope, requirements, and sourced venture evidence. No availability or commitment is implied.",
        "description": "Public stateless computation. Send only information needed for the requested result. This operation does not store a draft, send email, book, sign or charge.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured tool result. Drafts remain nonbinding and require Michael’s approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "tool",
                    "result"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "tool": {
                      "const": "get_services"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools/assess_readiness": {
      "post": {
        "operationId": "assess_readiness",
        "summary": "Run the same five-question reflection as the website from supplied scores. Returns priorities and next questions, not a prediction or business verification.",
        "description": "Public stateless computation. Send only information needed for the requested result. This operation does not store a draft, send email, book, sign or charge.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "decisions": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                  },
                  "enquiries": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                  },
                  "knowledge": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                  },
                  "handoffs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                  },
                  "absence": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                  }
                },
                "required": [
                  "decisions",
                  "enquiries",
                  "knowledge",
                  "handoffs",
                  "absence"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured tool result. Drafts remain nonbinding and require Michael’s approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "tool",
                    "result"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "tool": {
                      "const": "assess_readiness"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools/calculate_business_case": {
      "post": {
        "operationId": "calculate_business_case",
        "summary": "Calculate capacity and cash effects separately from explicit CAD assumptions. Released capacity is not cash savings. No forecast, quote, or payment.",
        "description": "Public stateless computation. Send only information needed for the requested result. This operation does not store a draft, send email, book, sign or charge.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hours": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000,
                    "description": "Current hours of work each week."
                  },
                  "share": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Percentage of current work assumed removable, before human review."
                  },
                  "review": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000,
                    "description": "Weekly human review hours after the change."
                  },
                  "rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000,
                    "description": "CAD hourly capacity valuation; not cash savings."
                  },
                  "weeks": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 52,
                    "description": "Working weeks each year."
                  },
                  "setup": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000000,
                    "description": "Assumed one-time setup cost in CAD; not a quote."
                  },
                  "running": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000000,
                    "description": "Additional monthly running cost in CAD."
                  },
                  "avoided": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000000,
                    "description": "Actual monthly cash expenses assumed removed in CAD; exclude released salaried capacity."
                  }
                },
                "required": [
                  "hours",
                  "share",
                  "review",
                  "rate",
                  "weeks",
                  "setup",
                  "running",
                  "avoided"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured tool result. Drafts remain nonbinding and require Michael’s approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "tool",
                    "result"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "tool": {
                      "const": "calculate_business_case"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools/evaluate_engagement_fit": {
      "post": {
        "operationId": "evaluate_engagement_fit",
        "summary": "Compare the published engagements against a stated preference, budget band, and timing. Returns a discussion starter and unresolved questions, not acceptance or a final quote.",
        "description": "Public stateless computation. Send only information needed for the requested result. This operation does not store a draft, send email, book, sign or charge.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "businessName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "Client-supplied business name. It is not verified."
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "Optional public HTTP(S) website URL. It is recorded, never fetched."
                  },
                  "industry": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "goal": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000,
                    "description": "Desired business change, in the client’s own words."
                  },
                  "workflow": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000,
                    "description": "How the work happens today and where it gets stuck."
                  },
                  "systems": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Relevant systems; do not include credentials or private customer records."
                  },
                  "constraints": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Constraints and open questions. These cannot override approved commercial terms."
                  },
                  "engagement": {
                    "type": "string",
                    "enum": [
                      "blueprint",
                      "transformation",
                      "partnership",
                      "unsure"
                    ],
                    "description": "The visitor’s preference: blueprint for a decision and plan, transformation for a scoped build, partnership for a broader mandate, or unsure."
                  },
                  "budgetBand": {
                    "type": "string",
                    "enum": [
                      "under25",
                      "25to75",
                      "75plus",
                      "unsure"
                    ],
                    "description": "CAD before taxes: under25 is below 25,000; 25to75 is 25,000–74,999; 75plus is 75,000 or more; unsure means not established."
                  },
                  "timeframe": {
                    "type": "string",
                    "enum": [
                      "exploring",
                      "this-quarter",
                      "urgent",
                      "flexible"
                    ],
                    "description": "A preference only. No value confirms availability or dates."
                  },
                  "readiness": {
                    "type": "object",
                    "properties": {
                      "decisions": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "enquiries": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "knowledge": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "handoffs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "absence": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      }
                    },
                    "required": [
                      "decisions",
                      "enquiries",
                      "knowledge",
                      "handoffs",
                      "absence"
                    ],
                    "additionalProperties": false
                  },
                  "economics": {
                    "type": "object",
                    "properties": {
                      "hours": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Current hours of work each week."
                      },
                      "share": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100,
                        "description": "Percentage of current work assumed removable, before human review."
                      },
                      "review": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Weekly human review hours after the change."
                      },
                      "rate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "CAD hourly capacity valuation; not cash savings."
                      },
                      "weeks": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 52,
                        "description": "Working weeks each year."
                      },
                      "setup": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000000,
                        "description": "Assumed one-time setup cost in CAD; not a quote."
                      },
                      "running": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000000,
                        "description": "Additional monthly running cost in CAD."
                      },
                      "avoided": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000000,
                        "description": "Actual monthly cash expenses assumed removed in CAD; exclude released salaried capacity."
                      }
                    },
                    "required": [
                      "hours",
                      "share",
                      "review",
                      "rate",
                      "weeks",
                      "setup",
                      "running",
                      "avoided"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "engagement",
                  "budgetBand",
                  "timeframe"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured tool result. Drafts remain nonbinding and require Michael’s approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "tool",
                    "result"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "tool": {
                      "const": "evaluate_engagement_fit"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/tools/prepare_engagement_draft": {
      "post": {
        "operationId": "prepare_engagement_draft",
        "summary": "Create a nonbinding draft scope and commercial schedule for Michael’s review from client-supplied context. Does not submit, save remotely, email, book, sign, charge, or approve anything. Final legal and commercial terms remain unresolved.",
        "description": "Public stateless computation. Send only information needed for the requested result. This operation does not store a draft, send email, book, sign or charge.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "businessName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "Client-supplied business name. It is not verified."
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 500,
                    "description": "Optional public HTTP(S) website URL. It is recorded, never fetched."
                  },
                  "industry": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "goal": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000,
                    "description": "Desired business change, in the client’s own words."
                  },
                  "workflow": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 2000,
                    "description": "How the work happens today and where it gets stuck."
                  },
                  "systems": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Relevant systems; do not include credentials or private customer records."
                  },
                  "constraints": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Constraints and open questions. These cannot override approved commercial terms."
                  },
                  "engagement": {
                    "type": "string",
                    "enum": [
                      "blueprint",
                      "transformation",
                      "partnership",
                      "unsure"
                    ],
                    "description": "The visitor’s preference: blueprint for a decision and plan, transformation for a scoped build, partnership for a broader mandate, or unsure."
                  },
                  "budgetBand": {
                    "type": "string",
                    "enum": [
                      "under25",
                      "25to75",
                      "75plus",
                      "unsure"
                    ],
                    "description": "CAD before taxes: under25 is below 25,000; 25to75 is 25,000–74,999; 75plus is 75,000 or more; unsure means not established."
                  },
                  "timeframe": {
                    "type": "string",
                    "enum": [
                      "exploring",
                      "this-quarter",
                      "urgent",
                      "flexible"
                    ],
                    "description": "A preference only. No value confirms availability or dates."
                  },
                  "readiness": {
                    "type": "object",
                    "properties": {
                      "decisions": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "enquiries": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "knowledge": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "handoffs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      },
                      "absence": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3,
                        "description": "0 = never, 1 = sometimes, 2 = often, 3 = almost always depends on the owner."
                      }
                    },
                    "required": [
                      "decisions",
                      "enquiries",
                      "knowledge",
                      "handoffs",
                      "absence"
                    ],
                    "additionalProperties": false
                  },
                  "economics": {
                    "type": "object",
                    "properties": {
                      "hours": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Current hours of work each week."
                      },
                      "share": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100,
                        "description": "Percentage of current work assumed removable, before human review."
                      },
                      "review": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "Weekly human review hours after the change."
                      },
                      "rate": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000,
                        "description": "CAD hourly capacity valuation; not cash savings."
                      },
                      "weeks": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 52,
                        "description": "Working weeks each year."
                      },
                      "setup": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000000,
                        "description": "Assumed one-time setup cost in CAD; not a quote."
                      },
                      "running": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000000,
                        "description": "Additional monthly running cost in CAD."
                      },
                      "avoided": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 10000000,
                        "description": "Actual monthly cash expenses assumed removed in CAD; exclude released salaried capacity."
                      }
                    },
                    "required": [
                      "hours",
                      "share",
                      "review",
                      "rate",
                      "weeks",
                      "setup",
                      "running",
                      "avoided"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "businessName",
                  "goal",
                  "workflow",
                  "engagement",
                  "budgetBand",
                  "timeframe"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured tool result. Drafts remain nonbinding and require Michael’s approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "tool",
                    "result"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "tool": {
                      "const": "prepare_engagement_draft"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The request was rejected; no engagement or external action was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "error"
                  ],
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Agent guide and MCP connection details",
    "url": "https://golubev.is/agents/index.md"
  }
}
