Skip to main content
Glama

workspace_get_capsule

Idempotent

Read a project capsule to access durable shared memory—State, locked Decisions, Next steps, and session logs—and optionally create it from a template when missing.

Instructions

Read a project capsule: structured shared memory with State, Decisions (locked), Next, and Session log sections. With create=true, a missing capsule is created from the template first. Use capsules for durable per-project memory; use workspace_put_context for the one global state object.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "workspace_get_capsule"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe capsule's short identifier, for example "website-redesign".
agentNoYour registered agent name, recorded as the creator when creating.
titleNoDisplay title used when creating a new capsule.
tokenNoYour per-agent token, on a token-enforced bus.
createNoWhen true, create the capsule from the template if it does not exist yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name, recorded as the creator when creating."
    • addedInput schema / properties / create / description
      Added value: +"When true, create the capsule from the template if it does not exist yet."
    • addedInput schema / properties / slug / description
      Added value: +"The capsule's short identifier, for example \"website-redesign\"."
    • addedInput schema / properties / title / description
      Added value: +"Display title used when creating a new capsule."
    • addedInput schema / properties / token / description
      Added value: +"Your per-agent token, on a token-enforced bus."
  2. First observedv0.5.11

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description explains WHY a read-shaped tool is not read-only by disclosing that create=true materializes a capsule from a template. It also flags that the Decisions section is 'locked', a constraint an agent would otherwise discover only by failing. It stops short of describing error behavior or what a template-created capsule initially contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero filler, front-loaded with the core action and resource shape, then the routing rule. The parenthetical '(locked)' earns its place by conveying a behavioral constraint in one word.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with no output schema, the description effectively sketches the returned structure (the four sections) and the creation side effect, which is most of what an agent needs. Minor gaps remain around auth/token enforcement and the initial contents of a template-created capsule.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every parameter (slug, agent, title, token, create) is already documented in the schema, including the create default and its template behavior. The description restates the create semantics rather than adding new detail such as required vs. optional combinations or token-enforcement failure modes, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read a project capsule') and immediately enumerates what a capsule contains: State, Decisions (locked), Next, Session log. It also distinguishes the resource from the sibling global state object by name, so an agent can pick correctly without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing guidance: capsules for durable per-project memory, workspace_put_context for the single global state object. It also states the condition that triggers the write path (create=true when the capsule is missing), leaving no ambiguity about which tool or mode to choose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.