{
  "openapi": "3.1.0",
  "info": {
    "title": "All AI LLC API: documents, calculators and data (lite: documents, invoices, calculators)",
    "version": "0.1.53",
    "description": "One-time prepaid credits (no subscriptions). Paid tools charge only after a successful result. Keyless callers get up to 3 free trial calls a day per network, shared across all paid tools (also capped at 10 per client and 15 per provider range; resets 00:00 UTC). Same tools on MCP at https://allai-api.allaihq.workers.dev/mcp. Lite spec: document, invoice and calculator routes only. Full spec: https://allai-api.allaihq.workers.dev/openapi.json",
    "x-operator": "All AI LLC",
    "contact": {
      "email": "ops@allaiforms.com"
    },
    "x-guidance": "POST /v1/tools/{tool} with a JSON body (see each operation schema). Each paid tool answers 3 free trial calls a day per network (shared), then HTTP 402 with an x402 v2 challenge (USDC on Base, exact scheme, price in x-payment-info): sign accepts[0] and retry with the PAYMENT-SIGNATURE header, or buy prepaid credits once and send Authorization: Bearer. Charged only after a successful result. Same tools over MCP at /mcp. Full list: /v1/tools or /llms.txt.",
    "x-subscriptions": false,
    "x-support": "ops@allaiforms.com",
    "termsOfService": "https://allai-api.allaihq.workers.dev/terms",
    "x-logo": {
      "url": "https://allai-api.allaihq.workers.dev/logo.svg"
    }
  },
  "servers": [
    {
      "url": "https://allai-api.allaihq.workers.dev",
      "description": "Live"
    }
  ],
  "paths": {
    "/v1/pricing": {
      "get": {
        "summary": "Live prepaid prices and pack payment links",
        "responses": {
          "200": {
            "description": "Pricing"
          }
        }
      }
    },
    "/v1/tools/generate_job_hazard_analysis": {
      "post": {
        "operationId": "tool_generate_job_hazard_analysis",
        "summary": "Job Hazard Analysis (PDF and Word)",
        "description": "Break a job into steps, list the hazards of each step, and record the controls, using the task-step-hazard-control method in OSHA Publication 3071. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/job-hazard-analysis/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_job_hazard_analysis or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_emergency_action_plan": {
      "post": {
        "operationId": "tool_generate_emergency_action_plan",
        "summary": "Emergency Action Plan (PDF and Word)",
        "description": "Write a site-specific emergency action plan organized around the six minimum elements in OSHA 29 CFR 1910.38(c): reporting, evacuation, critical operations, accounting for employees, rescue and medical duties, and who to contact. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/emergency-action-plan/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_emergency_action_plan or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_fire_prevention_plan": {
      "post": {
        "operationId": "tool_generate_fire_prevention_plan",
        "summary": "Fire Prevention Plan (PDF and Word)",
        "description": "A fire prevention plan organized around the elements in OSHA 29 CFR 1910.39, plus a monthly portable fire extinguisher check log and a housekeeping checklist. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/fire-prevention-plan/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_fire_prevention_plan or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_equipment_inspection_checklist": {
      "post": {
        "operationId": "tool_generate_equipment_inspection_checklist",
        "summary": "Equipment Inspection Checklist (PDF and Word)",
        "description": "A pre-use or periodic inspection checklist with starter items for forklifts, aerial lifts, ladders, compressors, vehicles and general machinery. The inspector records each item and decides whether the equipment stays in service. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/equipment-inspection-checklist/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_equipment_inspection_checklist or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_hot_work_permit": {
      "post": {
        "operationId": "tool_generate_hot_work_permit",
        "summary": "Hot Work Permit (PDF and Word)",
        "description": "A one-job, one-shift hot-work permit with a precautions checklist, fire watch record and closeout, following the permit approach in OSHA 29 CFR 1910.252 and NFPA 51B. Your Permit Authorizing Individual completes and signs it. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/hot-work-permit/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_hot_work_permit or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_incident_investigation": {
      "post": {
        "operationId": "tool_generate_incident_investigation",
        "summary": "Workplace Incident Investigation (PDF and Word)",
        "description": "Document what happened, the timeline, witness accounts, contributing factors, root causes and corrective actions, following the approach in OSHA's incident investigation guide for employers. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/incident-investigation/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_incident_investigation or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_near_miss_report": {
      "post": {
        "operationId": "tool_generate_near_miss_report",
        "summary": "Near-Miss Report and Log (PDF and Word)",
        "description": "A quick near-miss report (what happened, what could have happened, suggested fix) plus a running log so you can track follow-up and spot patterns before someone gets hurt. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/near-miss-report/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_near_miss_report or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_root_cause_analysis": {
      "post": {
        "operationId": "tool_generate_root_cause_analysis",
        "summary": "Root-Cause Analysis (PDF and Word)",
        "description": "Work a problem down to its root causes with 5 whys and a fishbone (6M) breakdown, then record corrective and preventive actions and how you will check they worked. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/root-cause-analysis/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_root_cause_analysis or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_independent_contractor_agreement_organizer": {
      "post": {
        "operationId": "tool_generate_independent_contractor_agreement_organizer",
        "summary": "Independent Contractor Agreement Worksheet (PDF and Word)",
        "description": "Organize the terms of an independent contractor agreement before you sign one: scope, deliverables, fee, payment timing, ownership of work, confidentiality and ending the work, with general state notes. It does not decide whether someone is an employee or a contractor. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/independent-contractor-agreement-organizer/ . This is a template and organizer, not legal advice. ALL AI Forms is not a law firm. State notes are general information that can change; check the official sources and consider having a lawyer review your agreement.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_independent_contractor_agreement_organizer or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_profit_margin_break_even_calculator": {
      "post": {
        "operationId": "tool_generate_profit_margin_break_even_calculator",
        "summary": "Profit Margin and Break-Even Report (PDF and Word)",
        "description": "Enter your price, costs and expected sales to see your margin, markup, break-even point and the sales you need for a profit goal. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/profit-margin-break-even-calculator/ . Estimates from the numbers you enter. Not tax, accounting or financial advice.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_profit_margin_break_even_calculator or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_llc_operating_agreement_organizer": {
      "post": {
        "operationId": "tool_generate_llc_operating_agreement_organizer",
        "summary": "LLC Operating Agreement Term Sheet (owners' draft) (PDF and Word)",
        "description": "Record the decisions the owners make about running their LLC (members and ownership, contributions, management, voting, distributions, transfers, departures and dissolution) and get a term-sheet draft, an ownership and voting table, and a list of open items. Anything the owners have not decided prints as UNDECIDED. It does not recommend terms. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/llc-operating-agreement-organizer/ . This is an organizer, not legal or tax advice. ALL AI Forms is not a law firm. It records the owners' own decisions and does arithmetic on them; it does not recommend terms or say that an agreement is enforceable or protects anyone. Each state's LLC law controls. Review by a licensed attorney is recommended before anyone signs.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_llc_operating_agreement_organizer or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_business_plan_generator": {
      "post": {
        "operationId": "tool_generate_business_plan_generator",
        "summary": "Business Plan (PDF and Word)",
        "description": "Write your business plan in the section order the SBA describes and enter your own revenue, cost, payroll and loan assumptions. The tool builds monthly profit and loss, cash flow, loan payments, break-even and a sensitivity grid from your numbers. Every projection is labeled as your assumption, not a forecast. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/business-plan-generator/ . This is an organizer and calculator, not financial, investment, lending or tax advice. Every number is the owner's own assumption, not a forecast or promise, and nothing here says a lender or investor will accept the plan.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_business_plan_generator or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_employee_onboarding_package": {
      "post": {
        "operationId": "tool_generate_employee_onboarding_package",
        "summary": "Employee Onboarding Package (PDF and Word)",
        "description": "A new-hire paperwork and first-90-days package for a small employer: a dated checklist built from the first day of work (Form I-9 and W-4 steps, state new-hire report, accounts, training, 30-60-90 check-ins), policy acknowledgments, an equipment issue record and a 30-60-90 plan. It links the official forms and does not fill them in. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/employee-onboarding-package/ . This is an organizer, not legal, tax or immigration advice. It points to the official forms and does not complete or interpret Form W-4 or Form I-9, and it does not decide classification, exempt status, pay, leave or benefits eligibility. State rules vary; check your state's pages. Finishing the checklist does not make an employer compliant.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_employee_onboarding_package or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_independent_contractor_onboarding_checklist": {
      "post": {
        "operationId": "tool_generate_independent_contractor_onboarding_checklist",
        "summary": "Independent Contractor Onboarding Record (PDF and Word)",
        "description": "Bring a contractor on board in order: request the W-9 before the first payment, record the agreed scope and payment terms, track the insurance or license documents they supply, keep a running payment total against the 1099-NEC threshold you enter, log system access and run an off-boarding list. It does not decide whether anyone is an employee or a contractor. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/independent-contractor-onboarding-checklist/ . This is an organizer, not legal or tax advice. It does not decide whether a worker is an employee or an independent contractor and does not say whether a Form 1099-NEC is required for a payee. It does not verify insurance, licenses or identity. Follow the IRS and Department of Labor pages and ask a qualified adviser.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_independent_contractor_onboarding_checklist or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_business_expense_report_generator": {
      "post": {
        "operationId": "tool_generate_business_expense_report_generator",
        "summary": "Expense Report (PDF and Word)",
        "description": "Build a clean expense report from your receipts: line items by category, mileage at the IRS business rate for the trip date (or your own rate), per diem you enter, advances, and the amount owed to you or back to the company, with flags for missing receipts, possible duplicates and dates outside the period. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/business-expense-report-generator/ . This is an organizer that adds up your entries. It does not decide what is deductible, reimbursable under any plan, or taxable, and it is not an accounting system or a substitute for your employer's expense policy. Rates shown come from the IRS page on the date noted; confirm them before you submit.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_business_expense_report_generator or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_customer_complaint_resolution_workflow": {
      "post": {
        "operationId": "tool_generate_customer_complaint_resolution_workflow",
        "summary": "Customer Complaint Resolution Workflow (PDF and Word)",
        "description": "A complaint log with deadlines and a written procedure built from your own rules: you set the acknowledgment and resolution targets, categories and escalation words; the tool works out due dates, flags overdue and repeat issues, summarizes results, and drafts acknowledgment, status, resolution and closing letters for you to edit. It sends nothing. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/customer-complaint-resolution-workflow/ . This is an operational template. It does not give legal, insurance, medical or financial advice, does not decide fault or what a customer is owed, and does not guarantee that following it satisfies any law, contract or standard. Complaints in regulated settings follow that regulator's rules.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_customer_complaint_resolution_workflow or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_preventive_maintenance_generator": {
      "post": {
        "operationId": "tool_generate_preventive_maintenance_generator",
        "summary": "Preventive Maintenance Schedule (PDF and Word)",
        "description": "Turn your equipment list and the service tasks and intervals from your manuals into a dated maintenance schedule with overdue and due-soon lists, weekly workload against your technician hours, a parts and labor cost forecast, and a completion log. No intervals are preloaded: you enter them and their source. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/preventive-maintenance-generator/ . This is a scheduling aid. It ships with no service intervals: every interval comes from you or the equipment manual and is labeled with its source. It does not decide what maintenance a machine needs, and it does not say any equipment is safe, inspected, certified or compliant. It does not replace qualified people or the manufacturer's instructions.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_preventive_maintenance_generator or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_forklift_inspection_system": {
      "post": {
        "operationId": "tool_generate_forklift_inspection_system",
        "summary": "Forklift Inspection and Operator Records (PDF and Word)",
        "description": "Paperwork for a powered industrial truck program: a truck roster, a daily pre-use checklist to confirm against each operator manual, an inspection and defect log where the inspector records every decision, operator training and evaluation records with three-year evaluation due dates, a refresher log and a removed-from-service tag. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/forklift-inspection-system/ . This record system supports the qualified people who run a powered industrial truck program. It does not decide that a truck is safe or unsafe, does not train or evaluate operators, and does not certify compliance with OSHA or any state plan. The inspector makes and records every decision, including removal from service. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_forklift_inspection_system or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_ppe_assessment_organizer": {
      "post": {
        "operationId": "tool_generate_ppe_assessment_organizer",
        "summary": "PPE Hazard Assessment Record (PDF and Word)",
        "description": "A structured worksheet for the person who performs the workplace PPE hazard assessment: tasks and areas, the hazards the assessor finds, the PPE the assessor selects, fit, communication and training records, payment and defective-PPE logs, and the written certification page described in 29 CFR 1910.132(d)(2), ready for the assessor to review and sign. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/ppe-assessment-organizer/ . This worksheet supports the person who performs the PPE hazard assessment. The assessor identifies the hazards and selects the PPE; the tool makes no suggestions, does not rank PPE, does not say an assessment is adequate, and does not certify compliance with OSHA or any state plan. Respiratory and hearing protection are outside this tool. Check the official sources listed with it.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_ppe_assessment_organizer or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/generate_job_offer_comparison_calculator": {
      "post": {
        "operationId": "tool_generate_job_offer_comparison_calculator",
        "summary": "Job Offer Comparison (PDF and Word)",
        "description": "Compare two to five job offers side by side using your own numbers: pay, bonus, signing and relocation, equity you choose to count, retirement match, health costs, time off, commute and a cost-of-living factor. See yearly and multi-year totals, effective hourly pay and the difference between offers, with optional Social Security and Medicare arithmetic you can switch off. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/job-offer-comparison-calculator/ . Arithmetic on the numbers you enter. Not tax, legal, benefits or financial advice, and not a recommendation to accept or decline any offer. The optional payroll-tax lines use only the published Social Security and Medicare employee rates and exclude income tax, Additional Medicare Tax, and state and local taxes.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Full input schema (fields and rows): GET https://allai-api.allaihq.workers.dev/v1/tools/generate_job_offer_comparison_calculator or the full spec at https://allai-api.allaihq.workers.dev/openapi.json",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.250000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 250
      }
    },
    "/v1/tools/calculate_profit_margin_break_even_calculator": {
      "post": {
        "operationId": "tool_calculate_profit_margin_break_even_calculator",
        "summary": "Profit margin and break-even calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/profit-margin-break-even-calculator/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_profit_margin_break_even_calculator.) Estimates from the numbers you enter. Not tax, accounting or financial advice.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Business or product"
                      },
                      "price": {
                        "type": "string",
                        "description": "Selling price per unit ($). Number as text, e.g. \"1200\"."
                      },
                      "vc": {
                        "type": "string",
                        "description": "Variable cost per unit ($) (Materials, packaging, shipping, payment fees per sale). Number as text, e.g. \"1200\"."
                      },
                      "fixed": {
                        "type": "string",
                        "description": "Fixed costs per month ($) (Rent, software, insurance, salaries). Number as text, e.g. \"1200\"."
                      },
                      "units": {
                        "type": "string",
                        "description": "Expected units sold per month. Number as text, e.g. \"1200\"."
                      },
                      "target": {
                        "type": "string",
                        "description": "Profit goal per month ($). Number as text, e.g. \"1200\"."
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Assumptions and notes"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {},
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_llc_operating_agreement_organizer": {
      "post": {
        "operationId": "tool_calculate_llc_operating_agreement_organizer",
        "summary": "LLC operating agreement organizer calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/llc-operating-agreement-organizer/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_llc_operating_agreement_organizer.) This is an organizer, not legal or tax advice. ALL AI Forms is not a law firm. It records the owners' own decisions and does arithmetic on them; it does not recommend terms or say that an agreement is enforceable or protects anyone. Each state's LLC law controls. Review by a licensed attorney is recommended before anyone signs.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "LLC name (exactly as on the state filing)"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "Alabama",
                          "Alaska",
                          "Arizona",
                          "Arkansas",
                          "California",
                          "Colorado",
                          "Connecticut",
                          "Delaware",
                          "District of Columbia",
                          "Florida",
                          "Georgia",
                          "Hawaii",
                          "Idaho",
                          "Illinois",
                          "Indiana",
                          "Iowa",
                          "Kansas",
                          "Kentucky",
                          "Louisiana",
                          "Maine",
                          "Maryland",
                          "Massachusetts",
                          "Michigan",
                          "Minnesota",
                          "Mississippi",
                          "Missouri",
                          "Montana",
                          "Nebraska",
                          "Nevada",
                          "New Hampshire",
                          "New Jersey",
                          "New Mexico",
                          "New York",
                          "North Carolina",
                          "North Dakota",
                          "Ohio",
                          "Oklahoma",
                          "Oregon",
                          "Pennsylvania",
                          "Rhode Island",
                          "South Carolina",
                          "South Dakota",
                          "Tennessee",
                          "Texas",
                          "Utah",
                          "Vermont",
                          "Virginia",
                          "Washington",
                          "West Virginia",
                          "Wisconsin",
                          "Wyoming"
                        ],
                        "description": "State of formation"
                      },
                      "filed": {
                        "type": "string",
                        "enum": [
                          "Not filed yet",
                          "Filed",
                          "Not sure"
                        ],
                        "description": "Formation filing status"
                      },
                      "formed": {
                        "type": "string",
                        "description": "Formation date. YYYY-MM-DD."
                      },
                      "office": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Principal office address"
                      },
                      "agent": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Registered agent name and address"
                      },
                      "ein": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "EIN (optional)"
                      },
                      "duration": {
                        "type": "string",
                        "enum": [
                          "Perpetual",
                          "Ends on a fixed date",
                          "Undecided"
                        ],
                        "description": "Duration"
                      },
                      "end_date": {
                        "type": "string",
                        "description": "End date (only if fixed). YYYY-MM-DD."
                      },
                      "purpose": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Business purpose (the owners' words)"
                      },
                      "derive": {
                        "type": "string",
                        "enum": [
                          "The % typed in the member table",
                          "Contribution values (worked out for you)"
                        ],
                        "description": "Ownership % comes from"
                      },
                      "mgmt": {
                        "type": "string",
                        "enum": [
                          "Member-managed",
                          "Manager-managed",
                          "Undecided"
                        ],
                        "description": "Management"
                      },
                      "managers": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Managers (only if manager-managed): names, and whether each is a member"
                      },
                      "vote": {
                        "type": "string",
                        "enum": [
                          "By ownership %",
                          "One vote per member",
                          "Unanimous",
                          "Custom (describe below)",
                          "Undecided"
                        ],
                        "description": "Voting basis"
                      },
                      "vote_custom": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Custom voting terms"
                      },
                      "thr": {
                        "type": "string",
                        "description": "Ordinary decisions pass with more than this % of the votes (Example: 50). Number as text, e.g. \"1200\"."
                      },
                      "thr_major": {
                        "type": "string",
                        "description": "Major decisions pass with at least this % of the votes (Example: 75). Number as text, e.g. \"1200\"."
                      },
                      "major": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Selling all or most assets",
                            "Borrowing above an agreed amount",
                            "Admitting a new member",
                            "Amending the agreement",
                            "Merging or converting the LLC",
                            "Dissolving the LLC"
                          ]
                        },
                        "description": "Decisions that need the major-decision vote"
                      },
                      "major_other": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Other major decisions"
                      },
                      "dist_time": {
                        "type": "string",
                        "enum": [
                          "When the managers or members decide",
                          "Monthly",
                          "Quarterly",
                          "Annually",
                          "Undecided"
                        ],
                        "description": "Distribution timing"
                      },
                      "dist_basis": {
                        "type": "string",
                        "enum": [
                          "Pro rata to ownership %",
                          "Custom (describe below)",
                          "Undecided"
                        ],
                        "description": "Distribution basis"
                      },
                      "dist_custom": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Custom distribution terms"
                      },
                      "capital": {
                        "type": "string",
                        "enum": [
                          "Voluntary only",
                          "Required if approved by the major-decision vote",
                          "Undecided"
                        ],
                        "description": "Additional capital"
                      },
                      "capital_note": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Additional capital notes"
                      },
                      "tax": {
                        "type": "string",
                        "enum": [
                          "Default for the number of members",
                          "Partnership",
                          "S corporation election",
                          "C corporation election",
                          "Undecided"
                        ],
                        "description": "Intended federal tax classification (record only)"
                      },
                      "transfer": {
                        "type": "string",
                        "enum": [
                          "Free transfer",
                          "Consent of the other members required",
                          "Right of first refusal for the other members",
                          "Undecided"
                        ],
                        "description": "Transfers of a membership interest"
                      },
                      "admit": {
                        "type": "string",
                        "enum": [
                          "By the major-decision vote",
                          "Unanimous consent",
                          "Undecided"
                        ],
                        "description": "Admitting new members"
                      },
                      "depart": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Voluntary withdrawal",
                            "Death",
                            "Disability",
                            "Bankruptcy",
                            "Expulsion by vote"
                          ]
                        },
                        "description": "Departure events the agreement covers"
                      },
                      "buyout": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Buy-out terms in the owners' words (price method, payment timing)"
                      },
                      "dissolve": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Vote of the members",
                            "A fixed end date",
                            "Sale of all or substantially all assets",
                            "Other (describe)"
                          ]
                        },
                        "description": "Dissolution triggers"
                      },
                      "dissolve_note": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Dissolution notes"
                      },
                      "dispute": {
                        "type": "string",
                        "enum": [
                          "Negotiation first",
                          "Mediation",
                          "Arbitration",
                          "Court",
                          "Undecided"
                        ],
                        "description": "Disputes"
                      },
                      "law": {
                        "type": "string",
                        "enum": [
                          "Alabama",
                          "Alaska",
                          "Arizona",
                          "Arkansas",
                          "California",
                          "Colorado",
                          "Connecticut",
                          "Delaware",
                          "District of Columbia",
                          "Florida",
                          "Georgia",
                          "Hawaii",
                          "Idaho",
                          "Illinois",
                          "Indiana",
                          "Iowa",
                          "Kansas",
                          "Kentucky",
                          "Louisiana",
                          "Maine",
                          "Maryland",
                          "Massachusetts",
                          "Michigan",
                          "Minnesota",
                          "Mississippi",
                          "Missouri",
                          "Montana",
                          "Nebraska",
                          "Nevada",
                          "New Hampshire",
                          "New Jersey",
                          "New Mexico",
                          "New York",
                          "North Carolina",
                          "North Dakota",
                          "Ohio",
                          "Oklahoma",
                          "Oregon",
                          "Pennsylvania",
                          "Rhode Island",
                          "South Carolina",
                          "South Dakota",
                          "Tennessee",
                          "Texas",
                          "Utah",
                          "Vermont",
                          "Virginia",
                          "Washington",
                          "West Virginia",
                          "Wisconsin",
                          "Wyoming"
                        ],
                        "description": "Governing law (state)"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "members": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Members, contributions and ownership. Each row is an object keyed by column id (name = Member legal name; addr = Address; ctype = Contribution type; cval = Contribution value ($, owners' figure); pct = Ownership %) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Member legal name"
                                },
                                "addr": {
                                  "type": "string",
                                  "description": "Address"
                                },
                                "ctype": {
                                  "type": "string",
                                  "enum": [
                                    "Cash",
                                    "Property",
                                    "Services",
                                    "Promise to contribute"
                                  ],
                                  "description": "Contribution type"
                                },
                                "cval": {
                                  "type": "string",
                                  "description": "Contribution value ($, owners' figure)"
                                },
                                "pct": {
                                  "type": "string",
                                  "description": "Ownership %"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "sign": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Signatures (when the final agreement is signed). Each row is an object keyed by column id (name = Member; sig = Signature; date = Date) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Member"
                                },
                                "sig": {
                                  "type": "string",
                                  "description": "Signature"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_business_plan_generator": {
      "post": {
        "operationId": "tool_calculate_business_plan_generator",
        "summary": "Business plan generator calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/business-plan-generator/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_business_plan_generator.) This is an organizer and calculator, not financial, investment, lending or tax advice. Every number is the owner's own assumption, not a forecast or promise, and nothing here says a lender or investor will accept the plan.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Business name"
                      },
                      "owners": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Owner names"
                      },
                      "format": {
                        "type": "string",
                        "enum": [
                          "Traditional plan",
                          "Lean (one-page) plan"
                        ],
                        "description": "Plan format"
                      },
                      "structure": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Legal structure (as you have chosen it)"
                      },
                      "exec": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Executive summary"
                      },
                      "company": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Company description"
                      },
                      "market": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Market analysis (your own research)"
                      },
                      "team": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Organization and management"
                      },
                      "products": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Products or services"
                      },
                      "marketing": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Marketing and sales"
                      },
                      "request": {
                        "type": "string",
                        "description": "Amount you are asking for ($, leave blank if none). Number as text, e.g. \"1200\"."
                      },
                      "request_note": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Terms you are seeking"
                      },
                      "start": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "First month of the model (YYYY-MM) (Example: 2027-01)"
                      },
                      "horizon": {
                        "type": "string",
                        "enum": [
                          "12",
                          "24",
                          "36"
                        ],
                        "description": "Months to project"
                      },
                      "cash0": {
                        "type": "string",
                        "description": "Opening cash ($). Number as text, e.g. \"1200\"."
                      },
                      "cogs_m": {
                        "type": "string",
                        "enum": [
                          "Percent of revenue",
                          "Cost per unit (from the revenue table)"
                        ],
                        "description": "Cost of goods method"
                      },
                      "cogs_pct": {
                        "type": "string",
                        "description": "Cost of goods, % of revenue (percent method). Number as text, e.g. \"1200\"."
                      },
                      "draws": {
                        "type": "string",
                        "description": "Owner draws per month ($). Number as text, e.g. \"1200\"."
                      },
                      "taxr": {
                        "type": "string",
                        "description": "Placeholder tax rate on positive pre-tax income (%), your placeholder and not a tax estimate. Number as text, e.g. \"1200\"."
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "competitors": {
                        "type": "array",
                        "maxItems": 15,
                        "description": "Competitors. Each row is an object keyed by column id (name = Competitor; str = Strengths; weak = Weaknesses) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Competitor"
                                },
                                "str": {
                                  "type": "string",
                                  "description": "Strengths"
                                },
                                "weak": {
                                  "type": "string",
                                  "description": "Weaknesses"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "uses": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Use of funds. Each row is an object keyed by column id (label = Use; amt = Amount ($)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "description": "Use"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "rev": {
                        "type": "array",
                        "maxItems": 15,
                        "description": "Revenue lines. Each row is an object keyed by column id (name = Product or service; u0 = Units sold in month 1; price = Price per unit ($); g = Monthly unit growth %; uc = Cost per unit ($, per-unit method)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Product or service"
                                },
                                "u0": {
                                  "type": "string",
                                  "description": "Units sold in month 1"
                                },
                                "price": {
                                  "type": "string",
                                  "description": "Price per unit ($)"
                                },
                                "g": {
                                  "type": "string",
                                  "description": "Monthly unit growth %"
                                },
                                "uc": {
                                  "type": "string",
                                  "description": "Cost per unit ($, per-unit method)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "fixed": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Fixed expenses. Each row is an object keyed by column id (label = Expense; amt = Per month ($); inc = Annual increase %) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "description": "Expense"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Per month ($)"
                                },
                                "inc": {
                                  "type": "string",
                                  "description": "Annual increase %"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "roles": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Team and payroll. Each row is an object keyed by column id (role = Role; name = Name (optional); cost = Monthly cost ($); from = Starts in model month #) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "role": {
                                  "type": "string",
                                  "description": "Role"
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name (optional)"
                                },
                                "cost": {
                                  "type": "string",
                                  "description": "Monthly cost ($)"
                                },
                                "from": {
                                  "type": "string",
                                  "description": "Starts in model month #"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "startup": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Startup costs. Each row is an object keyed by column id (label = Item; amt = Amount ($); m = Model month #) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "description": "Item"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                },
                                "m": {
                                  "type": "string",
                                  "description": "Model month #"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "loans": {
                        "type": "array",
                        "maxItems": 10,
                        "description": "Loans. Each row is an object keyed by column id (label = Lender or loan; amt = Amount ($); apr = APR %; term = Term (months); m = Received in model month #) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "description": "Lender or loan"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                },
                                "apr": {
                                  "type": "string",
                                  "description": "APR %"
                                },
                                "term": {
                                  "type": "string",
                                  "description": "Term (months)"
                                },
                                "m": {
                                  "type": "string",
                                  "description": "Received in model month #"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_employee_onboarding_package": {
      "post": {
        "operationId": "tool_calculate_employee_onboarding_package",
        "summary": "Employee onboarding package calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/employee-onboarding-package/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_employee_onboarding_package.) This is an organizer, not legal, tax or immigration advice. It points to the official forms and does not complete or interpret Form W-4 or Form I-9, and it does not decide classification, exempt status, pay, leave or benefits eligibility. State rules vary; check your state's pages. Finishing the checklist does not make an employer compliant.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Employer name"
                      },
                      "addr": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Employer address"
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "Alabama",
                          "Alaska",
                          "Arizona",
                          "Arkansas",
                          "California",
                          "Colorado",
                          "Connecticut",
                          "Delaware",
                          "District of Columbia",
                          "Florida",
                          "Georgia",
                          "Hawaii",
                          "Idaho",
                          "Illinois",
                          "Indiana",
                          "Iowa",
                          "Kansas",
                          "Kentucky",
                          "Louisiana",
                          "Maine",
                          "Maryland",
                          "Massachusetts",
                          "Michigan",
                          "Minnesota",
                          "Mississippi",
                          "Missouri",
                          "Montana",
                          "Nebraska",
                          "Nevada",
                          "New Hampshire",
                          "New Jersey",
                          "New Mexico",
                          "New York",
                          "North Carolina",
                          "North Dakota",
                          "Ohio",
                          "Oklahoma",
                          "Oregon",
                          "Pennsylvania",
                          "Rhode Island",
                          "South Carolina",
                          "South Dakota",
                          "Tennessee",
                          "Texas",
                          "Utah",
                          "Vermont",
                          "Virginia",
                          "Washington",
                          "West Virginia",
                          "Wisconsin",
                          "Wyoming"
                        ],
                        "description": "Work state"
                      },
                      "nh_days": {
                        "type": "string",
                        "description": "State new-hire report due within (days) (20 (federal rule); your state may set fewer). Number as text, e.g. \"1200\"."
                      },
                      "position": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Position title"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Employee name (optional)"
                      },
                      "start": {
                        "type": "string",
                        "description": "First day of work. YYYY-MM-DD."
                      },
                      "supervisor": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Supervisor"
                      },
                      "pay": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Pay as decided by the employer (basis and amount)"
                      },
                      "schedule": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Schedule (hours per week, days)"
                      },
                      "where": {
                        "type": "string",
                        "enum": [
                          "On-site",
                          "Remote",
                          "Hybrid"
                        ],
                        "description": "Work location"
                      },
                      "holidays": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Company holidays to skip (YYYY-MM-DD, comma-separated)"
                      },
                      "benefits": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Health insurance",
                            "Dental",
                            "Vision",
                            "Retirement plan",
                            "Paid time off",
                            "Paid holidays",
                            "Life insurance",
                            "Disability insurance"
                          ]
                        },
                        "description": "Benefits"
                      },
                      "benefits_note": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Benefit notes (waiting periods, enrollment dates, other benefits)"
                      },
                      "posters": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Employee Rights Under the FLSA (minimum wage)",
                            "Employee Rights Under the FMLA",
                            "Employee Polygraph Protection Act",
                            "USERRA",
                            "Know Your Rights: Workplace Discrimination is Illegal (EEOC)",
                            "Job Safety and Health: It's the Law (OSHA)"
                          ]
                        },
                        "description": "Federal posters you display"
                      },
                      "posters_state": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "State and local posters (from your state labor department)"
                      },
                      "g30": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "First 30 days"
                      },
                      "g60": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Days 31 to 60"
                      },
                      "g90": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Days 61 to 90"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "policies": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Policies to acknowledge. Each row is an object keyed by column id (policy = Policy; date = Date delivered; sig = Employee signature) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "policy": {
                                  "type": "string",
                                  "description": "Policy"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date delivered"
                                },
                                "sig": {
                                  "type": "string",
                                  "description": "Employee signature"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "equipment": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Equipment issued. Each row is an object keyed by column id (item = Item; cost = Cost ($); serial = Serial or asset #; date = Date issued) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "item": {
                                  "type": "string",
                                  "description": "Item"
                                },
                                "cost": {
                                  "type": "string",
                                  "description": "Cost ($)"
                                },
                                "serial": {
                                  "type": "string",
                                  "description": "Serial or asset #"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date issued"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "accounts": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Accounts to set up (names only, never passwords). Each row is an object keyed by column id (sys = System; who = Set up by; off = Days after first day) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sys": {
                                  "type": "string",
                                  "description": "System"
                                },
                                "who": {
                                  "type": "string",
                                  "description": "Set up by"
                                },
                                "off": {
                                  "type": "string",
                                  "description": "Days after first day"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "training": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Training plan. Each row is an object keyed by column id (topic = Topic; off = Days after first day; who = Trainer) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "topic": {
                                  "type": "string",
                                  "description": "Topic"
                                },
                                "off": {
                                  "type": "string",
                                  "description": "Days after first day"
                                },
                                "who": {
                                  "type": "string",
                                  "description": "Trainer"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_independent_contractor_onboarding_checklist": {
      "post": {
        "operationId": "tool_calculate_independent_contractor_onboarding_checklist",
        "summary": "Contractor onboarding checklist calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/independent-contractor-onboarding-checklist/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_independent_contractor_onboarding_checklist.) This is an organizer, not legal or tax advice. It does not decide whether a worker is an employee or an independent contractor and does not say whether a Form 1099-NEC is required for a payee. It does not verify insurance, licenses or identity. Follow the IRS and Department of Labor pages and ask a qualified adviser.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Your business name"
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Contractor (name or business name)"
                      },
                      "entity": {
                        "type": "string",
                        "enum": [
                          "Individual or sole proprietor",
                          "LLC",
                          "Partnership",
                          "C corporation",
                          "S corporation",
                          "Other",
                          "W-9 not received yet"
                        ],
                        "description": "Entity type as reported on the W-9"
                      },
                      "start": {
                        "type": "string",
                        "description": "Start date. YYYY-MM-DD."
                      },
                      "end": {
                        "type": "string",
                        "description": "End date. YYYY-MM-DD."
                      },
                      "basis": {
                        "type": "string",
                        "enum": [
                          "Hourly",
                          "Fixed fee",
                          "Milestones"
                        ],
                        "description": "Payment terms"
                      },
                      "rate": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Rate or amount"
                      },
                      "invoice": {
                        "type": "string",
                        "enum": [
                          "Weekly",
                          "Every two weeks",
                          "Monthly",
                          "Per milestone",
                          "On completion"
                        ],
                        "description": "Invoice frequency"
                      },
                      "scope": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Scope of work"
                      },
                      "w9": {
                        "type": "string",
                        "enum": [
                          "Not requested yet",
                          "Requested",
                          "Received"
                        ],
                        "description": "Form W-9"
                      },
                      "w9_date": {
                        "type": "string",
                        "description": "W-9 received on. YYYY-MM-DD."
                      },
                      "agr": {
                        "type": "string",
                        "enum": [
                          "Not signed",
                          "Signed"
                        ],
                        "description": "Written agreement"
                      },
                      "agr_date": {
                        "type": "string",
                        "description": "Agreement signed on. YYYY-MM-DD."
                      },
                      "nda": {
                        "type": "string",
                        "enum": [
                          "Yes",
                          "No",
                          "Not sure"
                        ],
                        "description": "Confidentiality and work-ownership terms in the agreement"
                      },
                      "ins": {
                        "type": "string",
                        "enum": [
                          "Not requested",
                          "Requested",
                          "Received"
                        ],
                        "description": "Insurance certificate"
                      },
                      "ins_exp": {
                        "type": "string",
                        "description": "Insurance expires on. YYYY-MM-DD."
                      },
                      "lic": {
                        "type": "string",
                        "enum": [
                          "Not applicable",
                          "Requested",
                          "Received"
                        ],
                        "description": "License or registration (as supplied; not verified)"
                      },
                      "lic_exp": {
                        "type": "string",
                        "description": "License expires on. YYYY-MM-DD."
                      },
                      "lic_desc": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "License or registration description"
                      },
                      "warn_days": {
                        "type": "string",
                        "description": "Warn me this many days before a document expires (30). Number as text, e.g. \"1200\"."
                      },
                      "thr": {
                        "type": "string",
                        "description": "Reporting threshold you are tracking ($) (2000). Number as text, e.g. \"1200\"."
                      },
                      "expected": {
                        "type": "string",
                        "description": "Expected payments this year ($). Number as text, e.g. \"1200\"."
                      },
                      "offboard": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Final invoice received",
                            "Last payment made and logged",
                            "System access removed (dates in the access log)",
                            "Equipment and materials returned",
                            "Confidential materials returned or destroyed",
                            "Records kept (agreement, W-9, invoices, payments)"
                          ]
                        },
                        "description": "Off-boarding"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "payments": {
                        "type": "array",
                        "maxItems": 120,
                        "description": "Payments. Each row is an object keyed by column id (date = Date paid; inv = Invoice #; amt = Amount ($); note = Note) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date paid"
                                },
                                "inv": {
                                  "type": "string",
                                  "description": "Invoice #"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Note"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "access": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "System access (names only, never passwords). Each row is an object keyed by column id (sys = System; on = Access granted; off = Access removed) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sys": {
                                  "type": "string",
                                  "description": "System"
                                },
                                "on": {
                                  "type": "string",
                                  "description": "Access granted"
                                },
                                "off": {
                                  "type": "string",
                                  "description": "Access removed"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "facts": {
                        "type": "array",
                        "maxItems": 40,
                        "description": "Facts about the working relationship (your answers). Each row is an object keyed by column id (cat = Category or factor; q = Question; a = Answer; n = Notes) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "cat": {
                                  "type": "string",
                                  "description": "Category or factor"
                                },
                                "q": {
                                  "type": "string",
                                  "description": "Question"
                                },
                                "a": {
                                  "type": "string",
                                  "enum": [
                                    "Yes",
                                    "No",
                                    "N/A"
                                  ],
                                  "description": "Answer"
                                },
                                "n": {
                                  "type": "string",
                                  "description": "Notes"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_business_expense_report_generator": {
      "post": {
        "operationId": "tool_calculate_business_expense_report_generator",
        "summary": "Expense report generator calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/business-expense-report-generator/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_business_expense_report_generator.) This is an organizer that adds up your entries. It does not decide what is deductible, reimbursable under any plan, or taxable, and it is not an accounting system or a substitute for your employer's expense policy. Rates shown come from the IRS page on the date noted; confirm them before you submit.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Employee or report owner"
                      },
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Business or department"
                      },
                      "p0": {
                        "type": "string",
                        "description": "Period start. YYYY-MM-DD."
                      },
                      "p1": {
                        "type": "string",
                        "description": "Period end. YYYY-MM-DD."
                      },
                      "purpose": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Purpose of the report"
                      },
                      "rthr": {
                        "type": "string",
                        "description": "Your policy: receipt needed at or above ($). Number as text, e.g. \"1200\"."
                      },
                      "othr": {
                        "type": "string",
                        "description": "Flag 'Other' items above ($). Number as text, e.g. \"1200\"."
                      },
                      "fx": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Currency note (convert foreign amounts to USD before entering)"
                      },
                      "sig_e": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Submitted by (signature and date)"
                      },
                      "sig_a": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Approved by (signature and date)"
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Notes"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "items": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Expenses. Each row is an object keyed by column id (date = Date; cat = Category; vendor = Vendor; desc = Description; amt = Amount ($); paid = Paid by; rcpt = Receipt reference; why = Business purpose and attendees) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "cat": {
                                  "type": "string",
                                  "enum": [
                                    "Lodging",
                                    "Airfare",
                                    "Ground transport",
                                    "Parking and tolls",
                                    "Meals",
                                    "Client entertainment",
                                    "Supplies",
                                    "Software",
                                    "Communications",
                                    "Other"
                                  ],
                                  "description": "Category"
                                },
                                "vendor": {
                                  "type": "string",
                                  "description": "Vendor"
                                },
                                "desc": {
                                  "type": "string",
                                  "description": "Description"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                },
                                "paid": {
                                  "type": "string",
                                  "enum": [
                                    "Out of pocket",
                                    "Company card"
                                  ],
                                  "description": "Paid by"
                                },
                                "rcpt": {
                                  "type": "string",
                                  "description": "Receipt reference"
                                },
                                "why": {
                                  "type": "string",
                                  "description": "Business purpose and attendees"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "miles": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Mileage. Each row is an object keyed by column id (date = Date; trip = From and to; why = Business purpose; mi = Miles; rate = Your rate ($ per mile, optional)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "trip": {
                                  "type": "string",
                                  "description": "From and to"
                                },
                                "why": {
                                  "type": "string",
                                  "description": "Business purpose"
                                },
                                "mi": {
                                  "type": "string",
                                  "description": "Miles"
                                },
                                "rate": {
                                  "type": "string",
                                  "description": "Your rate ($ per mile, optional)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "perdiem": {
                        "type": "array",
                        "maxItems": 120,
                        "description": "Per diem (rate you enter from GSA or your employer). Each row is an object keyed by column id (date = Date; loc = Location; rate = Daily rate ($)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "loc": {
                                  "type": "string",
                                  "description": "Location"
                                },
                                "rate": {
                                  "type": "string",
                                  "description": "Daily rate ($)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "adv": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Advances received. Each row is an object keyed by column id (date = Date; amt = Amount ($); note = Note) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Amount ($)"
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Note"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_customer_complaint_resolution_workflow": {
      "post": {
        "operationId": "tool_calculate_customer_complaint_resolution_workflow",
        "summary": "Complaint resolution workflow calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/customer-complaint-resolution-workflow/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_customer_complaint_resolution_workflow.) This is an operational template. It does not give legal, insurance, medical or financial advice, does not decide fault or what a customer is owed, and does not guarantee that following it satisfies any law, contract or standard. Complaints in regulated settings follow that regulator's rules.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Business name"
                      },
                      "channels": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Email",
                            "Phone",
                            "Web form",
                            "In person",
                            "Mail",
                            "Social media"
                          ]
                        },
                        "description": "Channels you accept complaints through"
                      },
                      "ack_h": {
                        "type": "string",
                        "description": "Acknowledge within (hours) (Example: 24). Number as text, e.g. \"1200\"."
                      },
                      "res_d": {
                        "type": "string",
                        "description": "Resolve within (business days) (Example: 10). Number as text, e.g. \"1200\"."
                      },
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Monday",
                            "Tuesday",
                            "Wednesday",
                            "Thursday",
                            "Friday",
                            "Saturday",
                            "Sunday"
                          ]
                        },
                        "description": "Business days (none checked = Monday to Friday)"
                      },
                      "holidays": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Holidays to skip (YYYY-MM-DD, comma-separated)"
                      },
                      "rep_n": {
                        "type": "string",
                        "description": "Repeat issue: this many complaints in one category (3). Number as text, e.g. \"1200\"."
                      },
                      "rep_d": {
                        "type": "string",
                        "description": "within this many days (30). Number as text, e.g. \"1200\"."
                      },
                      "triggers": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Escalation words or phrases (comma-separated) that flag a complaint for a qualified person (Example: injury, lawyer, regulator, chargeback)"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "cats": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Categories. Each row is an object keyed by column id (c = Category) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "c": {
                                  "type": "string",
                                  "description": "Category"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "remedy": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Your remedy policy (you decide; the tool applies none). Each row is an object keyed by column id (sit = Situation; rem = Remedy you offer; appr = Approver; lim = Limit ($)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sit": {
                                  "type": "string",
                                  "description": "Situation"
                                },
                                "rem": {
                                  "type": "string",
                                  "description": "Remedy you offer"
                                },
                                "appr": {
                                  "type": "string",
                                  "description": "Approver"
                                },
                                "lim": {
                                  "type": "string",
                                  "description": "Limit ($)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "log": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Complaint log. Each row is an object keyed by column id (rcv = Received (date and time); ch = Channel; cust = Customer or contact; ref = Order reference; cat = Category; desc = Description; sev = Severity (your scale); own = Owner; st = Status; ack = Acknowledged (date and time); done = Resolved or closed on; cause = Root cause and corrective action; rem = Remedy given; amt = Credit or refund ($); resp = Customer response) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "rcv": {
                                  "type": "string",
                                  "description": "Received (date and time)"
                                },
                                "ch": {
                                  "type": "string",
                                  "enum": [
                                    "Email",
                                    "Phone",
                                    "Web form",
                                    "In person",
                                    "Mail",
                                    "Social media"
                                  ],
                                  "description": "Channel"
                                },
                                "cust": {
                                  "type": "string",
                                  "description": "Customer or contact"
                                },
                                "ref": {
                                  "type": "string",
                                  "description": "Order reference"
                                },
                                "cat": {
                                  "type": "string",
                                  "description": "Category"
                                },
                                "desc": {
                                  "type": "string",
                                  "description": "Description"
                                },
                                "sev": {
                                  "type": "string",
                                  "enum": [
                                    "Low",
                                    "Medium",
                                    "High"
                                  ],
                                  "description": "Severity (your scale)"
                                },
                                "own": {
                                  "type": "string",
                                  "description": "Owner"
                                },
                                "st": {
                                  "type": "string",
                                  "enum": [
                                    "New",
                                    "Acknowledged",
                                    "Investigating",
                                    "Awaiting customer",
                                    "Resolved",
                                    "Closed",
                                    "Escalated"
                                  ],
                                  "description": "Status"
                                },
                                "ack": {
                                  "type": "string",
                                  "description": "Acknowledged (date and time)"
                                },
                                "done": {
                                  "type": "string",
                                  "description": "Resolved or closed on"
                                },
                                "cause": {
                                  "type": "string",
                                  "description": "Root cause and corrective action"
                                },
                                "rem": {
                                  "type": "string",
                                  "description": "Remedy given"
                                },
                                "amt": {
                                  "type": "string",
                                  "description": "Credit or refund ($)"
                                },
                                "resp": {
                                  "type": "string",
                                  "enum": [
                                    "Accepted",
                                    "Declined",
                                    "No response"
                                  ],
                                  "description": "Customer response"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_preventive_maintenance_generator": {
      "post": {
        "operationId": "tool_calculate_preventive_maintenance_generator",
        "summary": "Preventive maintenance generator calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/preventive-maintenance-generator/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_preventive_maintenance_generator.) This is a scheduling aid. It ships with no service intervals: every interval comes from you or the equipment manual and is labeled with its source. It does not decide what maintenance a machine needs, and it does not say any equipment is safe, inspected, certified or compliant. It does not replace qualified people or the manufacturer's instructions.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Company or site"
                      },
                      "from": {
                        "type": "string",
                        "description": "Schedule starts on (blank = today). YYYY-MM-DD."
                      },
                      "months": {
                        "type": "string",
                        "description": "Months to schedule (1 to 24) (3). Number as text, e.g. \"1200\"."
                      },
                      "soon": {
                        "type": "string",
                        "description": "Due soon window (days) (14). Number as text, e.g. \"1200\"."
                      },
                      "basis": {
                        "type": "string",
                        "enum": [
                          "Completion-based (next due = last done + interval)",
                          "Fixed calendar (keep the original grid)"
                        ],
                        "description": "Scheduling basis"
                      },
                      "roll": {
                        "type": "string",
                        "enum": [
                          "Move to the next workday",
                          "Move to the previous workday"
                        ],
                        "description": "If a due date falls on a non-workday"
                      },
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Monday",
                            "Tuesday",
                            "Wednesday",
                            "Thursday",
                            "Friday",
                            "Saturday",
                            "Sunday"
                          ]
                        },
                        "description": "Workdays (none checked = Monday to Friday)"
                      },
                      "holidays": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Holidays to skip (YYYY-MM-DD, comma-separated)"
                      },
                      "cap": {
                        "type": "string",
                        "description": "Technician hours available per week. Number as text, e.g. \"1200\"."
                      },
                      "shift": {
                        "type": "string",
                        "description": "Tasks may move earlier by up to (days) to level the workload. Number as text, e.g. \"1200\"."
                      },
                      "rate": {
                        "type": "string",
                        "description": "Labor rate ($ per hour). Number as text, e.g. \"1200\"."
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "assets": {
                        "type": "array",
                        "maxItems": 100,
                        "description": "Equipment. Each row is an object keyed by column id (id = Asset ID; name = Name; loc = Location; mms = Make, model, serial; crit = Criticality (your scale); mt = Meter; cur = Current meter; use = Average use per day; loto = Has a written lockout/tagout procedure) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Asset ID"
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name"
                                },
                                "loc": {
                                  "type": "string",
                                  "description": "Location"
                                },
                                "mms": {
                                  "type": "string",
                                  "description": "Make, model, serial"
                                },
                                "crit": {
                                  "type": "string",
                                  "enum": [
                                    "1 (low)",
                                    "2",
                                    "3 (high)"
                                  ],
                                  "description": "Criticality (your scale)"
                                },
                                "mt": {
                                  "type": "string",
                                  "enum": [
                                    "None",
                                    "Hours",
                                    "Miles",
                                    "Cycles"
                                  ],
                                  "description": "Meter"
                                },
                                "cur": {
                                  "type": "string",
                                  "description": "Current meter"
                                },
                                "use": {
                                  "type": "string",
                                  "description": "Average use per day"
                                },
                                "loto": {
                                  "type": "string",
                                  "enum": [
                                    "Yes",
                                    "No"
                                  ],
                                  "description": "Has a written lockout/tagout procedure"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "tasks": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Maintenance tasks (intervals from your manual or policy). Each row is an object keyed by column id (aid = Asset ID; task = Task; unit = Interval unit; n = Interval; ld = Last done (date); lm = Last done (meter); min = Minutes; who = Assigned to; src = Interval source; srcd = Source detail) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "aid": {
                                  "type": "string",
                                  "description": "Asset ID"
                                },
                                "task": {
                                  "type": "string",
                                  "description": "Task"
                                },
                                "unit": {
                                  "type": "string",
                                  "enum": [
                                    "Days",
                                    "Weeks",
                                    "Months",
                                    "Meter"
                                  ],
                                  "description": "Interval unit"
                                },
                                "n": {
                                  "type": "string",
                                  "description": "Interval"
                                },
                                "ld": {
                                  "type": "string",
                                  "description": "Last done (date)"
                                },
                                "lm": {
                                  "type": "string",
                                  "description": "Last done (meter)"
                                },
                                "min": {
                                  "type": "string",
                                  "description": "Minutes"
                                },
                                "who": {
                                  "type": "string",
                                  "description": "Assigned to"
                                },
                                "src": {
                                  "type": "string",
                                  "enum": [
                                    "Manufacturer manual",
                                    "Internal policy",
                                    "Regulation or standard",
                                    "Other"
                                  ],
                                  "description": "Interval source"
                                },
                                "srcd": {
                                  "type": "string",
                                  "description": "Source detail"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "parts": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Parts per task. Each row is an object keyed by column id (task = Task (same name as above); part = Part; qty = Qty; cost = Unit cost ($)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "task": {
                                  "type": "string",
                                  "description": "Task (same name as above)"
                                },
                                "part": {
                                  "type": "string",
                                  "description": "Part"
                                },
                                "qty": {
                                  "type": "string",
                                  "description": "Qty"
                                },
                                "cost": {
                                  "type": "string",
                                  "description": "Unit cost ($)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "done": {
                        "type": "array",
                        "maxItems": 300,
                        "description": "Completion log. Each row is an object keyed by column id (aid = Asset ID; task = Task; date = Date done; meter = Meter; by = Done by; note = Notes) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "aid": {
                                  "type": "string",
                                  "description": "Asset ID"
                                },
                                "task": {
                                  "type": "string",
                                  "description": "Task"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date done"
                                },
                                "meter": {
                                  "type": "string",
                                  "description": "Meter"
                                },
                                "by": {
                                  "type": "string",
                                  "description": "Done by"
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Notes"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_forklift_inspection_system": {
      "post": {
        "operationId": "tool_calculate_forklift_inspection_system",
        "summary": "Forklift inspection system calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/forklift-inspection-system/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_forklift_inspection_system.) This record system supports the qualified people who run a powered industrial truck program. It does not decide that a truck is safe or unsafe, does not train or evaluate operators, and does not certify compliance with OSHA or any state plan. The inspector makes and records every decision, including removal from service. Check the official sources listed with it.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Company and site"
                      },
                      "opdays": {
                        "type": "string",
                        "description": "Operating days per week (5). Number as text, e.g. \"1200\"."
                      },
                      "p0": {
                        "type": "string",
                        "description": "Inspection log period start. YYYY-MM-DD."
                      },
                      "p1": {
                        "type": "string",
                        "description": "Inspection log period end. YYYY-MM-DD."
                      },
                      "warn": {
                        "type": "string",
                        "description": "Warn me this many days before an evaluation is due (90). Number as text, e.g. \"1200\"."
                      },
                      "c_truck": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Truck ID"
                      },
                      "c_date": {
                        "type": "string",
                        "description": "Date. YYYY-MM-DD."
                      },
                      "c_shift": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Shift"
                      },
                      "c_by": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Inspector"
                      },
                      "c_hrs": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Hour meter"
                      },
                      "c_dec": {
                        "type": "string",
                        "enum": [
                          "No condition affecting safety",
                          "Condition noted - supervisor review",
                          "Condition affecting safety - removed from service"
                        ],
                        "description": "Inspector decision (selected by the inspector)"
                      },
                      "c_rep": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Defects reported to"
                      },
                      "c_sig": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Inspector signature"
                      },
                      "tag_truck": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Truck ID"
                      },
                      "tag_date": {
                        "type": "string",
                        "description": "Date removed. YYYY-MM-DD."
                      },
                      "tag_by": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Removed by"
                      },
                      "tag_rep": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Reported to"
                      },
                      "tag_why": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Reason (in the inspector's words)"
                      },
                      "tag_fix": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Repaired by (authorized person) and date"
                      },
                      "tag_ret": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Returned to service by and date"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "trucks": {
                        "type": "array",
                        "maxItems": 60,
                        "description": "Truck roster. Each row is an object keyed by column id (id = Truck ID; type = Type; mm = Make and model; cap = Capacity from the data plate (lb); loc = Location; hrs = Hour meter; shifts = Shifts per day; rtc = Used round-the-clock) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Truck ID"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "Electric counterbalance",
                                    "LP gas",
                                    "Diesel or gasoline",
                                    "Reach truck",
                                    "Motorized pallet jack",
                                    "Order picker",
                                    "Other"
                                  ],
                                  "description": "Type"
                                },
                                "mm": {
                                  "type": "string",
                                  "description": "Make and model"
                                },
                                "cap": {
                                  "type": "string",
                                  "description": "Capacity from the data plate (lb)"
                                },
                                "loc": {
                                  "type": "string",
                                  "description": "Location"
                                },
                                "hrs": {
                                  "type": "string",
                                  "description": "Hour meter"
                                },
                                "shifts": {
                                  "type": "string",
                                  "description": "Shifts per day"
                                },
                                "rtc": {
                                  "type": "string",
                                  "enum": [
                                    "Yes",
                                    "No"
                                  ],
                                  "description": "Used round-the-clock"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "check": {
                        "type": "array",
                        "maxItems": 60,
                        "description": "Checklist items (starter areas; confirm against the operator manual). Each row is an object keyed by column id (item = Item; res = Result; note = Notes) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "item": {
                                  "type": "string",
                                  "description": "Item"
                                },
                                "res": {
                                  "type": "string",
                                  "enum": [
                                    "OK",
                                    "Defect noted",
                                    "N/A"
                                  ],
                                  "description": "Result"
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Notes"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "log": {
                        "type": "array",
                        "maxItems": 400,
                        "description": "Inspection and defect log. Each row is an object keyed by column id (date = Date; shift = Shift; truck = Truck ID; by = Inspector; hrs = Hour meter; def = Defects found; dec = Inspector decision; rep = Reported to; fix = Repaired by (authorized person); fixd = Repair date) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "shift": {
                                  "type": "string",
                                  "description": "Shift"
                                },
                                "truck": {
                                  "type": "string",
                                  "description": "Truck ID"
                                },
                                "by": {
                                  "type": "string",
                                  "description": "Inspector"
                                },
                                "hrs": {
                                  "type": "string",
                                  "description": "Hour meter"
                                },
                                "def": {
                                  "type": "string",
                                  "description": "Defects found"
                                },
                                "dec": {
                                  "type": "string",
                                  "enum": [
                                    "No condition affecting safety",
                                    "Condition noted - supervisor review",
                                    "Condition affecting safety - removed from service"
                                  ],
                                  "description": "Inspector decision"
                                },
                                "rep": {
                                  "type": "string",
                                  "description": "Reported to"
                                },
                                "fix": {
                                  "type": "string",
                                  "description": "Repaired by (authorized person)"
                                },
                                "fixd": {
                                  "type": "string",
                                  "description": "Repair date"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "ops": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Operator training and evaluation records. Each row is an object keyed by column id (name = Operator name; types = Truck types authorized; tr = Date of training; ev = Date of evaluation; who = Person(s) who trained or evaluated; topics = Topics covered (see 1910.178(l)(3))) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Operator name"
                                },
                                "types": {
                                  "type": "string",
                                  "description": "Truck types authorized"
                                },
                                "tr": {
                                  "type": "string",
                                  "description": "Date of training"
                                },
                                "ev": {
                                  "type": "string",
                                  "description": "Date of evaluation"
                                },
                                "who": {
                                  "type": "string",
                                  "description": "Person(s) who trained or evaluated"
                                },
                                "topics": {
                                  "type": "string",
                                  "description": "Topics covered (see 1910.178(l)(3))"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "refresh": {
                        "type": "array",
                        "maxItems": 100,
                        "description": "Refresher training events. Each row is an object keyed by column id (op = Operator; date = Date; why = Reason (1910.178(l)(4)(ii)); done = Refresher completed on; note = Notes) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "op": {
                                  "type": "string",
                                  "description": "Operator"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "why": {
                                  "type": "string",
                                  "enum": [
                                    "Observed operating the vehicle in an unsafe manner",
                                    "Involved in an accident or near-miss incident",
                                    "Evaluation showed the truck is not being operated safely",
                                    "Assigned to drive a different type of truck",
                                    "Workplace condition changed in a way that could affect safe operation"
                                  ],
                                  "description": "Reason (1910.178(l)(4)(ii))"
                                },
                                "done": {
                                  "type": "string",
                                  "description": "Refresher completed on"
                                },
                                "note": {
                                  "type": "string",
                                  "description": "Notes"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_ppe_assessment_organizer": {
      "post": {
        "operationId": "tool_calculate_ppe_assessment_organizer",
        "summary": "PPE assessment calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/ppe-assessment-organizer/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_ppe_assessment_organizer.) This worksheet supports the person who performs the PPE hazard assessment. The assessor identifies the hazards and selects the PPE; the tool makes no suggestions, does not rank PPE, does not say an assessment is adequate, and does not certify compliance with OSHA or any state plan. Respiratory and hearing protection are outside this tool. Check the official sources listed with it.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "org": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Workplace evaluated (name)"
                      },
                      "addr": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Workplace address"
                      },
                      "docid": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Document number or revision"
                      },
                      "by": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Person certifying that the evaluation has been performed"
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Title"
                      },
                      "dates": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Date(s) of the hazard assessment"
                      },
                      "next": {
                        "type": "string",
                        "description": "Next review date (set by the assessor). YYYY-MM-DD."
                      },
                      "cats": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "Impact",
                            "Penetration",
                            "Compression (roll-over)",
                            "Chemical",
                            "Heat",
                            "Harmful dust",
                            "Light (optical) radiation"
                          ]
                        },
                        "description": "Basic hazard categories considered during the walk-through (Appendix B to Subpart I, non-mandatory)"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "tasks": {
                        "type": "array",
                        "maxItems": 100,
                        "description": "Areas, tasks, hazards and PPE (all entered by the assessor). Each row is an object keyed by column id (area = Area; task = Task; n = Employees affected; haz = Hazards found by the assessor (or 'none found'); ctl = Other controls in place; ppe = PPE selected by the assessor; std = Rating or standard (as typed by the assessor); req = Required to be worn; why = If no PPE: the assessor's reason) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "area": {
                                  "type": "string",
                                  "description": "Area"
                                },
                                "task": {
                                  "type": "string",
                                  "description": "Task"
                                },
                                "n": {
                                  "type": "string",
                                  "description": "Employees affected"
                                },
                                "haz": {
                                  "type": "string",
                                  "description": "Hazards found by the assessor (or 'none found')"
                                },
                                "ctl": {
                                  "type": "string",
                                  "description": "Other controls in place"
                                },
                                "ppe": {
                                  "type": "string",
                                  "description": "PPE selected by the assessor"
                                },
                                "std": {
                                  "type": "string",
                                  "description": "Rating or standard (as typed by the assessor)"
                                },
                                "req": {
                                  "type": "string",
                                  "enum": [
                                    "Yes",
                                    "No"
                                  ],
                                  "description": "Required to be worn"
                                },
                                "why": {
                                  "type": "string",
                                  "description": "If no PPE: the assessor's reason"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "fit": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Fit and size record. Each row is an object keyed by column id (emp = Employee; item = PPE item; size = Size; date = Date fitted) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "emp": {
                                  "type": "string",
                                  "description": "Employee"
                                },
                                "item": {
                                  "type": "string",
                                  "description": "PPE item"
                                },
                                "size": {
                                  "type": "string",
                                  "description": "Size"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date fitted"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "comm": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Selection decisions communicated. Each row is an object keyed by column id (who = Employee or group; date = Date communicated; how = How) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "who": {
                                  "type": "string",
                                  "description": "Employee or group"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date communicated"
                                },
                                "how": {
                                  "type": "string",
                                  "description": "How"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "train": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "Training record. Each row is an object keyed by column id (emp = Employee; item = PPE item or group; date = Training date; topics = Subjects covered; demo = Understanding demonstrated on) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "emp": {
                                  "type": "string",
                                  "description": "Employee"
                                },
                                "item": {
                                  "type": "string",
                                  "description": "PPE item or group"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Training date"
                                },
                                "topics": {
                                  "type": "string",
                                  "description": "Subjects covered"
                                },
                                "demo": {
                                  "type": "string",
                                  "description": "Understanding demonstrated on"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "retrain": {
                        "type": "array",
                        "maxItems": 100,
                        "description": "Retraining events. Each row is an object keyed by column id (emp = Employee; date = Date; why = Circumstance (1910.132(f)(3)); done = Retrained on) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "emp": {
                                  "type": "string",
                                  "description": "Employee"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date"
                                },
                                "why": {
                                  "type": "string",
                                  "enum": [
                                    "Changes in the workplace made previous training obsolete",
                                    "Changes in the types of PPE made previous training obsolete",
                                    "Employee has not retained the understanding or skill"
                                  ],
                                  "description": "Circumstance (1910.132(f)(3))"
                                },
                                "done": {
                                  "type": "string",
                                  "description": "Retrained on"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "pay": {
                        "type": "array",
                        "maxItems": 200,
                        "description": "PPE payment record. Each row is an object keyed by column id (item = PPE item; cost = Cost ($); by = Paid by; basis = If employee-paid: the basis the employer recorded (see 1910.132(h))) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "item": {
                                  "type": "string",
                                  "description": "PPE item"
                                },
                                "cost": {
                                  "type": "string",
                                  "description": "Cost ($)"
                                },
                                "by": {
                                  "type": "string",
                                  "enum": [
                                    "Employer",
                                    "Employee"
                                  ],
                                  "description": "Paid by"
                                },
                                "basis": {
                                  "type": "string",
                                  "description": "If employee-paid: the basis the employer recorded (see 1910.132(h))"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "bad": {
                        "type": "array",
                        "maxItems": 100,
                        "description": "Defective or damaged PPE log. Each row is an object keyed by column id (item = PPE item; date = Date found; act = Action taken; out = Removed from use; repl = Replaced on) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "item": {
                                  "type": "string",
                                  "description": "PPE item"
                                },
                                "date": {
                                  "type": "string",
                                  "description": "Date found"
                                },
                                "act": {
                                  "type": "string",
                                  "description": "Action taken"
                                },
                                "out": {
                                  "type": "string",
                                  "enum": [
                                    "Yes",
                                    "No"
                                  ],
                                  "description": "Removed from use"
                                },
                                "repl": {
                                  "type": "string",
                                  "description": "Replaced on"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/calculate_job_offer_comparison_calculator": {
      "post": {
        "operationId": "tool_calculate_job_offer_comparison_calculator",
        "summary": "Job offer comparison calculator (JSON)",
        "description": "Runs the calculator from https://allaiforms.com/tools/job-offer-comparison-calculator/ on your numbers and returns the results as JSON (no files). (JSON results only; for the PDF/Word use generate_job_offer_comparison_calculator.) Arithmetic on the numbers you enter. Not tax, legal, benefits or financial advice, and not a recommendation to accept or decline any offer. The optional payroll-tax lines use only the published Social Security and Medicare employee rates and exclude income tax, Additional Medicare Tax, and state and local taxes.",
        "tags": [
          "calculators"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "years": {
                        "type": "string",
                        "description": "Years to total (1 to 5) (3). Number as text, e.g. \"1200\"."
                      },
                      "ptax": {
                        "type": "string",
                        "enum": [
                          "Show",
                          "Off"
                        ],
                        "description": "Payroll-tax arithmetic (Social Security and Medicare, employee share)"
                      },
                      "wyear": {
                        "type": "string",
                        "enum": [
                          "2027",
                          "2026"
                        ],
                        "description": "Wage year for the Social Security wage base"
                      },
                      "itax": {
                        "type": "string",
                        "description": "Your own income tax rate estimate (%, optional). Number as text, e.g. \"1200\"."
                      },
                      "q": {
                        "type": "string",
                        "maxLength": 3000,
                        "description": "Your questions (for example: confirm the bonus payout basis, the vesting schedule, the benefits start date)"
                      }
                    },
                    "description": "Form fields by id. Leave out what you do not know; the document keeps a blank line for it."
                  },
                  "rows": {
                    "type": "object",
                    "properties": {
                      "offers": {
                        "type": "array",
                        "maxItems": 5,
                        "description": "Offers (one card per offer). Each row is an object keyed by column id (emp = Employer; title = Job title; basis = Pay basis; sal = Annual salary ($); hr = Hourly rate ($); hw = Hours per week (blank = 40); wk = Paid weeks per year (blank = 52); bon = Bonus target ($ per year); bonp = Payout you expect (% of target); sign = Signing bonus ($); reloc = Relocation payment ($); eq = Equity grant value (your estimate, $); eqin = Count equity?; eqc = Your confidence in that value (%); vest = Vesting years; cliff = Cliff (months); k1 = Your retirement contribution (% of pay); k2 = Employer match rate (%); k3 = Match cap (% of pay); hpaid = Employer-paid health ($ per month); hprem = Your health premium ($ per month); hsa = HSA or other employer contribution ($ per year); stip = Stipends ($ per year); pto = PTO days; hol = Paid holidays; mi = Commute one-way miles; mins = Commute one-way minutes; on = On-site days per week; cpm = Your cost per mile ($); park = Parking or transit ($ per year); col = Cost-of-living factor (your figure; 1.00 = baseline); raise = Expected annual raise (%)) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "emp": {
                                  "type": "string",
                                  "description": "Employer"
                                },
                                "title": {
                                  "type": "string",
                                  "description": "Job title"
                                },
                                "basis": {
                                  "type": "string",
                                  "enum": [
                                    "Salary",
                                    "Hourly"
                                  ],
                                  "description": "Pay basis"
                                },
                                "sal": {
                                  "type": "string",
                                  "description": "Annual salary ($)"
                                },
                                "hr": {
                                  "type": "string",
                                  "description": "Hourly rate ($)"
                                },
                                "hw": {
                                  "type": "string",
                                  "description": "Hours per week (blank = 40)"
                                },
                                "wk": {
                                  "type": "string",
                                  "description": "Paid weeks per year (blank = 52)"
                                },
                                "bon": {
                                  "type": "string",
                                  "description": "Bonus target ($ per year)"
                                },
                                "bonp": {
                                  "type": "string",
                                  "description": "Payout you expect (% of target)"
                                },
                                "sign": {
                                  "type": "string",
                                  "description": "Signing bonus ($)"
                                },
                                "reloc": {
                                  "type": "string",
                                  "description": "Relocation payment ($)"
                                },
                                "eq": {
                                  "type": "string",
                                  "description": "Equity grant value (your estimate, $)"
                                },
                                "eqin": {
                                  "type": "string",
                                  "enum": [
                                    "No",
                                    "Yes"
                                  ],
                                  "description": "Count equity?"
                                },
                                "eqc": {
                                  "type": "string",
                                  "description": "Your confidence in that value (%)"
                                },
                                "vest": {
                                  "type": "string",
                                  "description": "Vesting years"
                                },
                                "cliff": {
                                  "type": "string",
                                  "description": "Cliff (months)"
                                },
                                "k1": {
                                  "type": "string",
                                  "description": "Your retirement contribution (% of pay)"
                                },
                                "k2": {
                                  "type": "string",
                                  "description": "Employer match rate (%)"
                                },
                                "k3": {
                                  "type": "string",
                                  "description": "Match cap (% of pay)"
                                },
                                "hpaid": {
                                  "type": "string",
                                  "description": "Employer-paid health ($ per month)"
                                },
                                "hprem": {
                                  "type": "string",
                                  "description": "Your health premium ($ per month)"
                                },
                                "hsa": {
                                  "type": "string",
                                  "description": "HSA or other employer contribution ($ per year)"
                                },
                                "stip": {
                                  "type": "string",
                                  "description": "Stipends ($ per year)"
                                },
                                "pto": {
                                  "type": "string",
                                  "description": "PTO days"
                                },
                                "hol": {
                                  "type": "string",
                                  "description": "Paid holidays"
                                },
                                "mi": {
                                  "type": "string",
                                  "description": "Commute one-way miles"
                                },
                                "mins": {
                                  "type": "string",
                                  "description": "Commute one-way minutes"
                                },
                                "on": {
                                  "type": "string",
                                  "description": "On-site days per week"
                                },
                                "cpm": {
                                  "type": "string",
                                  "description": "Your cost per mile ($)"
                                },
                                "park": {
                                  "type": "string",
                                  "description": "Parking or transit ($ per year)"
                                },
                                "col": {
                                  "type": "string",
                                  "description": "Cost-of-living factor (your figure; 1.00 = baseline)"
                                },
                                "raise": {
                                  "type": "string",
                                  "description": "Expected annual raise (%)"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      },
                      "score": {
                        "type": "array",
                        "maxItems": 10,
                        "description": "Scorecard (kept separate from the money). Each row is an object keyed by column id (c = Criterion; w = Weight (1 to 5); s1 = Offer 1 score (1 to 10); s2 = Offer 2 score; s3 = Offer 3 score; s4 = Offer 4 score; s5 = Offer 5 score) or an array in that column order.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "c": {
                                  "type": "string",
                                  "description": "Criterion"
                                },
                                "w": {
                                  "type": "string",
                                  "description": "Weight (1 to 5)"
                                },
                                "s1": {
                                  "type": "string",
                                  "description": "Offer 1 score (1 to 10)"
                                },
                                "s2": {
                                  "type": "string",
                                  "description": "Offer 2 score"
                                },
                                "s3": {
                                  "type": "string",
                                  "description": "Offer 3 score"
                                },
                                "s4": {
                                  "type": "string",
                                  "description": "Offer 4 score"
                                },
                                "s5": {
                                  "type": "string",
                                  "description": "Offer 5 score"
                                }
                              }
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        }
                      }
                    },
                    "description": "Table rows by table id."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 10
      }
    },
    "/v1/tools/invoice_quote_pdf": {
      "post": {
        "operationId": "tool_invoice_quote_pdf",
        "summary": "Invoice or quote (PDF and Word)",
        "description": "Builds a clean invoice or price quote from structured line items: quantities, unit prices, per-line or default tax percent, discounts, shipping and amount paid. All math is done server-side in integer cents and returned as JSON alongside a PDF and a Word file. Optional expected_total is checked and the call fails (free) if it does not match. Your branding fields (business name, address, tax id, accent text) go on the document. 20 credits ($0.02) per successful document.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "quote"
                    ],
                    "description": "Default invoice."
                  },
                  "number": {
                    "type": "string",
                    "maxLength": 60
                  },
                  "issue_date": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "due_date": {
                    "type": "string",
                    "maxLength": 30,
                    "description": "Invoice due date, or quote valid-until date."
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "description": "ISO 4217 code, default USD."
                  },
                  "seller": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "tax_id": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "additionalProperties": false
                  },
                  "buyer": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "tax_id": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "additionalProperties": false
                  },
                  "items": {
                    "type": "array",
                    "maxItems": 200,
                    "description": "Line items.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "unit_price": {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000,
                          "description": "Rounded to the cent before multiplying."
                        },
                        "tax_rate": {
                          "type": "number"
                        },
                        "discount": {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Default tax percent for lines without their own."
                  },
                  "discount": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000,
                    "description": "Whole-document discount (amount)."
                  },
                  "shipping": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "amount_paid": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "expected_total": {
                    "type": "number",
                    "description": "If given, must equal the computed total to the cent."
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "terms": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "payment_instructions": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "brand": {
                    "type": "object",
                    "properties": {
                      "tagline": {
                        "type": "string",
                        "maxLength": 120
                      },
                      "website": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "additionalProperties": false
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "pdf",
                      "docx",
                      "both"
                    ],
                    "description": "Output files (default both)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 20
      }
    },
    "/v1/tools/fill_template": {
      "post": {
        "operationId": "tool_fill_template",
        "summary": "Fill your own template (PDF or Word)",
        "description": "Fills {{placeholders}} in your own template with JSON data and returns a finished document. Templates: Markdown, plain text or HTML (up to 50 KB; headings, paragraphs, lists and | tables | are kept; HTML is reduced to text, scripts and remote images are dropped and nothing is fetched) rendered to PDF and/or Word, or a Word .docx file (base64, up to 1 MB) whose placeholders are replaced and returned as .docx. Nested keys use dots, e.g. {{client.name}}. Missing keys are listed; set strict to fail (free) instead. 20 credits ($0.02) per successful document.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "template": {
                    "type": "string",
                    "maxLength": 50000,
                    "description": "Markdown, text or HTML template with {{placeholders}}. For a Word template use template_format docx with docx_base64. PDF files are not accepted as templates (output can be PDF)."
                  },
                  "template_format": {
                    "type": "string",
                    "enum": [
                      "markdown",
                      "text",
                      "html",
                      "docx"
                    ],
                    "description": "Default markdown. Use docx with docx_base64."
                  },
                  "docx_base64": {
                    "type": "string",
                    "maxLength": 1400000,
                    "description": "A Word .docx template with {{placeholders}}, base64-encoded (up to about 1 MB). Not a PDF."
                  },
                  "data": {
                    "type": "object",
                    "description": "Values for the placeholders (JSON, up to 20 KB)."
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "strict": {
                    "type": "boolean",
                    "description": "Fail (not charged) when any placeholder has no value."
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "pdf",
                      "docx",
                      "both"
                    ],
                    "description": "Output files (default both)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 20
      }
    },
    "/v1/tools/order_document_pdf": {
      "post": {
        "operationId": "tool_order_document_pdf",
        "summary": "Receipt, purchase order, packing slip or credit note (PDF and Word)",
        "description": "Builds a receipt, purchase order, packing slip or credit note from structured line items, with the same server-side integer-cent math as invoice_quote_pdf (quantity, unit price, per-line or default tax percent, discounts, shipping). Packing slips list SKUs and quantities without prices. Optional expected_total is checked and the call fails (free) if it does not match. Returns the math as JSON plus PDF and/or Word.",
        "tags": [
          "documents"
        ],
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "kind",
                  "items"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "receipt",
                      "purchase_order",
                      "packing_slip",
                      "credit_note"
                    ]
                  },
                  "number": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Receipt, PO, order or credit note number."
                  },
                  "date": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Related order, invoice or PO number."
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "description": "ISO 4217 code, default USD."
                  },
                  "seller": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "tax_id": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "additionalProperties": false
                  },
                  "buyer": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "tax_id": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "additionalProperties": false
                  },
                  "ship_to": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 60
                      },
                      "tax_id": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "additionalProperties": false
                  },
                  "items": {
                    "type": "array",
                    "maxItems": 200,
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "sku": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "unit_price": {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000
                        },
                        "tax_rate": {
                          "type": "number"
                        },
                        "discount": {
                          "type": "number",
                          "minimum": -1000000000,
                          "maximum": 1000000000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "tax_rate": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "discount": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "shipping": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "amount_paid": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000,
                    "description": "Receipts: amount received (default: the total)."
                  },
                  "payment_method": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "expected_total": {
                    "type": "number"
                  },
                  "delivery_date": {
                    "type": "string",
                    "maxLength": 30
                  },
                  "shipping_method": {
                    "type": "string",
                    "maxLength": 120
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "terms": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "pdf",
                      "docx",
                      "both"
                    ],
                    "description": "Output files (default both)."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result. billing shows the credits charged (0 for trial, free or empty results).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolResult"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Credits required or insufficient; includes pay_url",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequired"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "x-credits": 20
      }
    },
    "/v1/keys/me": {
      "get": {
        "operationId": "keys_me",
        "summary": "Key info and balance",
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Credits"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown or revoked key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Invalid arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tools": {
      "get": {
        "operationId": "tools_list",
        "summary": "All tools with prices",
        "responses": {
          "200": {
            "description": "Tools"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key (ak_live_...) issued after a one-time credit-pack purchase."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Same ak_live_... key as a header."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "charged": {
            "type": "integer"
          }
        }
      },
      "PaymentRequired": {
        "type": "object",
        "required": [
          "error",
          "pay_url"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "payment_required",
              "insufficient_credits",
              "invalid_key"
            ]
          },
          "message": {
            "type": "string"
          },
          "credits_required": {
            "type": "integer"
          },
          "usd_required": {
            "type": "number"
          },
          "credits_remaining": {
            "type": "integer"
          },
          "pay_url": {
            "type": "string",
            "format": "uri"
          },
          "buy": {
            "type": "string",
            "format": "uri"
          },
          "packs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pack"
            }
          },
          "subscriptions": {
            "type": "boolean"
          }
        }
      },
      "Pack": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "price_usd": {
            "type": "number"
          },
          "credits": {
            "type": "integer"
          },
          "pay_url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ToolResult": {
        "type": "object",
        "required": [
          "tool",
          "billing"
        ],
        "properties": {
          "tool": {
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/File"
            }
          },
          "billing": {
            "$ref": "#/components/schemas/Billing"
          }
        }
      },
      "Credits": {
        "type": "object",
        "properties": {
          "pack": {
            "type": "string"
          },
          "credits_remaining": {
            "type": "integer"
          },
          "usd_value": {
            "type": "number"
          },
          "billing": {
            "type": "string"
          },
          "subscriptions": {
            "type": "boolean"
          }
        }
      },
      "Billing": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "credits_charged": {
            "type": "integer"
          },
          "usd_charged": {
            "type": "number"
          },
          "credits_remaining": {
            "type": "integer"
          },
          "ref": {
            "type": "string"
          },
          "trial_left_today": {
            "type": "integer"
          }
        }
      },
      "File": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "mime": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "base64": {
            "type": "string"
          }
        }
      }
    }
  }
}