# Start matchmaking application autofill

`projects.start_matchmaking_application_autofill`

Start asynchronous autofill for a Project's matchmaking application using its current notes, existing prepared files, and selected evidence sources. Read the autofill preparation first, then pass its revision and a UUID idempotency key. Poll the returned run id with projects.get_matchmaking_application_autofill. Changing preparation and starting again creates a new run and may supersede an active run for the same application and principal.

[Matchmaking guide](https://docs.levr.ai/mcp/resources/matchmaking.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "ai_mode": {
      "enum": [
        "fast",
        "thinking"
      ],
      "type": "string"
    },
    "expected_preparation_revision": {
      "description": "Copy revision from projects.get_matchmaking_application_autofill_preparation; refresh after preparation changes.",
      "minimum": 1,
      "type": "integer"
    },
    "idempotency_key": {
      "format": "uuid",
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "selected_evidence_source_ids": {
      "description": "Copy evidence_sources[].id from projects.get_matchmaking_application_autofill_preparation. Omit for default sources; [] selects none.",
      "items": {
        "description": "Stable public identifier for the referenced resource.",
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "type": "array"
    },
    "workspace_slug": {
      "description": "Matching workspace: copy workspace_slug (mmw_) from projects.get or projects.list; not project_slug.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "workspace_slug",
    "expected_preparation_revision",
    "idempotency_key"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "run": {
          "additionalProperties": false,
          "properties": {
            "attempt_sequence": {
              "anyOf": [
                {
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "can_retry": {
              "type": "boolean"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "failure": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "code",
                    "message",
                    "retryable"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "description": "Stable public identifier for the referenced resource.",
              "maxLength": 255,
              "minLength": 1,
              "type": "string"
            },
            "progress": {
              "additionalProperties": false,
              "properties": {
                "completed_units": {
                  "minimum": 0,
                  "type": "integer"
                },
                "step": {
                  "type": "string"
                },
                "total_units": {
                  "anyOf": [
                    {
                      "minimum": 0,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "step",
                "completed_units",
                "total_units"
              ],
              "type": "object"
            },
            "status": {
              "enum": [
                "pending",
                "running",
                "completed",
                "failed"
              ],
              "type": "string"
            },
            "suggestion_count": {
              "minimum": 0,
              "type": "integer"
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            },
            "warning_count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "id",
            "status",
            "progress",
            "suggestion_count",
            "warning_count",
            "can_retry",
            "attempt_sequence",
            "failure",
            "created_at",
            "updated_at"
          ],
          "type": "object"
        },
        "workspace_slug": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "workspace_slug",
        "run"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
