← All MCP tools

MCP tool

compile_persona

Compile a persona into concrete targeting for all seven workbench channels (CTV, audio, TV, cinema, DOOH, paid search, and paid social). Returns per-channel targeting specs, a fidelity score/grade per channel (person → household → content → venue → geo-cohort), a lawful-basis manifest for every targeting element, warnings, and a plain-English narration of how the persona translates on each channel.

Input

Pass fields from this schema as the tool arguments. Runtime ownership, product scope and readiness checks still apply.

Input JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "personaId": {
      "type": "string",
      "description": "persona id, e.g. per-1a2b3c4d"
    }
  },
  "required": [
    "personaId"
  ]
}

REST mapping and authority

The tool wraps this REST endpoint. The mapping identifies path/query/body transformations and approval or idempotency headers.

Request contract
{
  "method": "POST",
  "path": "/api/v1/personas/{personaId}/compile",
  "pathFields": [
    "personaId"
  ],
  "pathSchema": {
    "type": "object",
    "properties": {
      "personaId": {
        "type": "string",
        "description": "persona id, e.g. per-1a2b3c4d"
      }
    },
    "additionalProperties": false,
    "required": [
      "personaId"
    ]
  },
  "pathEncoding": "encodeURIComponent for each path field",
  "governedAction": null,
  "headers": {},
  "body": null,
  "responseMapping": "REST JSON is returned as MCP structuredContent and a compatibility text block; privacy-sensitive tools validate their output schema."
}

Output

This is the registered MCP output envelope. Nested fields are only modeled where the schema explicitly defines them.

Output JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "compiled": {
      "type": "array",
      "items": {}
    }
  },
  "required": [
    "compiled"
  ],
  "additionalProperties": {}
}

Safety annotations

MCP annotations
{
  "readOnlyHint": false,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false
}

Annotations help a client present the tool. The API independently enforces authorization and exact action approvals. Error and retry guidance →

compile_persona | AdBuyMCP docs