Skip to main content
Glama

branch_export

Export a reasoning chain as Markdown or JSON for PR/ADR documentation, optionally scoped by sessionId or taskId to capture task-specific context.

Instructions

Export reasoning chain as markdown or json (PR/ADR). Pass sessionId/taskId for task-scoped export.

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": "branch_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo
taskIdNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 behavioral burden. It discloses the two output formats and the scoping semantics, but never says whether the export is returned inline, written to a file, or streamed, nor does it say whether it changes state, what permissions it needs, or what happens when no session or task is specified.

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?

Two compact sentences, with the core purpose front-loaded before the parameter guidance. The dense parenthetical 'PR/ADR' adds slight ambiguity without fully earning its place, but there is no filler.

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

Completeness3/5

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

With no annotations, no output schema, and no schema descriptions, the description does not say how the export is delivered (inline string, a file path, or a downloadable artifact) or how it behaves when no scope is given. For a three-parameter export tool it is adequate but leaves a material decision gap.

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 0%, so the description has to compensate, and it does name all three parameters: the allowed values for format (markdown/json) and the scoping role of sessionId and taskId. It does not explain how the two scoping IDs interact, which one wins when both are passed, or what the default is, so the meaning added is partial rather than full.

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?

Specific verb and resource: 'Export reasoning chain as markdown or json', with the intended downstream artifacts (PR/ADR) named. This clearly separates it from the other branch_* siblings, which create, close, merge, or switch branches. The only weakness is that 'PR/ADR' is left unexpanded.

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?

'Pass sessionId/taskId for task-scoped export' implies the default is an unscoped export and tells the agent when to add scoping parameters. It stops short of stating when a scoped export is required versus optional, and it names no alternative tool or exclusion case.

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