Skip to main content
Glama

plainhub_auth

Connect PlainHub to GitHub by opening the token-creation page when authentication is missing, then save the token in your own terminal.

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: {}

Input Schema

NameRequiredDescriptionDefault
tokenNoOnly 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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses that the tool is a one-shot bootstrap, that it opens an external GitHub page, that the token is persisted ('it is saved, not shown'), and it recommends a least-privilege fine-grained token with Contents read/write. What it omits is the outcome shape (whether it returns a URL to hand the user, or what happens if already authenticated), which matters for a no-annotation tool.

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 the action, then the routing condition, then the security guidance, then the parameter caveat. Every sentence carries information, though the security rationale appears twice ('the token never appears in this chat' and 'tokens pasted into a chat stay in its history'), which is slight redundancy.

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?

With one optional parameter, no annotations, and no output schema, the definition covers what an agent needs to decide whether and how to call it, including the recommended token scope and the safe handoff path. The gap is the post-call contract: nothing says what the tool returns or how to proceed once the user saves the token.

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 real semantics beyond the schema: it establishes the preferred flow (empty call, user runs 'plainhub auth' in their own terminal) and frames the token parameter as an exception rather than the normal path. The example '{}' clarifies that the parameterless invocation is the expected default.

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?

Names a specific action and resource: 'sign PlainHub in to GitHub: opens the GitHub page that creates a token.' An agent can immediately distinguish this from plainhub_auth_status (which checks state) and from the ledger tools.

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 tied to a sibling: 'Use it once when plainhub_auth_status says "Not authenticated"', which implicitly excludes the already-authenticated case. It also states a negative rule for the parameter: 'Pass token only if the user gave it to you on their own' and 'Do not ask for it.'

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