Skip to main content
Glama

Update view

update_view
Destructive

Change a saved view in place: new source, title, spec_version or state. Pass only what changes. The artifact_id, its brain object and any share link stay the same.

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": {
      "artifact_id": "<artifact_id>"
    },
    "name": "update_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoThe view's saved state values, keyed by name.
titleNoA new name for the view.
sourceNoThe whole view in the view language, one statement per line.
artifact_idYesAn artifact_id from generate_view or list_artifacts.
spec_versionNoThe view library version the source was written against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / title / description
      Added value: +"A new name for the view."
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already indicate this is a non-read-only, destructive operation. The description adds meaningful behavioral context beyond that: it says the change is in-place, that artifact_id and any share link stay stable, and that only changed fields need to be passed. It stops short of explicitly warning that replacing source or state overwrites prior content, but the destructive nature is already flagged by annotations.

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?

The description is three tight sentences with no wasted wording. It front-loads the core action and follows with the most important delta semantics and stability guarantees.

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 mutation tool with a nested state object and no output schema, the description covers the key behavior: what fields can change, partial update expectations, and what stays stable. It is slightly incomplete on whether nested state keys merge or replace, but overall it gives enough context for correct invocation.

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 description coverage is 100%, so the schema already defines each parameter. The description still adds value by clarifying partial-update semantics ("Pass only what changes") and by stating that artifact_id, the brain object, and share links remain unchanged.

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 states a specific verb and resource: "Change a saved view in place," and lists the mutable fields source, title, spec_version, and state. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as generate_view or show_view.

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

Usage Guidelines3/5

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

The phrase "Pass only what changes" gives useful partial-update guidance, implying callers should send only modified fields. However, it does not say when to use this instead of creating a new view or viewing an existing one, and it gives no explicit exclusions or prerequisites.

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.