Reference
lg_workspace_budget_set: Lower a workspace's monthly budget
Change a workspace's monthly budget (its keys stop at it). As an agent you may only lower it; raising or removing it is done by a person.
- Changes data: yes
- Credential scope:
gateway:write(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: an assistant at Full; a lower level is refused
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
body | object (monthly_usd) | yes | |
body.monthly_usd | string or number or null | yes |
Example MCP call
A tools/call request to https://manage.restolayer.com/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lg_workspace_budget_set",
"arguments": {
"id": "ws_01jabcdefghjkmnpqrstvwxyz0",
"body": {
"monthly_usd": "50.00"
}
}
}
}Example REST call
The same thing over REST (PUT /v1/workspaces/:id/budget):
curl -s -X PUT "https://manage.restolayer.com/v1/workspaces/ws_01jabcdefghjkmnpqrstvwxyz0/budget" \
-H "Authorization: Bearer $LG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"monthly_usd":"50.00"}'All tools: MCP tools. Connecting: connect your assistant.