Skip to main content
Glama

layout_open

Opens or reuses a Chrome tab for a saved TradingView layout ID and verifies the loaded widget matches that exact ID, stopping on mismatch before changes.

Instructions

Open or reuse a tab for an exact saved TradingView layout ID and verify the widget loaded that ID.

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": {
      "layout_id": "<layout_id>",
      "target_id": "<target_id>",
      "expected_layout_id": "<expected_layout_id>"
    },
    "name": "layout_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
layout_idYes
target_idYesExact Chrome tab target ID from browser_list_tabs. Required for changes.
expected_layout_idYesExpected saved-layout ID. A mismatch stops the operation before writing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the write/open-world profile (readOnlyHint=false, destructiveHint=false), so the description only needs to add operational detail, and it does: it discloses the reuse behavior and the verification-and-abort semantics on ID mismatch. It stops short of saying what happens on success (returned handle, active tab focus, or side effects on the previously active tab), and there is mild tension between 'reuse' and idempotentHint=false, though that is defensible since tab state can still change.

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?

A single sentence with zero filler, front-loading the action and the resource before the verification clause. Nothing here could be cut without losing meaning.

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-required-parameter mutation tool with annotations but no output schema, the description covers the action, the reuse behavior, and the mismatch safety gate. The remaining gap is that, absent an output schema, it never states what the verification returns to the caller on success, so the agent cannot fully anticipate the result shape.

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 67% and the two documented parameters already carry their meaning, so the description's job is to explain the undocumented layout_id. It does so by calling it an 'exact saved TradingView layout ID' and by linking expected_layout_id to a 'verify the widget loaded that ID' post-condition, which gives the mismatch-abort rule real intent rather than just schema text.

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?

States a specific verb pair ('Open or reuse') and a precise resource ('a tab for an exact saved TradingView layout ID'), plus a post-condition ('verify the widget loaded that ID'). This clearly separates it from a generic tab opener or from layout_get/layout_list, though it never names a sibling to draw that contrast explicitly.

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 'Open or reuse' implies the caller need not check whether a tab already exists, and 'exact saved layout ID' implies this is for loading a known layout. However, there is no explicit when-not guidance and no named alternative (e.g. browser_open_tab for a non-layout tab), so the agent must infer the boundary conditions.

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

Deploy Server

Other Tools