Skip to main content
Glama

Save view

generate_view

Save a view the user wants to keep: a page in the view language that renders with live data, like a dashboard, a Markdown document, a feed of posts or a page of generated emails and images. Takes the source, the spec_version it was written against, an optional title and optional state. saved_template_id starts from a view template saved earlier; anything you pass replaces its value. Views are free: no watermark and nothing to unlock. Returns the artifact_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoThe view's saved state values, keyed by name.
titleNoA short name the user would recognise.
sourceNoThe whole view in the view language, one statement per line.
spec_versionNoThe view library version the source was written against.
saved_template_idNoA saved_template_id from list_templates; its inputs seed the ones you pass.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, so the description carries some burden. It usefully discloses that saved_template_id values are replaced, that views are free (no watermark/unlock), and that it returns artifact_id. However it omits what 'live data' implies operationally, whether saved views can later be updated/deleted, and any auth or quota context.

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?

Front-loads the core action and definition, then compactly covers the key param behavior and return value in two sentences. Every clause earns its place without filler.

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 mutation tool with 5 optional params, no output schema, and a nested 'state' object, the description is strong: it defines the artifact, return value, and saved_template_id override behavior. It could better distinguish from update_view/save_as_template and mention validation of spec_version, but it's close to complete.

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 baseline is 3. Description adds marginal value by clarifying saved_template_id semantics ('anything you pass replaces its value') but does not explain source syntax, spec_version format, or state keyed-by-name beyond the schema.

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+resource ('Save a view') and elaborates what a view is with concrete examples (dashboard, Markdown document, feed of posts). Clearly distinguishes from siblings like update_view (mutation of existing view) and generate_markdown through the 'view language renders with live data' framing.

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?

Implies usage via 'a view the user wants to keep' but never explicitly states when to use this versus save_as_template, update_view, or generate_markdown. The saved_template_id sentence gives some context ('starts from a view template saved earlier') but no clear when/when-not guidance or alternative routing.

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.