Tool tree
A bright, visual way to track sugar from everyday food and drinks.
Implementation
gradeNot graded
gradeNot graded
sugarstack_get_dayAnswer
Read the visible SugarStack day, its logged items, total sugar, calories and cube estimate. Makes no changes.
View tool JSON
{
"name": "sugarstack_get_day",
"kind": "answer",
"impl": "imperative",
"description": "Read the visible SugarStack day, its logged items, total sugar, calories and cube estimate. Makes no changes.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
}
}sugarstack_search_catalogAnswer
Find SugarStack catalog items and their typical serving, sugar and calorie values before adding them. Makes no changes.
View tool JSON
{
"name": "sugarstack_search_catalog",
"kind": "answer",
"impl": "imperative",
"description": "Find SugarStack catalog items and their typical serving, sugar and calorie values before adding them. Makes no changes.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Food or drink name, such as cola, juice, apple, or latte."
}
},
"required": [
"query"
],
"additionalProperties": false
}
}sugarstack_add_itemsAction
Add one or more catalog foods or drinks to the visible day. Use food IDs from sugarstack_search_catalog; amount is ml or g and quantity defaults to 1.
View tool JSON
{
"name": "sugarstack_add_items",
"kind": "act",
"impl": "imperative",
"description": "Add one or more catalog foods or drinks to the visible day. Use food IDs from sugarstack_search_catalog; amount is ml or g and quantity defaults to 1.",
"inputSchema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"minItems": 1,
"maxItems": 12,
"items": {
"type": "object",
"properties": {
"foodId": {
"type": "string"
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 5000
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"foodId"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
}
}sugarstack_update_entryAction
Update the amount or quantity of an existing visible sugar log item.
View tool JSON
{
"name": "sugarstack_update_entry",
"kind": "act",
"impl": "imperative",
"description": "Update the amount or quantity of an existing visible sugar log item.",
"inputSchema": {
"type": "object",
"properties": {
"entryId": {
"type": "string"
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 5000
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"entryId"
],
"additionalProperties": false
}
}sugarstack_remove_entryAction
Remove one item from the visible sugar log using its entry ID.
View tool JSON
{
"name": "sugarstack_remove_entry",
"kind": "act",
"impl": "imperative",
"description": "Remove one item from the visible sugar log using its entry ID.",
"inputSchema": {
"type": "object",
"properties": {
"entryId": {
"type": "string"
}
},
"required": [
"entryId"
],
"additionalProperties": false
}
}