Skip to main content
Glama

Get commit discussions

gitlab_get_commit_discussions
Read-onlyIdempotent

Retrieves discussions on a GitLab commit so you can inspect review comments and conversation threads tied to a specific project commit.

Instructions

Get discussions on a commit.

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

Returns: Response: A wrapper containing the original response and a list of Discussion 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.2/5.0
Behavior2/5

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

Annotations already carry the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint). The description adds only that a wrapper with a list of Discussion models is returned and that ParameterError may be raised — modest value given no output schema exists. It omits pagination behavior entirely, which matters for a tool with page/per_page/max_pages defaults, and its '**kwargs: Additional parameters' claim conflicts with the schema's additionalProperties: false.

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

Conciseness2/5

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

It is short but the length is spent on generated docstring scaffolding ('Args: **kwargs', 'Returns: Response', 'Raises: ParameterError') rather than on information an agent needs. The tool's actual identity is front-loaded, but the remaining sections are filler.

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 40-parameter tool with 0% schema coverage, no output schema, and an ambiguous required-parameter set, the description should explain at minimum how the commit is identified and how to paginate. Neither is covered, so an agent must guess among mutually redundant parameters (ref vs ref_name vs commit_hash vs branch).

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, and the description supplies nothing — not even which parameter identifies the commit (commit_hash, ref, ref_name all appear in the schema but only project_id is required). The single 'kwargs' line actively obscures the fact that the caller must select among dozens of concrete, undocumented parameters.

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 first line states a specific verb and resource: 'Get discussions on a commit.' An agent can tell this fetches commit discussion threads rather than a project or merge request. It does not differentiate from the very similar sibling gitlab_get_commit_comments, which is the one distinction an agent most needs here.

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

Usage Guidelines1/5

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

There is no guidance on when to use this tool versus gitlab_get_commit_comments, gitlab_get_commit, or gitlab_get_notes, nor on prerequisites such as read access or which identifier selects the commit. The description stops at the bare purpose line.

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