Skip to main content
Glama

List branches

branches_list
Read-onlyIdempotent

Branches of a project with kind, status, parent and expiry. Production is protected. Scope: branches:read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "branches_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items (default 50), e.g. 20
cursorNoThe next_cursor of the previous page
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered. The description adds value beyond that: the required auth scope ('branches:read'), the fact that production is protected, and the shape of the records returned (kind, status, parent, expiry). It does not discuss pagination behavior, though the schema's limit/cursor carry that.

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

Conciseness4/5

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

Three short fragments, front-loaded with the resource and its attributes, with no filler. The phrasing 'with kind, status, parent and expiry' is slightly ambiguous about whether these are returned fields or filters, which costs it a point.

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

Completeness4/5

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

With no output schema, the description usefully enumerates the fields returned, and it supplies the auth scope an agent needs. Combined with a fully documented input schema, this is close to complete; only pagination/ordering behavior is left implicit.

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% and all four parameters (limit, cursor, project_id, organization_id) already document defaults and examples. The description's mention of 'kind, status, parent and expiry' reads as returned fields rather than input filters, and it adds no syntax or meaning beyond the schema.

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 names the resource concretely ('Branches of a project') and the attributes involved ('kind, status, parent and expiry'), which is enough to tell it apart from branches_create or branches_merge by name. It stops short of an explicit verb like 'list', so the operation itself is inferred from the tool name rather than stated.

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?

'Scope: branches:read' tells the agent the required permission and 'Production is protected' hints that production branches behave differently. There is no explicit when-to-use versus alternatives (e.g. projects_list) and no stated exclusions, so guidance is implied rather than directive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources