{
  "openapi": "3.1.1",
  "info": {
    "title": "Hireboard Job Ad Wording Checker API",
    "version": "1.0.0",
    "summary": "Spot gender-coded words, age hints and needless requirements in a job ad — with suggestions.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://hireboardjobadchecker.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculate",
        "summary": "Spot gender-coded words, age hints and needless requirements in a job ad — with suggestions.",
        "description": "Paste the text of a job ad (English). The checker marks masculine- and feminine-coded words (based on the word lists of Gaucher, Friesen \u0026 Kay 2011), gendered job titles and pronouns, phrases that hint at a preferred age, requirements that may exclude people without being needed for the job, questions about pay history and a missing pay range — each with the line, a short reason and a suggestion. It is a wording aid, not a legal check.\n\nMethodology:\n- Gender-coded words: word stems based on the masculine-coded (agentic) and feminine-coded (communal) lists of Gaucher, Friesen \u0026 Kay (2011), matched at the start of words. The ad counts as masculine- or feminine-coded when one side has at least two more words than the other; otherwise neutral. Common words such as “lead” are on the masculine list — keep them when they are the right word.\n- Gendered titles and pronouns (salesman, chairman, he/she, guys), age hints (young, digital native, recent graduate, a maximum of years of experience) and requirements to review (native speaker, own car or licence, physical abilities, culture fit, jargon titles) come from a fixed phrase list, each with a suggestion.\n- Pay: a pay range is found by currency amounts with a range (€50,000–60,000, 50k–60k EUR) or words such as “salary range”; questions about current or previous pay are marked. Directive (EU) 2023/970 Art. 5 is quoted as background information.\n- Heuristics on English text only: they can miss words, mark words used in a harmless sense and cannot judge context. The result is not legal advice and does not say whether an ad complies with any law.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "hireboard_job_ad_checker",
        "x-owner-app": "hireboard",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HireboardJobAdCheckerInput"
              },
              "examples": {
                "example1": {
                  "summary": "A sales ad with several issues",
                  "value": {
                    "text": "Senior Salesman (m/f)\n\nWe are a young, fast-growing team of rockstars looking for an ambitious, competitive salesman who leads from the front.\n\nWhat you bring\n- 3+ years of B2B sales experience\n- Native English speaker\n- Must have own car\n- Please tell us your current salary\n\nYou are supportive, reliable and love working together with our customer team."
                  }
                },
                "example2": {
                  "summary": "A balanced developer ad",
                  "value": {
                    "text": "Frontend developer\n\nYou build accessible features with a supportive team and take responsibility for your own projects.\n\nWhat you bring\n- Experience with TypeScript\n- Fluent English (C1)\n\nPay: €62,000–74,000 a year."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HireboardJobAdCheckerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tool": {
      "get": {
        "operationId": "getToolDefinition",
        "summary": "Inputs, output schema and examples for this tool",
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "HireboardJobAdCheckerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Job ad text (English)",
            "description": "Plain text or Markdown. At most 40,000 characters.",
            "type": "string",
            "maxLength": 40000,
            "default": "Senior Salesman (m/f)\n\nWe are a young, fast-growing team of rockstars looking for an ambitious, competitive salesman who leads from the front.\n\nWhat you bring\n- 3+ years of B2B sales experience\n- Native English speaker\n- Must have own car\n- Please tell us your current salary\n\nYou are supportive, reliable and love working together with our customer team."
          }
        },
        "required": []
      },
      "HireboardJobAdCheckerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "properties": {
              "coding": {
                "type": "string"
              },
              "masculine": {
                "type": "integer"
              },
              "feminine": {
                "type": "integer"
              },
              "findings": {
                "type": "array"
              },
              "counts": {
                "type": "object"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}