Skip to main content
Glama

workspace_put_context

Idempotent

Publish the shared project-state document every agent reads first to orient on goals, decisions, and current state. Replaces the whole context object; use a capsule for section-level edits.

Instructions

Publish the shared context object: the one project-state document every agent reads first to orient (goals, decisions, current state). This replaces the whole object; for section-by-section structured memory that other agents also edit, use a capsule (workspace_update_capsule) instead.

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": {
      "agent": "<agent>",
      "context": "<context>"
    },
    "name": "workspace_put_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesYour registered agent name.
contextYesThe complete context object to store. It replaces whatever context was there before.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name."
    • addedInput schema / properties / context / description
      Added value: +"The complete context object to store. It replaces whatever context was there before."
  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?

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=false), the description discloses the key behavioral trait that a full replace, not a merge, occurs, and that prior content is overwritten. That overwrite semantics is worth knowing since the annotations themselves mark the call as non-destructive. It stops short of describing auth requirements, conflict handling when multiple agents publish concurrently, or what a successful call returns.

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 no filler; the primary purpose and the replacement semantics come first, and the routing to the alternative follows. Every clause earns its place.

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 two-parameter, no-output-schema publish tool, the description covers what the object is, what it contains, and that it fully replaces prior content, which is enough to call it correctly. The remaining gap is multi-agent concurrency: nothing says what happens if another agent publishes between a read and this write, which matters for a shared-state document.

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 description coverage is 100%, so both parameters (agent, context) are already documented and the schema itself notes that context "replaces whatever context was there before." The description adds a little meaning by enumerating what the context object should contain (goals, decisions, current state), but does not add format or structural guidance for the nested object. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The description names a specific verb and resource ("Publish the shared context object") and immediately defines what that object is: "the one project-state document every agent reads first to orient (goals, decisions, current state)." That framing distinguishes it from the capsule sibling without the agent needing to open either 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?

It states the selection rule explicitly: use this tool for the whole-object publish, and use workspace_update_capsule when you want section-by-section structured memory that other agents also edit. The named alternative and the condition that selects it are both present, leaving nothing to inference.

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