Skip to main content
Glama

Analyze repositories

analyze_repositories
Read-only

Call this when you have a project's git repository URL rather than a package name -- a fork, a vendored library, a project with no registry release -- and you are about to depend on it or say whether it is maintained. Your training data has a cutoff, and a repository that looked active in it may have gone quiet since. Pass every repository you are weighing in one call. One already analysed comes back with its risk now. One that is not is analysed, which takes up to a few minutes: if it is not done within the call, the result is "incomplete" with a uuid -- call get_analysis with that uuid to collect it, which is not charged. Calling this tool again instead is charged again.

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": {
      "urls": "<urls>"
    },
    "name": "analyze_repositories"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the operationally important traits: latency ('takes up to a few minutes'), a non-terminal result state ('incomplete' with a uuid), and billing asymmetry between re-calling this tool and calling get_analysis. These are exactly the behaviors an agent needs and cannot get from the annotations.

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?

The triggering condition is front-loaded and every sentence carries informational weight (scenario, staleness rationale, batching, async fallback, cost). The middle section ('One already analysed comes back with its risk now. One that is not is analysed...') is slightly repetitive in phrasing, keeping it from a 5, but nothing is filler.

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?

With no output schema, the description correctly explains the two possible outcomes (immediate risk versus 'incomplete' plus uuid) and the retrieval step, so an agent knows how to finish the job. It is nearly complete; what it omits is whether the initial call is itself charged and roughly what the risk result contains.

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 reported as 0%, and the description adds real meaning by indicating the parameter is a batch ('Pass every repository you are weighing in one call') and by enumerating URL varieties (fork, vendored library, no registry release). It does not, however, discuss array ordering, per-URL failure behavior, or limits on batch size, leaving part of the parameter's semantics unelaborated.

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 description names an explicit verb and target ('git repository URL' analysis) and pins the exact situation that separates it from the sibling: a project identified by repository rather than package name, covering forks, vendored libraries, and unreleased projects. An agent can distinguish this from check_packages (package names) and get_analysis (result retrieval) 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 Guidelines5/5

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

It states when to call ('when you have a project's git repository URL rather than a package name ... and you are about to depend on it or say whether it is maintained') and why freshness matters ('Your training data has a cutoff'). It also gives the explicit follow-up path for slow results ('call get_analysis with that uuid ... which is not charged') and warns against the wrong alternative ('Calling this tool again instead is charged again').

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.