name_card
Tell the vault which card product one of the user's own stored cards is (e.g. "Chase Sapphire Preferred", "Amex Gold"), so smart purchases can rank it. Takes a vault card id (a vaultCards row from list_cards) and the product name as the user says it; the closest match is saved and echoed back. Confirm with the user when the match is not obviously right. Pass clear_product to forget the name, or smart_excluded to keep a card out of the ranking without removing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | The vault card id (from list_cards → vaultCards). | |
| product | No | The card product as the user says it, e.g. "Chase Sapphire Preferred" or "Amex Gold". Four characters minimum. | |
| clear_product | No | true = forget the product name. Do not combine with product. | |
| smart_excluded | No | true = leave this card out of smart purchases; false = include it again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | "named" | "cleared" | "updated" | "no_match" | "ambiguous" (several products match; nothing saved, ask the user) | "noop". | |
| matches | No | On no_match or an ambiguous name: the closest products found, to offer the user. | |
| message | Yes | What was saved. | |
| product_key | No | The saved product key. | |
| product_name | No | The saved product name. |