Skip to main content
Glama

github_repos_get_hash_algorithm

Read-only

Retrieves the hash algorithm for a specified GitHub repository, helping you identify how its Git objects are hashed.

Instructions

Get the hash algorithm for a repository

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": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "github_repos_get_hash_algorithm"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesrepo
ownerYesowner

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered, but the description adds no behavioral context whatsoever: no auth/permission requirements, no note about which algorithm values may come back, no error behavior for missing repos. It relies entirely on the annotations and schema.

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?

One short, front-loaded sentence with zero filler — the resource is stated immediately. It is efficient but so terse that there is no structure to speak of beyond the single clause.

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?

With no output schema, the description could usefully say what the return value looks like (e.g., an algorithm name such as sha1/sha256) and whether null appears for empty repos. For a trivial two-parameter read getter this is a modest gap rather than a blocking one, so it is minimally viable.

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 both owner and repo are required, so the schema already carries parameter meaning. The description adds nothing about the parameters (not even confirming that owner/repo identify the repository whose algorithm is fetched), which is the expected baseline when the schema does the work.

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?

The description names a specific verb (get) and a specific resource (the hash algorithm for a repository), so an agent knows exactly what it returns conceptually. It is distinguishable from generic siblings like github_repos_get because the target attribute is stated. It stops short of 5 only because it offers no explicit sibling differentiation.

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 prerequisites, no mention of when a different tool would be preferred, and no note that this is a read-only lookup requiring owner/repo. The single sentence only restates the operation, leaving usage entirely implicit.

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