Skip to main content
Glama

Apply JSON state

roadflow_apply_json

Replace workspace state with normalized JSON (serializeState shape). In shared edit mode, saves to the cloud automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNoFull or partial map state object, or JSON string
mergeNoIf true, deep-ish merge timeline/display and replace roads from payload

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does disclose the destructive behavior ('Replace workspace state') and the cloud-autosave side effect in shared mode, which is useful. However, it does not mention whether this is reversible, whether it triggers an export, or what happens to unsaved data in non-shared mode—gaps that matter for a state-replacing tool.

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

Conciseness4/5

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

Two sentences, front-loaded with the primary action and format. The second sentence adds the shared-mode cloud behavior as a meaningful condition. Slightly lean given there is no annotation coverage to back it up, but no wasted words.

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

Completeness3/5

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

For a state-replacing tool with zero annotations and no output schema, the description covers the core action and the shared-mode caveat but omits important behavior: reversibility, prerequisites (e.g., must a workspace be active/open first?), and error conditions. Sibling tools like roadflow_status and roadflow_open_shared suggest state management context, but the description doesn't link usage to that flow.

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

Parameters4/5

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

Schema coverage is 100%, so the JSON schema already describes both parameters. The description adds value by clarifying the expected JSON shape ('serializeState shape') and on the schema's json parameter states 'Full or partial map state object', which is meaningful beyond the schema. The merge flag's deep-ish merge behavior is described in the schema, not the description, but the description's shape hint is genuinely additive.

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

Purpose4/5

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

The description uses a specific verb ('Replace') plus a clear resource ('workspace state') with a format qualifier ('normalized JSON / serializeState shape'). This clearly distinguishes it from siblings like roadflow_apply_markup (which applies markup form, not JSON). However, the term 'serializeState shape' could be clearer, and 'Full or partial' in the schema suggests partial replaces are allowed, which slightly muddies the 'Replace' verb in the description.

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?

The description gives clear when-context by specifying the input format (serializeState-shaped JSON), and notes the shared edit mode auto-saves to cloud, which distinguishes this from non-shared workflows like roadflow_export_json (read) and roadflow_new (fresh state). The merge parameter is mentioned in the schema but not elaborated in the description as a usage discriminator, so no explicit when-not-to-use guidance is given.

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.

TDQS

B3.2/5.0
Disambiguation2/5

Many tools are mirrored across `artifacts_*` and `roadflow_*` with near-identical names and behavior, and within each family `get`, `export_json`, and `export_markup` overlap in what they return. Descriptions identify the target workspace, but an agent must carefully inspect prefixes and formats to avoid misselection.

Naming Consistency4/5

The set consistently uses lowercase snake_case with a domain prefix and predictable verbs like get, list, create, open, export, and apply. Minor deviations are bare commands (`new`, `discard`, `status`) and the parallel `artifacts_*`/`roadflow_*` prefixes, which make names look duplicated.

Tool Count3/5

At 23 tools, the surface lands in the heavy 16-25 range and feels padded because many operations are duplicated for two workspace types. Each subsystem alone would have a reasonable count, but combined the set is bloated.

Completeness4/5

The toolset covers the full workspace lifecycle: create, read, update via apply, discard, share, version, status, and multiple export formats. Missing cloud deletion and fine-grained element editing are minor gaps that can be worked around with full-state apply/export.

Resources