> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Attention Update Scorecard Item: Inputs, Cost & CLI

> Update Scorecard Item. Attention Attention Update Scorecard Item docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=attention_update_scorecard_item:{"id":"{{id}}","itemId":"{{itemId}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                   | Type      | Required | Default | Description                                                                                                                     |
| ---------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `payload.id`           | `string`  | Yes      |         | Parent scorecard UUID                                                                                                           |
| `payload.itemId`       | `string`  | Yes      |         | Scorecard item UUID                                                                                                             |
| `payload.title`        | `string`  | No       |         | Replacement title (1-128 characters, trimmed).                                                                                  |
| `payload.weight`       | `integer` | No       |         | Replacement weight (0-100).                                                                                                     |
| `payload.position`     | `integer` | No       |         | Replacement position. Reordering siblings is the caller's responsibility; overlapping positions may produce undefined ordering. |
| `payload.expertPrompt` | `string`  | No       |         | Replacement expert-mode prompt (0-8000 characters).                                                                             |
| `payload.metadata`     | `object`  | No       |         | Type-discriminated metadata for a scorecard item. Numeric items populate numericMetadata.                                       |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Partial update payload for a scorecard item. All fields optional; at least one required.",
    "properties": {
      "id": {
        "type": "string",
        "description": "Parent scorecard UUID"
      },
      "itemId": {
        "type": "string",
        "description": "Scorecard item UUID"
      },
      "title": {
        "type": "string",
        "description": "Replacement title (1-128 characters, trimmed)."
      },
      "weight": {
        "type": "integer",
        "description": "Replacement weight (0-100)."
      },
      "position": {
        "type": "integer",
        "description": "Replacement position. Reordering siblings is the caller's responsibility; overlapping positions may produce undefined ordering."
      },
      "expertPrompt": {
        "type": "string",
        "description": "Replacement expert-mode prompt (0-8000 characters)."
      },
      "metadata": {
        "type": "object",
        "description": "Type-discriminated metadata for a scorecard item. Numeric items populate numericMetadata.",
        "properties": {
          "numericMetadata": {
            "type": "object",
            "description": "Configuration for a numeric scorecard item including score range and per-bucket criteria.",
            "properties": {
              "min": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minimum score value (inclusive)."
              },
              "middle": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Optional middle score anchor. When present, a middleCriteria is required."
              },
              "max": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Maximum score value (inclusive)."
              },
              "minCriteria": {
                "type": "string",
                "description": "Guidance for the evaluator describing what a minimum score looks like."
              },
              "middleCriteria": {
                "type": "string",
                "description": "Guidance for the evaluator describing what the middle score looks like. Required when middle is set."
              },
              "maxCriteria": {
                "type": "string",
                "description": "Guidance for the evaluator describing what a maximum score looks like."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "id",
      "itemId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                        |
| ------------- | -------- | -------- | ------- | -------------------------------------------------- |
| `result.data` | `object` | Yes      |         | Single-resource envelope wrapping a ScorecardItem. |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging).     |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Single-resource envelope wrapping a ScorecardItem.",
        "properties": {
          "data": {
            "type": "object",
            "description": "A single scoring criterion belonging to a scorecard template.",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Scorecard item UUID."
              },
              "scorecardUUID": {
                "type": "string",
                "description": "UUID of the parent scorecard."
              },
              "title": {
                "type": "string",
                "description": "Human-readable title of the item (1-128 characters)."
              },
              "type": {
                "type": "string",
                "description": "Scoring type for a scorecard item. Currently only numeric is supported.",
                "enum": [
                  "numeric"
                ]
              },
              "position": {
                "type": "integer",
                "description": "Zero-indexed ordering position among siblings on the parent scorecard."
              },
              "weight": {
                "type": "integer",
                "description": "Relative weight of this item within the scorecard (0-100)."
              },
              "version": {
                "type": "integer",
                "description": "Monotonic version counter incremented on each update."
              },
              "expertPrompt": {
                "type": "string",
                "description": "Optional expert-mode prompt override for this specific item."
              },
              "metadata": {
                "type": "object",
                "description": "Type-discriminated metadata for a scorecard item. Numeric items populate numericMetadata.",
                "properties": {
                  "numericMetadata": {
                    "type": "object",
                    "description": "Configuration for a numeric scorecard item including score range and per-bucket criteria.",
                    "properties": {
                      "min": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Minimum score value (inclusive)."
                      },
                      "middle": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Optional middle score anchor. When present, a middleCriteria is required."
                      },
                      "max": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Maximum score value (inclusive)."
                      },
                      "minCriteria": {
                        "type": "string",
                        "description": "Guidance for the evaluator describing what a minimum score looks like."
                      },
                      "middleCriteria": {
                        "type": "string",
                        "description": "Guidance for the evaluator describing what the middle score looks like. Required when middle is set."
                      },
                      "maxCriteria": {
                        "type": "string",
                        "description": "Guidance for the evaluator describing what a maximum score looks like."
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "createdAt": {
                "type": "string",
                "description": "Timestamp when the item was created.",
                "format": "date-time"
              },
              "lastUpdatedAt": {
                "type": "string",
                "description": "Timestamp of the most recent update.",
                "format": "date-time"
              }
            },
            "required": [
              "createdAt",
              "lastUpdatedAt",
              "position",
              "scorecardUUID",
              "title",
              "type",
              "uuid",
              "version",
              "weight"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute attention_update_scorecard_item --payload '{
  "id": "string",
  "itemId": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
