Skip to main content
Glama
MCP Docs Scraper
by kwiscion

Detect GitHub Repo

detect_github_repo

Finds the GitHub repository behind a documentation website URL and returns it as owner/repo with a confidence level, so you can check for a cleaner source before indexing docs.

Instructions

Find GitHub repository from a docs website URL. Use before index_docs to check if cleaner GitHub source exists. Returns repo in 'owner/repo' format with confidence level.

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": {
      "url": "<url>"
    },
    "name": "detect_github_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesDocs website URL (e.g., 'https://zod.dev')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return shape ('owner/repo') and that a confidence level is returned, usefully signalling that results can be uncertain, but it says nothing about read-only/network behavior, failure or no-match outcomes, or rate limits.

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, front-loaded with the action, then workflow placement, then return format. No filler or redundant restatement of the name.

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?

For a single-parameter tool with no output schema, the description covers purpose, workflow position, and return format adequately. The main gap is behavior when detection fails or confidence is low, which an agent would need to act on the result.

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 the single 'url' parameter already includes an example ('https://zod.dev'). The description restates the input as a 'docs website URL' but adds no format or edge-case meaning beyond the schema, so the baseline 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 both resources precisely: turn a docs website URL into a GitHub repository. The relation to the sibling workflow ('Use before index_docs') makes it distinguishable from index_docs and the other docs-centric siblings without opening any 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 clear when-to-use guidance by naming the sibling (index_docs) and the condition ('to check if cleaner GitHub source exists'). It does not say when not to bother calling it, or what to do when no repository is found, which keeps it below a 5.

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