Skip to main content
Glama

gitlab_get_user_resolved_threads

Retrieve discussion threads resolved by a specific user in code reviews and collaborative processes to assess contributions, review effectiveness, and team productivity. Filter by project, timeframe, or resolution type for targeted insights.

Instructions

Get threads resolved by a user in reviews

Find all discussion threads that were resolved by the specified user during code reviews and collaborative processes.

Returns resolved thread information with:

  • Thread details: original discussion, resolution

  • Resolution info: how thread was closed, outcome

  • Context: code changes, review process, participants

  • Timeline: discussion duration, resolution time

  • Impact: contribution to code quality and decisions

Use cases:

  • Code review effectiveness tracking

  • Collaboration quality assessment

  • Mentoring and guidance evaluation

  • Team productivity insights

Parameters:

  • user_id: Numeric user ID

  • username: Username string (use either user_id or username)

  • project_id: Optional project scope filter

  • resolution_type: How thread was resolved

  • since: Resolved after date (YYYY-MM-DD)

  • until: Resolved before date (YYYY-MM-DD)

  • context_type: Filter by context (MergeRequest, Issue, all)

  • sort: Sort order (resolved, created, impact)

  • per_page: Results per page (default: 20)

  • page: Page number (default: 1)

Example: Get threads resolved in code reviews

{ "username": "johndoe", "context_type": "MergeRequest", "since": "2024-01-01", "sort": "resolved" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination Type: integer Range: ≥1 Default: 1 Example: 3 (to get the third page of results) Note: Use with per_page to navigate large result sets
per_pageNoNumber of results per page Type: integer Range: 1-100 Default: 20 Example: 50 (for faster browsing) Tip: Use smaller values (10-20) for detailed operations, larger (50-100) for listing
project_idNoOptional project scope filter
sinceNoThreads resolved after date (YYYY-MM-DD)
untilNoThreads resolved before date (YYYY-MM-DD)
usernameYesUsername string

Implementation Reference

  • The main handler function that parses arguments and calls the GitLab client method to retrieve user's resolved discussion threads.
    def handle_get_user_resolved_threads(client: GitLabClient, arguments: Optional[Dict[str, Any]]) -> Dict[str, Any]: """Handle getting user's resolved threads""" username = get_argument(arguments, "username") if not username: raise ValueError("username is required") project_id = get_argument(arguments, "project_id") since = get_argument(arguments, "since") until = get_argument(arguments, "until") per_page = get_argument(arguments, "per_page", DEFAULT_PAGE_SIZE) page = get_argument(arguments, "page", 1) return client.get_user_resolved_threads( username=username, project_id=project_id, since=since, until=until, per_page=per_page, page=page )
  • Defines the tool schema including input parameters validation and description.
    types.Tool( name=TOOL_GET_USER_RESOLVED_THREADS, description=desc.DESC_GET_USER_RESOLVED_THREADS, inputSchema={ "type": "object", "properties": { "username": {"type": "string", "description": "Username string"}, "project_id": {"type": "string", "description": "Optional project scope filter"}, "since": {"type": "string", "description": "Threads resolved after date (YYYY-MM-DD)"}, "until": {"type": "string", "description": "Threads resolved before date (YYYY-MM-DD)"}, "per_page": {"type": "integer", "description": desc.DESC_PER_PAGE, "default": DEFAULT_PAGE_SIZE, "minimum": 1, "maximum": MAX_PAGE_SIZE}, "page": {"type": "integer", "description": desc.DESC_PAGE_NUMBER, "default": 1, "minimum": 1} }, "required": ["username"] } )
  • Maps the tool name to its handler function in the TOOL_HANDLERS dictionary used by the server.
    TOOL_GET_USER_RESOLVED_THREADS: handle_get_user_resolved_threads,
  • The server call_tool handler dispatches to the appropriate tool handler using TOOL_HANDLERS.
    handler = TOOL_HANDLERS.get(name) if not handler: raise ValueError(f"Unknown tool: {name}") # Execute the handler result = handler(client, arguments) # Truncate response if too large result = truncate_response(result, MAX_RESPONSE_SIZE)
  • Constant defining the exact tool name string used throughout the codebase.
    TOOL_GET_USER_RESOLVED_THREADS = "gitlab_get_user_resolved_threads"

Other Tools

Related 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/Vijay-Duke/mcp-gitlab'

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