Reference
lg_workspace_budget_get: A workspace's budget and spend
Read a workspace's monthly budget and what its keys spent this month.
- Changes data: no (read only)
- Credential scope:
gateway:read(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: any connected assistant (Read only and up)
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | 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_get",
"arguments": {
"id": "ws_01jabcdefghjkmnpqrstvwxyz0"
}
}
}Example REST call
The same thing over REST (GET /v1/workspaces/:id/budget):
curl -s -X GET "https://manage.restolayer.com/v1/workspaces/ws_01jabcdefghjkmnpqrstvwxyz0/budget" \
-H "Authorization: Bearer $LG_API_KEY"All tools: MCP tools. Connecting: connect your assistant.