Skip to main content
Glama

Import browsing history from a JSON file

browser_import_history
Destructive

Imports browser history from a JSON file and inserts each entry with its original visit timestamps, preventing migrated visits from appearing as new.

Instructions

Read a JSON file holding an array of {url, title, lastVisit, visitCount} and insert each into Places via PlacesUtils.history.insert, so migrated history keeps its original timestamps instead of looking like fresh visits. Entries whose url already exists are still inserted (Places merges visits for a known url).

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a JSON file: array of {url, title, lastVisit, visitCount}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is known. The description adds genuinely non-obvious behavior beyond that: original timestamps are preserved rather than treated as fresh visits, and entries with an existing url are still inserted because Places merges visits. It does not say what happens on malformed input or partial failure, which keeps it below a 5.

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 dense sentences with zero waste: the action and mechanism come first, then the two non-obvious behavioral facts (timestamp preservation, duplicate-url merging). Every clause earns its place.

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 one-parameter import tool with no output schema, the description covers source, destination, and duplicate handling. It stops short of describing error behavior or whether a result/count is returned, which an agent would want before calling it on a large file.

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?

Schema coverage is 100% and the single 'path' parameter is fully documented in the schema. The description restates the expected file shape ({url, title, lastVisit, visitCount}) but adds no format details beyond what the schema already carries, so the baseline of 3 applies.

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?

States a specific verb and resource ('Read a JSON file ... and insert each into Places via PlacesUtils.history.insert') and even names the underlying API used. The scope — bulk history migration from a file — is clearly distinct from siblings like browser_list_history or browser_history_manage.

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 description implies the use case (migrating history so timestamps are preserved) but never states when to prefer this over browser_history_manage, browser_bookmarks_import, or browser_import_cookies_from_file. No explicit when-not or prerequisite guidance is given.

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