Skip to main content
Glama

Sidetrip GitHub

search_repositories

Read-onlyIdempotent

Search public GitHub repositories. Use this to find projects by keywords, language, or star count. Returns a short list with name, description, stars, language, and URL.

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": {
      "query": "<query>"
    },
    "name": "search_repositories"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort key. Omit it to use GitHub's best-match order.
limitNoHow many results to return, from 1 to 10. Defaults to 5.
orderNoSort direction.
queryYesGitHub repository search query, such as language:typescript stars:>1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive) and that the tool reaches an open world. The description adds value beyond that by disclosing the scope restriction to public repositories and the shape of the return payload (name, description, stars, language, URL), which matters since no output schema exists. It omits rate-limit or result-set-size behavior, but the schema's limit cap partly covers the latter.

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?

Three short sentences, front-loaded with the action and then the usage cue and return shape. The opening clause and the usage sentence overlap slightly, but nothing is padded or out of order.

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 four-parameter read-only search with no output schema, the definition covers what it searches, how to frame a query, and what comes back. The only real gap is behavior at scale (pagination, rate limits), which is minor given the hard limit of 10 results in the schema.

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% and the query parameter already carries a syntax example (language:typescript stars:>1000), so the schema does the heavy lifting. The description's mention of keywords/language/star count loosely mirrors the query fields but adds no syntax, defaults, or sorting semantics beyond what is structured.

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 and resource ("Search public GitHub repositories") and scopes it to discovery by keywords, language, or star count, which separates it from single-object siblings like get_repository or get_readme. It stops short of naming any sibling explicitly, so the differentiation is inferred 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?

"Use this to find projects by keywords, language, or star count" gives a clear use context for a discovery task. There are no exclusions or named alternatives telling the agent when to prefer get_repository or list_releases instead, so it is clear-but-not-complete guidance.

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.

Resources