Skip to main content
Glama

list_merge_requests

Lists a project's merge requests with optional state and pagination filters, so you can review open, closed, merged, or all requests.

Instructions

列出项目的合并请求

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": {
      "projectPath": "<projectPath>"
    },
    "name": "list_merge_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo页码
stateNo合并请求状态opened
perPageNo每页返回的数量
projectPathYes项目路径,格式: owner/repo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it discloses nothing about pagination behavior, the default 'opened'-only filtering, ordering, rate limits, or the shape of returned data. All behavioral understanding must come from the schema defaults, which the description does not contextualize.

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?

It is a single short sentence with no filler, so nothing is wasted, but the sentence is under-specified rather than economical — it provides no structure or front-loaded detail to work with.

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 paginated list tool with a default state filter, an agent needs to know that results are paged and default-filtered to open requests; the description says none of this. There is no output schema, so nothing else compensates for the missing behavioral framing.

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%, so page, perPage, state, and projectPath are already documented with defaults and an enum. The description adds no meaning beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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 has a specific verb ('列出'/list) and resource ('合并请求'/merge requests) plus a scope ('项目的'/of a project), so the operation is unambiguous. It does not distinguish this list operation from the sibling get_merge_request, which fetches a single request, but the verb 'list' implicitly separates it.

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 guidance on when to use this tool instead of get_merge_request or get_merge_request_changes, and no prerequisites or exclusions are stated. The agent must infer that this is the bulk enumeration option from the name alone.

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