Skip to main content
Glama

Show a passage to the user

open

Display a file from the user's computer with a chosen passage scrolled to and highlighted, covering PDFs, web pages, Office documents, and code so the user sees the exact context.

Instructions

Open a file on the user's computer with the passage highlighted: PDFs, web pages, text and code in their browser, Word/PowerPoint/Excel files in their app. Use it only when the user asks to see a passage or file.

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": {
      "file": "<file>"
    },
    "name": "open"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe file's full path, the `file` from search or browse results.
chunkNoThe passage's `chunk`; it's scrolled to and highlighted. Omit to open the file at the top.
queryNoWords to highlight too, usually the search query.

Output Schema

NameRequiredDescriptionDefault
urlNoThe page opened in the browser.
fileYes
opened_inYes'browser' (passage highlighted) or 'app' (Office files, no highlight).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already state destructiveHint=false and openWorldHint=false, and the description usefully adds what visibly happens (file opens in the browser or native app with the passage scrolled to and highlighted). It does not mention that this launches/windows applications on the user's desktop and changes their focus, which is the main side effect of a readOnlyHint=false action.

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?

Two sentences, front-loaded with the action and the supported file types, then a usage constraint. The file-type list earns its space; the phrase "passage highlighted" is repeated in the schema but mildly redundant here.

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?

An output schema and full parameter coverage carry most of the burden, and the description covers the happy path adequately. It leaves open what happens on a missing/moved file or an unusable path, which matters for a tool that hands off to external applications.

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%, so file/chunk/query are already documented, including the note that chunk is scrolled to. The description reinforces the "passage highlighted" concept but adds no syntax, path rules, or fallback behavior beyond the schema.

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 concrete verb and resource ("Open a file on the user's computer") and enumerates the file families it handles (PDFs, web pages, text/code, Office documents), so the agent knows exactly what it produces. It stops short of naming how it differs from browse/read/search, so sibling differentiation is only implied by "with the passage highlighted."

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?

"Use it only when the user asks to see a passage or file" gives a clear triggering condition and an implicit exclusion zone (do not use for silent retrieval). No alternative tool is named, so the agent must infer that read/search serve the non-visible cases.

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