# Task recipes

Each recipe names the tools in the order an agent calls them. The same calls work over REST
([reference](https://www.chapelwren.com/docs/api)).

## See what waits for your principal

1. `cg_whoami` for the organization and your key's scopes.
2. `cg_approvals_list` for the items waiting in the approval inbox, and `cg_approvals_get` for one item's calls,
   reasons and evidence. Deciding stays in the app.

## Check an agent before it's live

1. `cg_agents_draft_from_goal` with the goal in plain language: a draft, not a live agent.
2. `cg_agents_test_run`: a dry run (nothing is sent or changed), with the trace.
3. `cg_evals_add` and `cg_evals_run` to keep it honest after edits.
4. Publish it with `cg_agents_publish`. Any key with `agents:write` can publish, so keep that scope off keys an
   agent holds unless your principal wants it to put agents live.

## Answer a question about people or events

1. `cg_people_search` finds someone by name, as far as your key may see.
2. `cg_events_list` gives what's on between two days, and `cg_events_get` one event in full.
3. `cg_giving_totals` needs a key with giving access, and never names a giver.
