Skip to main content
Glama

workspace.write

Idempotent

Append findings, attempts, lifecycle marks, and scratch entries to a workspace, and set or clear focus, at an exact base revision.

Instructions

Direct tool. Do not call capability.describe. Arguments are flat: send base_revision (never revision_id) and top-level findings, attempts, marks, scratch, or focus (never a batch wrapper). Every draft uses client_ref, never ref. Append at an exact base revision. Finding fields are client_ref, kind, title, body; optional links are dependency_refs and assumption_refs (never depends_on_refs). Attempt fields are client_ref, target_ref, method, outcome, summary. Margin marks append an explicit ACTIVE, CLOSED, RETRACTED, SUPERSEDED, or ARCHIVED state; only SUPERSEDED carries superseded_by_ref. References may use a client_ref from the same batch. PROBLEM is reserved for workspace.open. A RETRACTED or SUPERSEDED card must receive an ACTIVE mark before CLOSED or ARCHIVED. Set focus with active_ref/pinned_refs, clear it with clear=true, or omit it; focus references finding cards, never attempts, marks, or scratch. Never send verification/assertion/stale fields: all workspace assertions remain AGENT_RECORDED and UNVERIFIED. Canonical batch example: findings=[{"client_ref":"C1","kind":"CLAIM","title":"...","body":"..."}], attempts=[{"client_ref":"T1","target_ref":"C1","method":"...","outcome":"COMPLETED","summary":"..."}], focus={"active_ref":"C1","pinned_refs":["C1"]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNoOptional explicit focus update: set active_ref/pinned_refs, use clear=true to clear, or omit to preserve current focus.
marksNoOptional append-only lifecycle marks. CLOSED is workflow state, not proof; RETRACTED and SUPERSEDED deterministically make explicit dependents stale.
scratchNoOptional unverified scratch entries to append.
attemptsNoOptional unverified operational attempts to append.
findingsNoOptional typed, unverified cards to append.
branch_idYesbranch:// handle returned by workspace.open
workspace_idYesworkspace:// handle returned by workspace.open
base_revisionYesExact current revision:// head returned by workspace.open, workspace.write, or workspace.query.
idempotency_keyYesCaller-chosen key unique to this exact write payload; reuse only to retry the identical request.
Behavior5/5

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

The description goes far beyond the annotations, disclosing specific field prohibitions (never revision_id, depends_on_refs, ref), the mark lifecycle state machine (ACTIVE before CLOSED/ARCHIVED after RETRACTED/SUPERSEDED), and that PROPLEM is reserved for workspace.open. It also clarifies that all content remains AGENT_RECORDED/UNVERIFIED and that focus references are limited to finding cards, providing deep behavioral transparency.

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?

Despite its length, the description is dense and front-loaded with the most important directive, and every sentence adds a distinct constraint or clarification. The canonical example at the end consolidates the rules into a usable pattern, making the size justified by the tool's complexity.

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

Completeness5/5

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

For a tool with 9 parameters, no output schema, and complex lifecycle rules, the description is thoroughly complete: it covers prerequisites (workspace_id, branch_id, base_revision), all payload sections, field naming restrictions, focus behavior, and the invalidating-state transitions. An agent has everything needed to invoke the tool correctly without further documentation.

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

Parameters5/5

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

Although the schema provides descriptions for every parameter, the description adds critical cross-parameter semantics: the flat arguments rule, the base_revision vs revision_id distinction, the client_ref naming convention, and the rules for linking refs within the same batch. The canonical example shows exactly how to combine findings, attempts, and focus, which the schema alone does not convey.

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 clearly establishes that workspace.write is the direct tool for appending workspace data, listing the exact top-level fields and explicitly distinguishing it from capability.describe. The name combined with 'Direct tool. Do not call capability.describe.' and the detailed batch structure leaves no ambiguity about what the tool does.

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 explicitly warns against calling capability.describe and provides clear workflow guidance: append at an exact base revision, use flat arguments, never send verification fields. The canonical batch example gives a concrete template for typical usage, and the constraints on references and state transitions serve as strong when-to-use/never-do guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/morluto/jacobian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server