Skip to main content
Glama

Get GitHub connection status

sources.github.connection.get
Read-only

Check whether this authorized project has a GitHub connection. If disconnected, present the returned browser connection step to the user, wait for the user to authorize GitHub, then check the status again. Never connect on the user's behalf.

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": "sources.github.connection.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNoproject in the selected organization; omit only when the organization has one project
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), but the description adds non-obvious behavior: the tool returns a browser connection step the agent must surface to the human, and the agent must wait for out-of-band authorization rather than acting itself. That human-in-the-loop constraint is exactly the kind of context annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, zero filler, front-loaded with the purpose before the follow-up protocol and the hard constraint. Every sentence carries distinct, actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, fully-described read-only status check with an output schema and annotations, the description supplies everything else needed: purpose, the disconnected branch, and the authorization boundary. Nothing required to call it correctly is missing.

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 description coverage is 100%, so both parameters (project_id, organization_id) and their omission rules are fully documented in the schema. The description's phrase 'this authorized project' adds only a faint echo of project_id, so the baseline 3 is appropriate.

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: 'Check whether this authorized project has a GitHub connection.' An agent can tell it is a read-only status probe, though it never names the adjacent siblings (sources.github.validate, sources.github.repositories.list) to disambiguate when this is the right one.

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?

Gives an explicit conditional workflow: if disconnected, present the browser connection step, wait for user authorization, then re-check. It also states a clear prohibition ('Never connect on the user's behalf'). It stops short of naming alternatives, so it is strong context without full when-not/alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources