Skip to main content
Glama

Create a branch

branches_create

Fork a branch from production (or from) for one task, agent or pull request: a copy-on-write database with its own URL and keys. Expires after ttl_hours. Returns its URL and publishable key once live. Scope: branches:write.

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_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoWhat to copy from the parent (default snapshot: schema and data, copy-on-write)
fromNoParent branch, default production
nameNoBranch id, e.g. `add-comments`. Optional: generated.
from_timeNoOptional RFC 3339 time, e.g. 2026-09-28T10:15:00Z: the branch holds its parent as it was then (inside the project's history window, shown on the Branches page)
ttl_hoursNoHours until it expires (default 24)
project_idNoProject id, e.g. `todo-app`. Default: the last one used, or your only one.
wait_secondsNoSeconds to wait until live (default 60; 0 returns at once)
organization_idNoOrganization id, e.g. `acme`. Default: the token's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses copy-on-write semantics, that the branch expires after ttl_hours, that it returns a URL and publishable key once live, and the required scope (branches:write). The non-idempotent, non-destructive annotation profile is consistent with creating a fresh expiring resource each call.

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?

Two dense sentences, front-loaded with the action and the parent, then behavior, return values, and scope. No filler or restated title.

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?

All eight parameters are optional and fully documented in the schema, and the description covers what is produced, how long it lives, and the auth scope even though no output schema exists. Only edge-case behavior (duplicate name, failure/timeout with wait_seconds) is left unstated.

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% so the baseline is 3, but the description adds behavioral meaning: `from` selects the parent, ttl_hours governs expiry, and wait_seconds governs readiness ('once live'). It does not explain name-collision behavior or from_time history-window limits beyond the schema text.

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?

States a specific verb (fork/create) and resource (branch) plus scope: copy-on-write database with its own URL and keys, forked from production or `from`. This is precise enough that an agent can distinguish it from branches_merge, branches_list, or projects_create without inspecting schemas.

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?

Gives concrete usage context — one task, agent, or pull request — which tells the agent when this is the right tool. It does not name an alternative or state when not to use it (e.g., long-lived shared environments), so it stops short of full routing guidance.

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