Skip to main content
Glama

Get Branch

get_branch
Read-only

Fetch a branch's endpoints, schemas, and folder counts. Optionally compare against main for conflicts and breaking changes, or preview rebase status to assess merge readiness.

Instructions

Get one branch with how many endpoints, schemas and folders live on it. Set includeDiff for the change summary against main, the conflicts and the classified (breaking / non-breaking) changes — that is the read to trust before merging. Set includeRebasePreview to see how far the branch is behind main and what a rebase would have to resolve. Requires project context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specIdYesPublic ID (GUID) of the API specification
branchIdYesPublic ID (GUID) of the branch
includeDiffNoAlso return the diff against main: counts, conflicts, classified changes (default false)
includeRebasePreviewNoAlso return the rebase preview: behind count and conflicting clones (default false)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.1

TDQS

A4.3/5.0
Behavior4/5

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

The readOnlyHint annotation already indicates no side effects, and the description adds that the tool is a read operation for merge trust and rebase preview. No contradictions exist.

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?

The description is focused and mostly concise, though phrases like 'that is the read to trust before merging' add a bit of marketing tone without much technical substance.

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?

The description covers the main outputs and optional behaviors, and the schema fully documents parameters. It omits error conditions or output schema details, but no output schema is provided and the tool's purpose is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description enriches the boolean parameters by explaining what includeDiff and includeRebasePreview return. specId and branchId are clearly defined in the schema.

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 description clearly states the tool retrieves a branch with counts of endpoints, schemas, and folders, and optionally includes diff and rebase preview data. This distinguishes it from list_branches and related merge/compare tools.

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

Usage Guidelines4/5

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

The description explains when to use the diff ('read to trust before merging') and rebase preview options, and notes that project context is required. It does not explicitly contrast with sibling tools like get_merge_request, but the usage hints are strong enough.

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/routebase-dev/routebase-mcp'

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