Skip to main content
Glama

locus_ingest_github

Fetch markdown files from a GitHub repository and index them into Locus for search; configure branch, subdirectory, file pattern, and token for private repos.

Instructions

Fetch markdown files from a GitHub repository and index them. Fetches the file tree, downloads matching files, and calls locus_index. Requires a GITHUB_TOKEN env var or token param for private repos.

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": "locus_ingest_github"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoSub-directory within repo.
repoYesowner/repo
tokenNoGitHub PAT (or set GITHUB_TOKEN env var).
branchNomain
patternNo*.md
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description usefully discloses the file-tree fetch, file downloads, delegation to locus_index, and authentication needs. It does not explicitly describe local persistence through store_path, treatment of an existing index, or network, rate-limit, and partial-failure behavior, leaving the operational picture incomplete.

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 compact sentences front-load the purpose and then add the operating sequence and authentication requirement without filler. The mention of locus_index earns its place by clarifying how indexing occurs.

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?

Together with the required owner/repo parameter and schema defaults, the description supports correct routine invocation for public or private repositories. Its main remaining gaps are local storage and result or error semantics, which matter somewhat more because neither annotations nor an output schema are supplied.

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?

The description adds that authentication is needed for private repositories and that matching files are downloaded, providing some context for token and pattern. It does not clarify branch selection, pattern syntax, or store_path, so it only partly compensates for the 50% schema description coverage.

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?

The opening sentence specifies the source resource, content type, and outcome: fetching markdown from a GitHub repository and indexing it. Explaining that it downloads files and calls locus_index also distinguishes this remote-ingestion wrapper from the sibling indexing operation.

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?

It clearly establishes the GitHub-to-index use case and gives an explicit private-repository prerequisite: supply GITHUB_TOKEN or the token parameter. It does not explain when to call locus_index directly or discuss non-GitHub sources, so the selection guidance is useful but not exhaustive.

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