Skip to main content
Glama

Get commit comments

gitlab_get_commit_comments
Read-onlyIdempotent

Fetch comments for a GitLab commit using project ID and commit hash to inspect discussion and review feedback.

Instructions

Get comments on a commit.

Args: **kwargs: Additional parameters for the request.

Returns: Response: A wrapper containing the original response and a list of Comment models.

Raises: ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
allNo
refNo
dataNo
lineNo
nameNo
noteNo
pageNo
pathNo
forceNo
sinceNo
stateNo
statsNo
untilNo
branchNo
actionsNo
contextNo
dry_runNo
messageNo
coverageNo
per_pageNo
ref_nameNo
user_idsNo
group_idsNo
line_typeNo
max_pagesNo
rule_typeNo
start_shaNo
project_idYes
target_urlNo
with_statsNo
author_nameNo
commit_hashNo
descriptionNo
pipeline_idNo
report_typeNo
author_emailNo
start_branchNo
start_projectNo
api_parametersNo
protected_branch_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile needs no restating. The description does add some value by disclosing the return shape (a response wrapper containing a list of Comment models) and the ParameterError failure mode, but it says nothing about pagination or how the commit itself is identified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short and front-loaded with the purpose sentence, and the Returns block is genuinely useful. The Args line is pure boilerplate noise that adds negative information, and the overall docstring style is generic rather than tailored to this tool.

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

Completeness2/5

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

For a tool with 40 parameters, one required field, no output schema, and zero schema descriptions, this description is far too thin. Critically, only project_id is required, so the description should explain how to identify the target commit (commit_hash/sha) and whether the call returns all comments when it is omitted — it does neither.

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

Parameters1/5

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

Schema description coverage is 0% across 40 parameters, so the description carries the full burden and fails to meet it. It offers only '**kwargs: Additional parameters for the request', which explains nothing about project_id, commit_hash, ref/ref_name, pagination (page, per_page, max_pages), or the many unrelated-looking fields. An agent has no way to know which parameter pins the commit.

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: 'Get comments on a commit.' An agent can immediately tell it is a read of commit comments rather than of a commit itself. It does not, however, distinguish itself from close siblings like gitlab_get_commit_discussions, gitlab_get_notes, or gitlab_create_commit_comment.

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 mention of prerequisites, and no pointer to alternatives such as gitlab_get_commit_discussions despite that sibling being a plausible substitute. The agent must infer usage entirely from the tool name.

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