Skip to main content
Glama

Set effective view variant

set_effective_view_variant
Idempotent

Choose which variant of a view goes into a submission — or clear the choice by omitting variant_id, which hands it back to the fallback order. The other variants stay; switching loses nothing.

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": {
      "view_id": "<view_id>"
    },
    "name": "set_effective_view_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
view_idYes
variant_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is structured. The description adds real value by disclosing the omit-to-clear fallback behavior and by reassuring that other variants are preserved ('switching loses nothing'), which goes slightly beyond destructiveHint=false. It still says nothing about permissions needed, what happens with an unknown variant_id, or error behavior for a non-read-only mutation.

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?

Two short sentences, front-loaded with the primary action and followed immediately by the omission semantics and the reassurance clause. No filler or redundancy.

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 two-parameter, non-destructive, idempotent toggle with no output schema, the description supplies the essential contract: what the tool sets, the clearing path, and that nothing else is lost. Missing only edge-case behavior (invalid IDs, whether the choice persists across later variant upserts), which is a modest gap for a tool this simple.

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 0%, so the description must carry parameter meaning, and it handles the harder case well: it explains that variant_id is optional and that omitting it clears the effective choice rather than leaving it unset. view_id is only implicitly characterized as identifying the view whose variant is being set, so the coverage is strong but not complete.

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 gives a specific verb-plus-resource ('Choose which variant of a view goes into a submission') and makes the effect on the enclosing submission explicit. It does not name or distinguish itself from the sibling upsert_view_variant, so an agent must infer that this selects rather than creates a variant, but the operation itself is unambiguous.

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?

It states the one important usage fork: supply variant_id to choose, omit it to clear the choice and revert to the fallback order. There is no guidance on when to use this versus upsert_view_variant, no prerequisites, and no indication of what the 'view', 'submission', or 'fallback order' refer to in the caller's workflow.

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.

Resources