Skip to main content
Glama

Sidetrip GitHub

get_repository

Read-onlyIdempotent

Get one public GitHub repository by owner and name. Use this when the repository is already known. Returns stars, forks, license, default branch, topics, and URL. open_issues_count includes pull requests.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "get_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name, without the owner.
ownerYesGitHub user or organization login.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: the scope is limited to public repositories, and 'open_issues_count includes pull requests' preempts a common misreading. It does not address error behavior for missing or private repositories, which is a gap for a network-backed lookup.

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?

Four short sentences with no waste: purpose, usage condition, return fields, and a caveat. The purpose is front-loaded and the most easily misread detail is saved for last.

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 no output schema, listing the returned fields (stars, forks, license, default branch, topics, URL) is exactly what an agent needs. The only omission is failure behavior for nonexistent or private repositories, which is minor for a two-parameter read tool.

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%, and both parameters carry descriptions and regex patterns in the schema. The description only restates that lookup is by owner and name, adding no syntax or format detail beyond the schema, so the baseline of 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 and resource ('Get one public GitHub repository') plus the exact lookup keys (owner and name), and enumerates the returned fields. It is clearly distinguishable from siblings like get_readme, get_user_profile, and search_repositories 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?

The sentence 'Use this when the repository is already known' gives a clear selection condition and implicitly routes discovery cases to search_repositories. It stops short of naming an explicit alternative or stating when-not to use it, so it is strong but not complete.

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