Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: get a repo

prompthub_get_repo

Fetch a repository by owner and name, including its README and full file tree; returns not found if it does not exist or access is denied.

Instructions

Fetch one repository by owner handle and name, including its README and full file tree. Returns 'not found' if it does not exist or you cannot access it.

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>",
      "name": "<name>"
    },
    "name": "prompthub_get_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRepository name, e.g. code-review.
ownerYesOwner handle, e.g. alice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose useful behavior beyond the schema: the response includes README and the full file tree, and a missing repo is indistinguishable from an inaccessible one (both return 'not found'). It stops short of saying whether large trees are truncated or paginated, which matters for a fetch that returns a whole repository.

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?

Two sentences, no filler, with the resource and its return contents front-loaded before the error case. Every sentence adds information an agent would not get from the schema alone.

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?

The tool is simple (two required params, no output schema, no annotations), and the description covers what is returned and how failure is reported. The only real gap is payload size behavior for large file trees on an unfiltered full-repo fetch.

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 both parameters already carry example-bearing descriptions (owner 'alice', name 'code-review'). The description restates the mapping of owner handle and name without adding format, casing, or resolution rules, so the baseline 3 applies.

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: "Fetch one repository by owner handle and name", plus the returned payload (README and full file tree). The singular "one repository" implicitly contrasts with prompthub_list_repos, but no sibling is named explicitly, so differentiation is left partly to inference.

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

Usage Guidelines3/5

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

Usage is only implied: knowing both owner and name implies this is the direct-lookup tool, as opposed to list or search. There is no explicit statement of when to prefer this over prompthub_list_repos or prompthub_search, nor any prerequisite or exclusion.

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