Skip to main content
Glama

plainhub_auth

Destructive

Opens GitHub's token creation page and guides saving a fine-grained token so PlainHub can access only selected repositories when authentication is missing.

Instructions

Help the user sign PlainHub in to GitHub: opens the GitHub page that creates a token. Use it once when plainhub_auth_status says "Not authenticated". Recommended: a fine-grained token that reaches only the repositories the user chooses (Contents: Read and write). Ask the user to save the token in their own terminal with plainhub auth (it asks for the token) or plainhub auth --from-gh, so the token never appears in this chat. Pass token only if the user gave it to you on their own; it is saved, not shown. Example: {}

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_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoOnly if the user handed you a token on their own: the token to save (github_pat_ fine-grained, for only the repositories the user chose). A token that can write to every repository (including ghp_ classic and gho_ gh CLI tokens with the repo scope) is not saved. Do not ask for it; tokens pasted into a chat stay in its history

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.1
    • changedInput schema / properties / token / description
      Previous value: -"Only if the user handed you a token on their own: the token to save (github_pat_ fine-grained recommended; ghp_ classic and gho_ gh CLI tokens also work). Do not ask for it; tokens pasted into a chat stay in its history"New value: +"Only if the user handed you a token on their own: the token to save (github_pat_ fine-grained, for only the repositories the user chose). A token that can write to every repository (including ghp_ classic and gho_ gh CLI tokens with the repo scope) is not saved. Do not ask for it; tokens pasted into a chat stay in its history"
  2. First observedv1.8.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations flag destructive/openWorld but say nothing about what is actually persisted; the description discloses that the token is saved and not echoed back, recommends a scoped fine-grained token with Contents: Read and write, and warns that tokens pasted into chat remain in history. That is real context beyond the annotations rather than a restatement of them.

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-loads the action, then the trigger, then the security recommendation; sentences are short and purposeful. There is mild redundancy between the token guidance in the body and the 'token never appears in this chat' point the schema already carries.

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?

Covers the trigger, the recommended scope, the safe CLI alternative, and token-handling policy — everything needed to call it safely. It does not state what the caller observes on success/failure or whether the browser opens automatically, and there is no output schema to fill that gap.

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 schema already documents the token's format and the rejection of broad-scope tokens. The description's 'pass token only if the user gave it to you on your own; it is saved, not shown' reinforces but adds little beyond the schema, so baseline 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+resource ('sign PlainHub in to GitHub: opens the GitHub page that creates a token') and names the sibling gate (plainhub_auth_status) that determines when it applies, so it is distinguishable without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('once when plainhub_auth_status says Not authenticated') and names a preferred alternative path (plainhub auth / plainhub auth --from-gh in the user's own terminal) with the reason to prefer it. When-to-use and when-not-to-use are both present.

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