# Public capabilities

Ledger-core owns the ledger operations exposed through CLI, SDK, MCP and hosted
HTTP. The canonical operation catalog is `ledger-core.v1.operations.json`; schemas
and OpenAPI are generated from the same definitions. Authorization belongs to the
principal and ledger operation, independently of the chosen interface.

| Capability | CLI | SDK | MCP |
| --- | --- | --- | --- |
| Create | `ledgers create` | `client.ledgers.create()` | `op_sys_ledgers_create` |
| Inspect rules | `ledgers inspect` | `client.ledgers.inspect()` | `op_sys_ledgers_inspect` |
| Check proposed rules | `contracts validate` | `client.contracts.validate()` | `op_sys_contracts_validate` |
| Inspect write bounds | `records limits` | `client.records.limits()` | `op_sys_records_limits` |
| Check a contribution | `records validate` | `client.records.validate()` | `op_sys_records_validate` |
| Append | `records append` | `client.records.append()` | `op_sys_records_append` |
| Read | `records get` | `client.records.get()` | `op_sys_records_get` |
| List | `records list` | `client.records.list()` | `op_sys_records_list` |
| Check outcome | `records outcome` | `client.records.outcome()` | `op_sys_records_outcome` |
| Invite to a workspace or ledger | `invitations create` | `client.invitations.create()` | `op_sys_invitations_create` |
| Preview an invitation | `invitations inspect` | `client.invitations.inspect()` | `op_sys_invitations_inspect` |
| Accept an invitation | `invitations accept` | `client.invitations.accept()` | `op_sys_invitations_accept` |
| List invitations for a target | `invitations list` | `client.invitations.list()` | `op_sys_invitations_list` |
| Revoke an invitation | `invitations revoke` | `client.invitations.revoke()` | `op_sys_invitations_revoke` |
| Resume ledger invitation progress | `invitations status` | `client.invitations.status()` | `op_sys_invitations_status` |
| Discover workspaces | `workspaces list` | `client.workspaces.list()` | `op_sys_workspaces_list` |
| Synchronize | `ledgers sync` | `client.ledgers.sync()` | `op_sys_ledgers_sync` |

Choose one explicit `workspace_id` or `ledger_id` to create, list, or revoke
invitations. A private link carries the target for inspect and accept.

CLI examples assume the `op-sys` executable. Discover shapes, permissions, retry
rules and environment support through `op-sys --output json capabilities list`
and `capabilities get --name records.append`. A capability being supported
does not mean the current principal has access to every ledger.

The readable `capabilities list` shows operation purposes and suggested starting
points. Structured lists contain at most 25 concise summaries by default (maximum
100), with descriptions, bindings, scope, permissions, effects and retry rules.
Use `--prefix records.` to narrow the list; when `next` is non-null, pass that
literal name as `--after` with the same prefix to read the next page.
`capabilities get --name records.append` supplies full input/result/error schemas,
limits and error codes for one operation. Its `http_input_schema` includes
transport-specific input shapes for HTTP consumers.
The list also returns general usage guidance and the actual `schema_profile` for
consumer contracts. Neither discovery nor checking a proposed schema grants access
or accepts records. See [use through your own agent](/docs/raw/manuals/agent-getting-started.md).

`records.limits` supplies current contributor-safe service size bounds alongside
the protocol ceilings. `records.validate` checks proposed input at the authority
without accepting, indexing, reserving, billing or consuming an operation ID.
Inspect its `valid` and `issues` fields; passing checks do not guarantee later
acceptance. Permission names are authority labels; invocation bindings define
the callable commands.

`tools list` and `tools call` also expose surrounding account,
installation and separately retained integration operations. These are not
alternative record APIs. The retired record namespaces and sync/batch endpoints
are absent; no alias or old-format translator is provided.

Start with [the core guide](/docs/raw/manuals/ledger-core.md), [SDK](/docs/raw/manuals/sdk.md) or [MCP](/docs/raw/manuals/agent-mcp.md).
Use [connections](/docs/raw/manuals/client-connections.md) to select a destination once for your
client context and override it explicitly when needed.
