stack_assign
Assign resources without a stack to a named stack by writing stack into each service.json; set move to true to reassign resources already in another stack.
Instructions
Assign resources that have no stack yet to a stack (writes stack into their service.json). A resource already in a stack is refused unless move is true, which moves it out of its current stack. Returns the structured envelope: data.stack and data.assigned (name and service.json path of each resource), or errors with a code and suggestions (for example the valid resource names). Set projectPath when the MCP server is not running from the project root.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stack": "<stack>",
"resources": "<resources>"
},
"name": "stack_assign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | Move resources that are already in another stack instead of refusing them | |
| stack | Yes | Stack name (kebab-case) | |
| resources | Yes | Names of the resources to assign | |
| projectPath | No | Absolute path to the Flisk project root; run this operation from that directory. |