Skip to main content
Glama

List discussions

gitlab_list_discussions
Read-only

Retrieve threaded discussions for an issue, merge request, or commit, including code-review threads with file/line position and resolved state.

Instructions

Threaded discussions, including code-review threads with their file/line position and resolved state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iidYesiid or commit SHA
pageNoPage number (default 1)
limitNoCap for all_pages (default 500)
per_pageNoItems per page, max 100 (default 20)
all_pagesNoFollow pagination and return up to `limit` items across pages
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
target_typeYes
Behavior4/5

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

The description adds useful context beyond the readOnlyHint and destructiveHint annotations by explaining the nature of the returned data (threaded discussions, including code-review positions and resolved state). It does not contradict annotations and enriches the agent's understanding of the tool's behavior.

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

Conciseness5/5

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

The description is a single, concise sentence that communicates the core value proposition without waste. It is front-loaded with the key concept ('threaded discussions') and adds relevant detail about code-review threads.

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?

For a list tool with no output schema, the description provides a clear idea of what is returned (threaded discussions, code-review positions, resolved state). However, it does not mention the required parameters (target_type, iid) or how pagination works, though these are covered in the schema. The description is minimally complete given the tool's simplicity.

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?

The input schema has high description coverage (86%), so the description does not need to explain parameters in detail. The description does not add any parameter-specific meaning, but the schema already documents target_type, iid, pagination, and project_id fields adequately. Baseline 3 is appropriate.

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 title and description clearly indicate this tool lists discussions. The description specifies 'threaded discussions, including code-review threads with their file/line position and resolved state,' which provides a specific verb-resource pair and distinguishes it from other discussion-related tools like reply_to_discussion or list_notes.

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

Usage Guidelines3/5

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

The description implies when to use this tool by mentioning code-review threads and their file/line position, but it does not explicitly state when to choose this over alternatives such as gitlab_list_notes or gitlab_resolve_merge_request_thread. No exclusion or alternative guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalychev/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server