# Update Deal scorecard inputs

`deal_scorecards.update`

Update selected options or internal notes for explicitly named criteria returned by deal_scorecards.get. Send the unchanged expected_revision; calculated totals and floor rates are recomputed from canonical model rules. This does not submit, approve, decline, or move the Deal.

[Deal scorecards guide](https://docs.levr.ai/mcp/resources/deal_scorecards.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": {
    "criteria": {
      "items": {
        "additionalProperties": false,
        "minProperties": 2,
        "properties": {
          "criterion_id": {
            "description": "Copy criteria[].id from deal_scorecards.get. Prefix: scrit_.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "maxLength": 10000,
            "type": "string"
          },
          "selected_option_id": {
            "anyOf": [
              {
                "description": "Stable public identifier for the referenced resource.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Copy criteria[].options[].id for this criterion from deal_scorecards.get; null clears the selection. Prefix: sopt_."
          }
        },
        "required": [
          "criterion_id"
        ],
        "type": "object"
      },
      "maxItems": 100,
      "minItems": 1,
      "type": "array"
    },
    "deal_id": {
      "description": "Copy id (deal_) from deals.list; not an application or support record ID.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "expected_revision": {
      "description": "Copy revision unchanged from deal_scorecards.get.",
      "maxLength": 64,
      "minLength": 64,
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "deal_id",
    "expected_revision",
    "criteria"
  ],
  "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": {
        "criteria": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "description": "Stable public identifier for the referenced resource.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "notes": {
                "type": "string"
              },
              "options": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "description": "Stable public identifier for the referenced resource.",
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "value"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "section": {
                "type": "string"
              },
              "selected_option_id": {
                "anyOf": [
                  {
                    "description": "Stable public identifier for the referenced resource.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Copy criteria[].options[].id for this criterion from deal_scorecards.get; null clears the selection. Prefix: sopt_."
              },
              "subsection": {
                "type": "string"
              },
              "weight": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "section",
              "subsection",
              "name",
              "weight",
              "notes",
              "selected_option_id",
              "options"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "deal_id": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "normalized_score": {
          "type": "number"
        },
        "raw_score": {
          "type": "number"
        },
        "revision": {
          "type": "string"
        },
        "scorecard_id": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "section_scores": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "combined_score": {
                "type": "number"
              },
              "floor_rate": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "is_common_section": {
                "type": "boolean"
              },
              "normalized_score": {
                "type": "number"
              },
              "section_name": {
                "type": "string"
              },
              "section_score": {
                "type": "number"
              }
            },
            "required": [
              "section_name",
              "section_score",
              "combined_score",
              "normalized_score",
              "floor_rate",
              "is_common_section"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "deal_id",
        "scorecard_id",
        "revision",
        "raw_score",
        "normalized_score",
        "section_scores",
        "criteria"
      ],
      "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.
