Skip to main content
Glama

Collect GitHub Source

collect_github_source
DestructiveIdempotent

Collect a GitHub revision as this agent's complete source, enabling later Promote provenance.

Uses the organization's configured GitHub App, or the local server's enabled CLI account/repository allowlist. Does not use the coding assistant's GitHub token. GitHub authorization must already be connected in VAIL. Commit intended source changes before collection; it reads the chosen ref, not local uncommitted files. This replaces source and makes prior generated results outdated; scan again before creating a new experiment. Existing frozen experiments remain unchanged.

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": {
      "agent_id": "<agent_id>",
      "repository": "<repository>"
    },
    "name": "collect_github_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
excludeNo
includeNo
agent_idYes
repositoryYesRepository name owner/repo or its GitHub URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Even though annotations already flag destructiveHint=true, the description adds substantially: it names which credential is used (org GitHub App or local CLI allowlist) and which is not (the coding assistant's token), states it reads the ref rather than uncommitted local files, and scopes the damage (prior generated results become outdated, frozen experiments untouched). That is precisely the kind of blast-radius context annotations cannot express.

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?

Purpose is front-loaded in the first sentence, with credentials, prerequisites, and side effects following in a logical order. Some sentences are dense but each carries distinct operational information; there is little pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with no output schema, the behavioral picture is strong. However, an agent still cannot correctly populate exclude/include from the description alone, and nothing explains what is returned or how to confirm collection succeeded, which is a real gap for a source-replacing operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20%, so the description carries the burden, and it does not meet it. "The chosen ref" hints at the ref parameter, but exclude and include are never explained (pattern syntax? gitignore-style filtering?) and agent_id is unmentioned entirely, leaving three of five parameters undocumented anywhere.

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?

"Collect a GitHub revision as this agent's complete source" gives a specific verb and resource plus the downstream purpose (Promote provenance). It is clearly distinct from the upload-oriented siblings in spirit, though it never names an alternative tool, so differentiation is implied rather than stated.

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 supplies concrete preconditions (GitHub auth must already be connected in VAIL, commit intended changes first) and a follow-up requirement (scan again before creating a new experiment). What is missing is any explicit routing guidance against prepare_source_upload or complete_source_upload, so there are no exclusions.

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.