Skip to main content
Glama

time.set_fixed_date

Freeze Date.now() and new Date() to one fixed instant so you can test time-dependent browser code while timers, animations, and polling keep running normally.

Instructions

Make Date.now() and new Date() always return one instant, while timers, animations and polling keep running normally.

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": {
      "time": "<time>"
    },
    "name": "time.set_fixed_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations by disclosing the exact scope of the mutation (only the JS date constructors) and what keeps working (timers, animations, polling) — the single most important behavioral distinction for this tool. It does not say whether the setting persists across navigations or is scoped per target/browser, which the annotations do not cover either.

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 front-loaded sentence that states the effect first and the non-effect second, with no redundant wording.

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

Completeness3/5

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

For a global-state mutation with no output schema, the description covers the core semantics well but leaves two agent-critical gaps: the accepted format of `time` and the lifetime/reversibility of the fixed date. Given 67% schema coverage, those omissions are not compensated elsewhere.

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?

The description says nothing about parameters, and the required `time` argument has no schema description at all — the agent cannot tell whether it expects an ISO string, an epoch number, or another representation. Only target_id and browser_id are documented, in the schema itself, leaving the critical parameter unexplained in both places.

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 effect: Date.now() and new Date() return one fixed instant. The clause about timers, animations and polling continuing implicitly distinguishes it from a full time freeze, so an agent can tell it apart behaviorally, even though no sibling is named.

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 contrast with timer-freezing tools implies when to prefer this over time.freeze, but there is no explicit when-to-use or when-not statement. Nothing tells the agent how to undo the setting (e.g., that a corresponding clear tool exists) or whether it should only be applied to a specific target.

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