Skip to main content
Glama

save_world_code_workspace

Save the current staged package as one verified Worldstream draft. Requires current validation, passing desktop/mobile inspections and at least one exercised custom control. Checks the original world version so concurrent editor changes are preserved. On a conflict open the latest world and reapply only requested changes, never force overwrite. Saving never publishes.

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": {
      "workspaceId": "<workspaceId>",
      "codeWorkspaceId": "<codeWorkspaceId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "save_world_code_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceIdYes
codeWorkspaceIdYes
expectedRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / codeWorkspaceId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / codeWorkspaceId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / codeWorkspaceId / type
      Added value: +"string"
    • removedInput schema / properties / expectedRevision / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / expectedRevision / pattern
      Added value: +"^[A-Za-z0-9_-]{1,128}$"
    • addedInput schema / properties / expectedRevision / type
      Added value: +"string"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive), and the description adds genuinely new behavior: an optimistic-concurrency check on the original world version, a no-force-overwrite policy on conflict, and the explicit guarantee that saving is not publishing. Missing is what a successful save returns or whether re-saving the same staged package replaces a prior draft.

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?

Five tight sentences: what it does, what it requires, how it handles concurrency, what to do on conflict, and what it does not do. The scope-limiting 'never publishes' is placed last as a deliberate guardrail, and nothing is wasted or repeated.

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 three-parameter non-idempotent mutation with no output schema, the description covers preconditions, conflict recovery, and the publish boundary — the things an agent most needs. It would be complete at a 5 if it clarified the two workspace identifiers and what the caller receives after a successful save.

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 0%, so the description should carry parameter meaning. It does imply expectedRevision's role ('checks the original world version so concurrent editor changes are preserved'), which the schema only defines as a pattern-constrained string. However, the distinction between workspaceId and codeWorkspaceId is never explained, leaving one of three parameters opaque.

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 — 'Save the current staged package as one verified Worldstream draft' — and immediately bounds the outcome with 'Saving never publishes', which distinguishes it from the save_* publishing siblings. An agent can identify exactly what this mutates without opening the schema.

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

Usage Guidelines4/5

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

Gives concrete preconditions (current validation, passing desktop/mobile inspections, at least one exercised custom control) and a conflict procedure (open latest world, reapply only requested changes, never force overwrite). It stops short of naming the sibling tools that produce those validations/inspections, so the agent must infer that validate_world_code_workspace and inspect_world_code_workspace must run first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.