Skip to main content
Glama

read_branch_context

Access branch-specific context for a project to provide AI assistants with persistent memory and prevent context confusion.

Instructions

Read branch-specific context file (current branch context only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNameYesName of the branch
projectNameYesName of the project
currentProjectNoName of the current project (for cross-project warning)
Behavior3/5

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

With no annotations, the description carries the full burden. It correctly indicates a read operation, implying non-destructive behavior, and includes a scope restriction. However, it does not disclose return format, error handling, or access requirements, so transparency is minimal but not misleading.

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?

The description is a single sentence, front-loaded with the core action, and contains no superfluous words. Every word earns its place, making it highly concise and well-structured.

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 simple read tool, the description states the core function and a scope, but it fails to explain what a 'context file' contains, how it relates to the branchName parameter, or when to choose it over similar reading tools. The ambiguity of 'current branch context only' leaves significant gaps for an agent to understand the full context.

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?

The input schema already provides descriptions for all three parameters (100% coverage), and the tool description does not add any additional meaning about the parameters. The baseline score of 3 applies because the schema covers the semantics completely.

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 verb 'Read' and the specific resource 'branch-specific context file', with a scope qualifier '(current branch context only)' that distinguishes it from reading project or pipeline contexts. This clearly differentiates from sibling tools like read_project_context and read_pipeline_context.

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?

No explicit guidance on when to use this tool versus alternatives is provided. The phrase 'current branch context only' hints at a scope restriction but does not name alternatives or give conditions for selection. It leaves the AI agent to infer the intended use case.

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/flores-ac/cursor-cortex'

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