penumbra_capture— stage a single structured entity.- Workspace lifecycle — open a staging workspace, modify it, validate it, and submit to commit.
The data model
Before you write, know the shape of what you’re writing into:- A shape defines an entity type.
- An entity type carries properties and relationships.
- Each type has an adherence mode —
strictorloose— that governs how closely captured data must match the type.
strict type rejects data that doesn’t conform. A loose type tolerates more variation. Validation results depend on the type’s mode, so inspect the type before you write.
Set the active context
Writes land in the active project. Confirm or set it before you stage anything.Set it if needed
Call
penumbra_context_set to switch the active project. Use penumbra_list_projects first if you need the project’s identity.Stage a single entity with penumbra_capture
penumbra_capture stages one structured entity. It does not write directly to the graph — it puts the entity into staging, where it waits for review and commit. This is the fast path for a single, well-formed entity.
Use it when:
- You have one entity to record and you know its type.
- You want the simplest write path without managing a workspace yourself.
Stage multiple writes with a workspace
When you have more than one change to make — several entities, edits to existing data, or writes you want to validate together — open a workspace. The workspace holds your changes as a batch, lets you read and modify them, validates the whole set, and commits everything on submit.The lifecycle
| Tool | What it does |
|---|---|
penumbra_workspace_open | Start a staging workspace. |
penumbra_workspace_hydrate | Load existing entities into the workspace so you can edit them. |
penumbra_workspace_read | Read the current staged state of the workspace. |
penumbra_workspace_modify | Add or change staged entities and writes. |
penumbra_workspace_validate | Check staged changes against the types’ adherence modes. |
penumbra_workspace_submit | Commit the staged changes to the graph. |
penumbra_workspace_close | Close the workspace without committing. |
penumbra_workspace_list | List open workspaces. |
The flow
Open a workspace
Call
penumbra_workspace_open to start a staging session. This is where changes accumulate.Hydrate, if you're editing existing data
To change entities that already exist, call
penumbra_workspace_hydrate to pull them into the workspace. Skip this step if you’re only adding new entities.Modify
Call
penumbra_workspace_modify to stage your changes — new entities, edits, relationships. Use penumbra_workspace_read at any point to see the current staged state.Validate
Call
penumbra_workspace_validate to check the staged set against the target types. Fix anything that fails before you submit. Validation reflects each type’s strict or loose adherence mode.Submit to commit
Call
penumbra_workspace_submit. This is the moment the writes leave staging and land in the graph. Before this, nothing committed.Capture vs. workspace: which to use
- penumbra_capture
- Workspace lifecycle
Reach for
penumbra_capture when you have one entity and want the shortest path. It stages a single structured entity through the membrane. No workspace to manage, no explicit submit step to orchestrate.A practical agent workflow
A typical write session, end to end:Orient
penumbra_context_get to confirm the active project, then penumbra_introspect to learn the available types and their properties.Open and stage
penumbra_workspace_open, then penumbra_workspace_modify to stage your entities. Hydrate first with penumbra_workspace_hydrate if you’re editing existing data.Verify
penumbra_workspace_read to review the staged state, then penumbra_workspace_validate to check it against the types.penumbra_read or penumbra_omnisearch to confirm they landed as expected.
Access tiers
Tokens are scoped to an org or a project, and that scope determines what you can write. Some tools are admin-only and can be gated — if your token doesn’t carry the required tier, a write tool may return an access-tier prompt instead of staging your change. If you hit one, you need a token with broader scope or admin access for that operation.Send feedback
If a write tool behaves unexpectedly, callpenumbra_agent_feedback to report it from inside the session.
Related
- Connect an agent — install and authenticate the Penumbra MCP server.
- Read and search — the read-side tools (
penumbra_omnisearch,penumbra_traverse,penumbra_read,penumbra_source_rag). - Shapes overview — entity types, properties, relationships, and adherence modes.