Get Tree Credit balance¶
Footprint figures are illustrative estimates, not measurements of electricity consumption or actual emissions from AI infrastructure, and are not verified carbon-accounting data. Bloomy Earth always talks about climate contribution and responsibility — never about offsetting or neutralizing AI emissions.
Reads the connected Bloomy Earth account's Tree Credit balance and organization ID from the Bloomy Earth API, so a user can see what the two spending tools would draw on before confirming anything.
What it does¶
get_credit_balance calls the Bloomy Earth API endpoint GET /v1/credits with the credentials sealed in the current OAuth token and returns the account's Tree Credit balance together with its organization ID. It reads the account the user signed in with; there is no parameter for another account.
The call requires a signed-in token. Without one, the tool answers with a sign-in prompt instead of a balance.
When an agent reaches for it¶
- A user asks how many Tree Credits they have.
- A user is about to plant trees or offset by the tonne and wants to know whether the balance covers it.
- An agent needs the account's current balance before summarising what a write would cost in credits.
- A user asks which organization their token is connected to.
Inputs¶
get_credit_balance accepts an empty object. It declares no parameters — no account selector, no pagination, no filters.
Output¶
The result is text plus a structured payload with two numeric fields:
organizationId— the connected Bloomy Earth organization's identifier.credits— the organization's current Tree Credit balance.
The text summary reads Organization <organizationId> has <credits> Tree Credit(s). If the upstream response does not match that two-field shape, the tool answers with an honest error naming the mismatch rather than a guessed balance, and points at the dashboard where the balance can be checked directly.
Scope and confirmation¶
get_credit_balance is read-only and needs mcp:read only. It spends nothing and writes nothing, so it has no confirmation step and never consumes the two-call write-confirmation floor. It does call the Bloomy Earth API, which is why its annotations mark it as open-world; that network read is the only side effect, and it changes nothing.
Worked example¶
A request carries no arguments:
{
"name": "get_credit_balance",
"arguments": {}
}
The response is a text line of the form Organization <organizationId> has <credits> Tree Credit(s). plus structuredContent with the same two fields.
The values are the reader's own account's, so no balance or organization id is printed here. Nothing in this page should be read as a sample balance.
Related¶
- Capabilities overview — the whole shipped surface with kind and scope.
estimate_ai_footprint— the free estimate that needs no account at all.- The balance is what the two spending tools —
plant_treesandoffset_co2_by_tonne— read before their confirmation step; both spend the signed-in user's own Tree Credits.