Skip to main content
Glama

Set the portfolio chart

set_chart

Set portfolio chart mode, date range, benchmarks or visible lines in the selected dashboard. range and from are mutually exclusive — a from-date shows [that day → today] and deselects every range button, a range clears the date, and sending both in one call is refused (from: "all" beside a range only clears the date).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNo
modeNo
rangeNo
lines_onNo
lines_offNo
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
benchmarks_onNo
benchmarks_offNo
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive mutation, so the safety profile is already covered. The description adds genuinely non-obvious behavior beyond that: range and from are mutually exclusive, a from-date deselects every range button, a range clears the date, and sending both is refused. The edge case that from: "all" alongside a range only clears the date is a useful detail an agent would not otherwise know.

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?

The mutual-exclusion constraint is front-loaded in a single dense paragraph with no filler sentences. The trailing parenthetical about from: "all" is a little tangled to parse but carries real information. Slightly denser than ideal, but every clause earns its place.

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

Completeness2/5

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

This is a multi-field mutation with 10 optional parameters, 10% schema coverage, and no output schema. The description handles the hardest conflict case well but omits concurrency semantics (expectedRevision), retry semantics (idempotencyKey), and what the add/remove line and benchmark lists actually do to current chart state. For a tool of this complexity, an agent still lacks enough to invoke it confidently beyond the range/from path.

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

Parameters2/5

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

Schema description coverage is only 10% across 10 parameters, so the description must carry the load, yet it explains only two of them (range and from). Nothing is said about mode, lines_on/lines_off, benchmarks_on/benchmarks_off, idempotencyKey, or expectedRevision, and the add/remove versus replace semantics of the *_on/*_off pairs are left entirely implicit. The dashboardId behavior lives in the schema, not the description, so overall compensation for the coverage gap is thin.

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 opens with a specific verb+resource (set portfolio chart) and enumerates the four axes it controls: mode, date range, benchmarks, and visible lines, plus the dashboard it applies to. An agent can tell this configures the chart presentation rather than reading chart data (chart_values). It stops short of explicitly contrasting itself with any sibling, so a 4 rather than a 5.

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?

Usage is implied by the enumeration of settable aspects, but there is no explicit statement of when to call this versus alternatives such as set_as_of_date or set_setting, and no prerequisites. The mutual-exclusion rule for range/from is operational guidance inside the call, not when-to-use guidance. Adequate but leaves the agent to infer the trigger conditions.

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.