Track goals, log datapoints, manage pledges and charge yourself with Beeminder's commitment-contract goal tracker.
Beeminder ships in the w6w first-party pack. It declares 18 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.beeminderBeeminder is a goal tracker with teeth: each goal has a bright red line to stay on the right side of, and derailing costs a pledge you set in advance.
A workflow can read a user and their goals (active or archived), create and update goals, push data into a goal as a datapoint (single or batch, with a request id so a retried step never double-counts), edit or delete datapoints, and read them back with sorting and paging. It can also manage the commitment itself: ratchet a goal’s safety buffer down, step the pledge down or cancel a scheduled step-down, short-circuit a pledge up, force an autodata refresh, call Uncle to derail a goal on purpose, or create an arbitrary charge.
The connection holds the personal auth token from beeminder.com/api/v1/auth_token.json (while logged in), sent as the auth_token query parameter by the sign hook. Note that Uncle, short-circuit and charge actions move real money and cannot be undone.
Three routes to the same 18 actions. The Workflow tab is generated from Beeminder's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
cancel-stepdown Cancel a pending step-down of a goal's pledge; the pledge stays at its current amount.
create-charge Charge the token's user an arbitrary amount in US dollars (minimum 1.00). Moves real money and cannot be undone — use dry run to preview.
create-datapoint Add a datapoint to a goal. `requestid` makes it an upsert: resending the same request id never duplicates, and a changed value updates the existing point. It defaults to this invocation's id so a retried step is safe.
create-datapoints Add several datapoints to a goal in one call. Each needs at least a `value`; `timestamp`, `daystamp`, `comment` and `requestid` are optional. On partial failure Beeminder answers with separate `successes` and `errors` lists.
create-goal Create a goal. Exactly two of goal date, goal value and rate are required; Beeminder computes the third. Use dry run to validate without creating.
get-user Read a user: username, timezone, last-update time, goal slugs and urgency load. Use `updatedAt` to skip needless requests — it changes whenever any goal or datapoint does.
list-datapoints List a goal's datapoints, newest first by id unless sorted. Use `count` for the latest n, or `page` + `per` to paginate (page 1 is the first page).
ratchet-goal Ratchet a goal down by reducing its safety buffer (days for do-more goals, units for do-less goals), moving the bright red line closer to your data. Ratcheting to 0 needs `beemergency`.
refresh-graph Force a refetch of autodata and a graph refresh, like the refresh button on the goal page. Asynchronous: returns whether the goal was queued. The vendor asks for extreme conservatism with this endpoint.
shortcircuit-goal Increase the goal's pledge level and CHARGE the user the current pledge amount. Moves real money; cannot be undone.
stepdown-goal Schedule a decrease of the goal's pledge level. It applies after the akrasia horizon, not immediately; the goal then shows a countdown to the lower pledge.
uncle-goal USE AT YOUR OWN RISK. Instantly derail a goal that is in a beemergency (red, zero safe days): stops alerts, CHARGES the pledge to you and all Groupies, and inserts the post-derail respite. No takebacks, no refunds. Fails if the goal has buffer left.
update-goal Update a goal's title, y-axis label, x-axis bounds, visibility, data source, tags or bright red line (`roadall`). The goal type cannot be changed, and a change that makes the goal easier before the akrasia horizon is refused by Beeminder.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Beeminder's real ids.
{
"manifestVersion": "2",
"name": "beeminder-example",
"steps": [
{
"id": "create-charge",
"uses": {
"app": "io.w6w.beeminder",
"action": "create-charge",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"username": "<username>",
"amount": "<amount>"
}
}
]
}create-charge create-datapoint create-datapoints create-goal get-goal +13 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Beeminder, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Beeminder. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "create-charge",
payload: {
username: "<value>",
amount: "<value>",
// note: "<value>",
// dryrun: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action create-charge --payload '{"username":"<value>","amount":"<value>"}' Give an AI agent Beeminder — without giving it Beeminder's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.beeminder#create-charge",
"input": {
"username": "<username>",
"amount": "<amount>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Beeminder connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Beeminder's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Beeminder itself is MIT, and the runtime that executes it is source-available (FSL).
Beeminder declares its own checks, so its health is a property of the app rather than something the host guesses at.
Unauthenticated GET /users/me.json. Beeminder's JSON `errors` object on a 401 passes: it proves the application is answering.