Skip to main content
Glama

Repository card

get_repo_card
Read-onlyIdempotent

The Markdown line for a GitShine card in a project's README, for any public GitHub repository. card=repo (default): stars, description, a year of weekly commits, open issues and pull requests. card=stars: star history, stars over time since the first one. card=contributors: avatars of the people who contributed. Includes steps for adding 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": {
      "repository": "<repository>"
    },
    "name": "get_repo_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardNoWhich card: repo, stars or contributors.
themeNo
repositoryYesowner/name, or the repository's GitHub URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / card
      Added value: +{
      +  "description": "Which card: repo, stars or contributors.",
      +  "enum": [
      +    "repo",
      +    "stars",
      +    "contributors"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new context: the return value is a Markdown line, not JSON, and it 'includes steps for adding it,' which tells the agent the response contains instructional content it may need to strip or reuse. It stops short of noting rate limits or any public-repo access constraints.

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?

Two dense sentences, front-loaded with the deliverable before listing variants, with zero filler. The variant list is compact and each item earns its place by disambiguating the enum, though the phrasing is slightly compressed to the point of terseness.

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?

There is no output schema, but the description compensates by stating the output is a Markdown line plus setup steps. For a three-parameter, mostly-enumerated read tool, an agent has enough to call it correctly; only the theme values lack any semantic explanation.

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 schema covers 67% of parameters, and the description goes well beyond the terse enum by explaining what each of repo, stars and contributors actually renders. The repository parameter format is already documented in the schema. The theme parameter remains undefined in both schema and description, which is the only real gap.

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?

The description names a specific deliverable — the Markdown line for a GitShine card rendered into a README — and enumerates what each card variant shows. It is clearly distinct from stats-oriented siblings like get_github_stats, though it never explicitly contrasts with get_readme_card or get_org_card, leaving some sibling overlap 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?

Scoping is implied by 'for any public GitHub repository' and 'in a project's README,' which tells the agent the audience and context. There is no explicit when-to-use versus when-not guidance, nor any routing to the card-producing siblings, so usage must be inferred from the README-embedding framing.

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