# Configure financing fields

`deals.update_terms_configuration`

Administer a pipeline's financing fields. Each supplied list replaces that list; omitted lists stay unchanged. Read deals.get_terms_configuration first. Required fields govern funding readiness; this does not change lender submission requirements or erase saved deal values.

[Deals guide](https://docs.levr.ai/mcp/resources/deals.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
{
  "additionalProperties": false,
  "properties": {
    "configuration": {
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "deal_terms_required_fields": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "deal_terms_restricted_fields": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "deal_terms_visible_fields": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "expected_revision": {
      "description": "Copy revision from deals.get_terms_configuration.",
      "maxLength": 64,
      "minLength": 64,
      "type": "string"
    },
    "idempotency_key": {
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    },
    "pipeline_slug": {
      "description": "Copy pipelines[].slug from deals.list_pipelines.",
      "pattern": "^dpipe_[a-z0-9]+$",
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "pattern": "^[a-zA-Z0-9_-]{1,64}$",
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "pipeline_slug",
    "expected_revision",
    "idempotency_key",
    "configuration"
  ],
  "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": {
        "available_fields": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        },
        "configuration": {
          "additionalProperties": false,
          "properties": {
            "deal_terms_required_fields": {
              "items": {
                "type": "string"
              },
              "maxItems": 100,
              "type": "array"
            },
            "deal_terms_restricted_fields": {
              "items": {
                "type": "string"
              },
              "maxItems": 100,
              "type": "array"
            },
            "deal_terms_visible_fields": {
              "items": {
                "type": "string"
              },
              "maxItems": 100,
              "type": "array"
            }
          },
          "type": "object"
        },
        "pipeline_slug": {
          "description": "Copy pipelines[].slug from deals.list_pipelines.",
          "type": "string"
        },
        "revision": {
          "type": "string"
        }
      },
      "required": [
        "pipeline_slug",
        "revision",
        "configuration",
        "available_fields"
      ],
      "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.
