Appearance
API reference
This page summarises the operations in the build with every module. The source of truth is the generated snapshots in crates/orbit-bin, which tests keep in step with the code:
- GraphQL schema:
schema.all-modules.graphql - MCP tools:
mcp-tools.all-modules.json - CLI help:
cli-help.all-modules.txt
The build without optional modules has only the kernel operations, and no MCP tools. Authentication, error codes and limits are in the API overview.
By module
What each module on development declares in its manifest. Each command is a GraphQL mutation and a CLI verb, each query a GraphQL query field and a CLI verb; MCP tools are the subset the module lists, and sensitive ones need the person's approval. The module READMEs describe every operation and who may run it.
| Module | Commands | Queries | MCP tools | Sensitive |
|---|---|---|---|---|
agents | 4 | 1 | 0 | 0 |
attendance | 12 | 7 | 6 | 2 |
core | 25 | 15 | 9 | 0 |
country-ca | 1 | 2 | 2 | 1 |
country-lk | 1 | 2 | 2 | 1 |
expenses | 17 | 10 | 13 | 6 |
hello | 5 | 2 | 3 | 1 |
inbox | 3 | 6 | 4 | 0 |
leave | 14 | 8 | 8 | 2 |
payroll | 26 | 18 | 22 | 19 |
policies | 9 | 7 | 11 | 2 |
recruitment | 30 | 12 | 16 | 7 |
scim | 9 | 5 | 0 | 2 |
Kernel and the sample module
Every GraphQL field returns a JSON value. "Who may" is what the Cedar policies allow a person with that tenant role. An owner can do everything an admin can, and an admin everything a member can.
| Operation | Kind | GraphQL | MCP tool | CLI | Input | Output | Who may |
|---|---|---|---|---|---|---|---|
kernel.module.enable | command | kernelModuleEnable | none | orbit kernel module enable --module <id> | module: module id | null | admin |
kernel.module.disable | command | kernelModuleDisable | none | orbit kernel module disable --module <id> | module: module id | null | admin |
kernel.session.get | query | kernelSessionGet | none | orbit kernel session get | none | { actor: { kind, id }, modules: [enabled module ids] } | member |
hello.greeting.post | command | helloGreetingPost | hello.greeting.post | orbit hello greeting post --text <text> | text: 1 to 280 characters | the greeting | member |
hello.greeting.list | query | helloGreetingList | hello.greeting.list | orbit hello greeting list | none | up to 50 greetings, newest first | member |
hello.greeting.delete | command | helloGreetingDelete | hello.greeting.delete (sensitive) | orbit hello greeting delete --id <id> | id: greeting id (UUID) | null | the author, or an admin |
A greeting is { id, author, text, posted_at }: author is the Orbit id of the person who posted it and posted_at is a UTC timestamp.
Notes
kernel.*operations are always available.kernel.session.getlists the modules enabled for your tenant (the built-inkernelis not listed).kernel.module.enableandkernel.module.disableonly switch the module on or off for your tenant; they never run migrations (ADR 0004).modulemust be a module compiled into the server, or the answer isNOT_FOUND. They are refused withCONFLICTwhen the module has not been migrated yet (an operator runsorbit migrate), when enabling a module whose dependencies are off, and when disabling a module that another enabled module requires. Disabling hides the module for your tenant and keeps its data. Switching to the state a module is already in does nothing.hello.*operations need thehellomodule enabled for your tenant. Otherwise they are refused withFORBIDDEN, and MCP does not list its tools.hello.greeting.postemits the eventhello.greeting.posted. Posting a greeting is something only a person can do.hello.greeting.deleteis sensitive. Over MCP it needs the confirm step described in the API overview. It returnsNOT_FOUNDfor a greeting that does not exist in your tenant.- CLI flags. Every generated command also takes
--input-json <JSON>,--jsonand--server <URL>.