Skip to main content
Glama

plainhub_open

Opens a GitHub repository file in the browser editor for viewing or editing, and adjusts editor settings like theme, font size, preview, sidebar, and line numbers when no file is specified.

Instructions

Open a file from a GitHub repository in the PlainHub browser editor, or change editor settings (theme, fontSize, preview, sidebar, lineNumbers, whitespace, header) when called without repo and path. Use it when the user wants to see or edit a file in the browser. The browser signs in on its own; the saved token is handed over only when noAuth is false. Opens https://app.plainhub.dev unless PLAINHUB_APP_URL is set (lab or localhost; the token is only passed to https://app.plainhub.dev). Example: {"repo": "octocat/hello-world", "path": "README.md", "preview": "on"}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plainhub_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNoLine number to jump to
pathNoFile path in the repository, e.g. docs/setup.md
repoNoGitHub repository as owner/name, e.g. octocat/hello-world
themeNoEditor theme
branchNoBranch name (default: the repository's default branch)
headerNoShow the header
noAuthNoSet to false to hand the saved token to the page (default: the browser signs in on its own)
scrollNoScroll the preview to this heading (section name)
previewNoMarkdown preview
sidebarNoShow the file sidebar
fontSizeNoFont size (slider 8-72, input accepts any)
whitespaceNoShow whitespace
lineNumbersNoShow line numbers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses real operational behavior: the browser signs in on its own, the saved token is handed over only when noAuth is false, the target URL defaults to https://app.plainhub.dev but is overridable via PLAINHUB_APP_URL, and the token is only ever sent to the production domain. It does not say whether editor settings persist across calls or what the call returns, which keeps it below 5.

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?

Front-loaded with purpose and mode split, then auth behavior, then the URL override, then a concrete example; each sentence carries information. The parenthetical settings list is long but it is the only place the settings mode is enumerated, so it earns its space.

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 13-parameter, zero-required tool with no output schema, the description covers the two modes, auth handoff, and URL targeting thoroughly. The remaining gap is the response: with no output schema, the agent is not told what the tool returns (a URL, an opened tab, plain confirmation).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema cannot express: omitting repo and path switches the call into a settings-only mode, and noAuth controls credential handoff rather than a simple flag. The inline example shows the repo/path pairing and an enum usage in context.

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?

The description states a specific verb and resource (open a file from a GitHub repo in the PlainHub browser editor) and explicitly describes the second mode: settings changes when called without repo and path. It does not differentiate itself from siblings such as plainhub_browse, so it stops short of a 5.

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 a clear usage condition: 'Use it when the user wants to see or edit a file in the browser,' and the dual-mode rule (with vs. without repo/path) tells the agent which parameter combination selects which behavior. It names no alternative tool or exclusion case, so a 4 rather than a 5.

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