Skip to main content
Glama

Viewer: open generated file

flow_open_file
Read-only

Open a generated file with its default app or reveal it in the file manager to access server outputs directly.

Instructions

Used by the inline viewer's Open / Folder buttons. Opens a file generated by this server with the default app, or reveals it in the file manager.

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": {
      "path": "<path>"
    },
    "name": "flow_open_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
revealNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, so the safety profile is already supplied; the description adds the useful behavioral detail that the effect is launching the OS default app or file manager rather than returning content. It does not disclose what happens on an invalid or non-generated path, or whether this works in a headless/remote server context, which matters for an OS-spawning 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, no padding, with the functional sentence placed second. The opening line is meta-context about UI wiring and earns only partial keep, but overall it is tight.

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 simple two-parameter tool with no output schema, the description covers the core action but leaves the path contract and failure/headless behavior unstated. Adequate to attempt a call, not enough to call it confidently across environments.

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 0% for two parameters, so the description must carry the burden and largely doesn't. The 'Open / Folder buttons' phrasing only hints at what `reveal` toggles, and the `path` parameter gets no guidance on format, expected location, or the constraint that the file must have been generated by this server.

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 verb and resource: opens a server-generated file with the default app, or reveals it in the file manager. The scope ('generated by this server') distinguishes it from the generation siblings, but it doesn't name any of them explicitly.

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 first sentence gives implied usage context ('Used by the inline viewer's Open / Folder buttons'), which tells the agent where it fires from but not when an agent should call it directly. There is no explicit when-not guidance or routing to alternatives such as flow_preview.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.