Skip to main content
Glama

Time travel to a date

set_as_of_date

Show the Portfolio tab as of a past day's close (Time travel; every card with a history shows that day, the value chart marks it; Portfolio fundamentals and the Events calendar have no history and say so), or null to return to now. A day before the earliest one the price data supports is refused, naming that earliest day. Read-only: nothing is changed. Returns the day's total, cash, day change and number of holdings. Completes only after UI acknowledgement.

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": {
      "date": "<date>"
    },
    "name": "set_as_of_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
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.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The description goes well beyond the annotations: it discloses which surfaces carry history, that fundamentals and Events say they have no history, the refusal rule with the earliest supported day, the return payload (total, cash, day change, holdings count), and that it completes only after UI acknowledgement. The one problematic phrase is "Read-only: nothing is changed", which sits awkwardly against readOnlyHint=false; it reads as scoped to portfolio data rather than to dashboard state, and the acknowledgement/approval language elsewhere partly reconciles it, but an agent could still infer no side effects at all.

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 core action and the reset option are front-loaded, and the long parenthetical is dense but each clause carries information about scope, refusal, return value or completion. It is on the heavy side for a single sentence, but nothing is redundant padding.

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 four-parameter UI-driving tool with no output schema, the description supplies the return shape, the failure mode, the UI-completion contract and the history limitations of adjacent surfaces. The remaining gap is the two concurrency/identity parameters, which are left entirely to the schema.

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?

At 25% schema coverage only dashboardId is documented, so the description has to carry `date` — and it does, explaining the past-close meaning, the null-to-now semantics, and the lower-bound refusal. It adds nothing for idempotencyKey or expectedRevision, which remain undocumented in both places.

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?

"Show the Portfolio tab as of a past day's close" names a specific verb (show), a specific resource (Portfolio tab) and a specific scope (a past close), so it is distinguishable from sibling setters like set_chart or set_theme. The parenthetical that follows pins down exactly which UI surfaces honour the date and which do not.

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

Usage Guidelines4/5

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

It gives the positive case (a past day's close), the reset case (null to return to now), and the failure case (a day before the earliest supported price date is refused, naming that day). It never names a sibling tool or explains when a different tool would be preferable, so guidance is clear but not comparative.

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.