settings_updateShelfLifeSettings
WRITEUpdate shelf life settings.
Parameters
/** undefined disables expiry badges company-wide. */
nearExpiryWarningDaysanyrequired/** Seed for the "Shelf-life (days)" input on new items. */
defaultShelfLifeDaysnumberrequired/** MIN expiry scope for Calculated-mode finished products. */
calculatedInputScopeenumrequired/** Policy enforced when an operator consumes an expired entity. */
expiredEntityPolicyenumrequiredCall it
Invoke it through the call_tool meta-tool with its arguments:
call_tool
call_tool({
"name": "settings_updateShelfLifeSettings",
"arguments": {
"/** undefined disables expiry badges company-wide. */\n nearExpiryWarningDays": "string",
"/** Seed for the \"Shelf-life (days)\" input on new items. */\n defaultShelfLifeDays": 0,
"/** MIN expiry scope for Calculated-mode finished products. */\n calculatedInputScope": "string",
"/** Policy enforced when an operator consumes an expired entity. */\n expiredEntityPolicy": "string"
}
})Input schema
The raw JSON Schema the tool validates its arguments against.
schema
{
"type": "object",
"properties": {
"/** undefined disables expiry badges company-wide. */\n nearExpiryWarningDays": {},
"/** Seed for the \"Shelf-life (days)\" input on new items. */\n defaultShelfLifeDays": {
"type": "number"
},
"/** MIN expiry scope for Calculated-mode finished products. */\n calculatedInputScope": {
"type": "string",
"enum": [
"AllInputs",
"ManagedInputsOnly"
]
},
"/** Policy enforced when an operator consumes an expired entity. */\n expiredEntityPolicy": {
"type": "string",
"enum": [
"Warn",
"Block",
"BlockWithOverride"
]
}
},
"required": [
"/** undefined disables expiry badges company-wide. */\n nearExpiryWarningDays",
"/** Seed for the \"Shelf-life (days)\" input on new items. */\n defaultShelfLifeDays",
"/** MIN expiry scope for Calculated-mode finished products. */\n calculatedInputScope",
"/** Policy enforced when an operator consumes an expired entity. */\n expiredEntityPolicy"
]
}