Skip to main content
Glama

threadctx

Grade a public GitHub repository

scan_github_repo
Read-onlyIdempotent

Grade the agent instructions in a public GitHub repository (owner/repo or a github.com URL): A-F grade, problems such as dead paths, undefined scripts, wrong package manager, conflicting or duplicated instructions, and which files each agent (Claude Code, Cursor, Copilot, Gemini, Codex) loads at session start. Security findings are counted but not detailed; run npx threadctx scan locally for those.

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": {
      "repo": "<repo>"
    },
    "name": "scan_github_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesowner/repo or https://github.com/owner/repo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the bar is lower; the description still adds real value by defining the output shape (A-F grade, problem list, per-agent file loading) and by disclosing a deliberate limitation (security findings counted but not described). It does not mention constraints like private-repo exclusion beyond the word "public", or any rate limiting.

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?

Front-loaded with the verb and resource, then a compact enumeration of checks and the security caveat. The parenthetical list is dense but each clause adds distinct information; the only slack is the repeated form hint already covered by the schema.

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?

No output schema exists, so the description must describe returns — and it does: grade, problem categories, per-agent file loading, and what is intentionally omitted. For a one-parameter read-only tool, nothing an agent needs 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% and the single `repo` parameter already documents both accepted forms, so the description only restates the same formats without adding syntax rules, validation behavior, or examples of failure cases. Baseline 3 applies when the schema carries the parameter burden.

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+resource+scope: grading agent-instruction files in a public GitHub repository, and enumerates what the grade covers (dead paths, undefined scripts, wrong package manager, conflicting/duplicated instructions) plus which agent files load. It hints at scope (public repos) but never names the sibling check_agent_instructions, so an agent must infer whether that tool is the local/other-source counterpart.

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?

Clear usage context: use this for a public repo given as owner/repo or a github.com URL, and it explicitly routes security detail elsewhere ("run `npx threadctx scan` locally for those"). It stops short of stating when to pick check_agent_instructions instead, so routing against the closest sibling is left to inference.

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.