Skip to main content
Glama

analyze_repo

Analyze a public GitHub repository to return SLOC totals by language, with optional branch, tag, or commit ref for accurate code counts.

Instructions

Analyze a public GitHub repository with OctoCounts and return SLOC totals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoOptional branch, tag, or commit SHA.
repo_urlYesGitHub URL or owner/repo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it only discloses that repos must be public and that output is SLOC totals. It says nothing about rate limits, authentication, behavior on private/invalid URLs, or whether analysis is synchronous or queued.

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?

A single tight sentence with the resource and the return value front-loaded. 'with OctoCounts' is slightly internal jargon but does not waste meaningful space.

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 two-parameter read tool with fully documented schema and no output schema, the description adequately conveys purpose, scope (public repos), and the returned metric. The remaining gap is behavioral edge cases (private repos, errors), which is a minor omission given the tool's simplicity.

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% — both repo_url ('GitHub URL or owner/repo') and ref ('branch, tag, or commit SHA') are fully documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 (Analyze) and resource (public GitHub repository) plus the output (SLOC totals), so the agent knows exactly what it gets back. It does not explicitly distinguish itself from the sibling compare_repos, but the singular 'repository' vs. comparison framing makes the difference inferable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusions, and no mention of compare_repos as the alternative for multi-repo analysis. The agent must infer usage purely from the name and the word 'public'.

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

Deploy Server

Other Tools