Skip to main content
Glama

github_mcp.list_repositories

Read-only

List repository identifiers allowed by local policy before selecting a repository. Empty means none configured; returns permitted repos only, not all account-accessible repos.

Instructions

List the repository identifiers allowed by local policy. Call before selecting a repository; an empty list means no repositories are configured. Returns repositories, not all repositories accessible to the GitHub account.

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": "github_mcp.list_repositories"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish this as a safe, read-only, closed-world operation, so the bar is lower. The description adds genuine behavioral context beyond them: results are filtered by local policy, the empty-list case is a meaningful signal rather than an error, and the returned set is deliberately narrower than the account's actual access.

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 short sentences, each doing distinct work: purpose, call ordering, and scope caveat. The ordering instruction is front-loaded and there is no repetition of what annotations or the schema already carry.

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 zero-parameter, read-only tool with full annotations and an output schema, the description covers everything an agent needs: why to call it, when in the workflow to call it, what the scoped result set means, and how to read an empty response.

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?

The tool takes zero parameters, which is the baseline-4 case. The description need not explain arguments, and it correctly spends its words on scope and result interpretation instead.

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 and resource ('List the repository identifiers') and immediately bounds the scope with 'allowed by local policy' plus an explicit negative: 'not all repositories accessible to the GitHub account.' That contrast is what separates this enumeration call from a broader repository listing, so an agent can identify it 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 Guidelines4/5

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

Gives prescriptive ordering guidance ('Call before selecting a repository') and tells the agent how to interpret the degenerate case ('an empty list means no repositories are configured'). It does not name any alternative tool or state when to skip this call, so it stops short of full when/when-not coverage.

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