Skip to main content
Glama

start_coding_session

Start a new coding session to track changes by providing a description of the work and an optional Git branch name.

Instructions

Start a new coding session for change tracking

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYesDescription of what will be worked on
branchNoGit branch for this session

Implementation Reference

  • The handler that processes the 'start_coding_session' tool call, invokes projectConfigService.startCodingSession(), and returns the formatted response with session ID, description, start time, and optional branch.
    case 'start_coding_session':
      const session = await this.projectConfigService.startCodingSession(args.description, args.branch);
      return {
        content: [{
          type: 'text',
          text: `Started coding session: ${session.description}\n` +
                `Session ID: ${session.id}\n` +
                `Started at: ${session.startTime}` +
                (session.branch ? `\nBranch: ${session.branch}` : '')
        }]
      };
  • The SessionInfo interface defining the shape of a session object returned by the tool (id, description, startTime, branch, commitHashes, isActive).
    export interface SessionInfo {
      id: string;
      description: string;
      startTime: string;
      branch?: string;
      commitHashes: string[];
      isActive: boolean;
    }
  • Registration of 'start_coding_session' in tool definitions with description and inputSchema requiring 'description' and optional 'branch'.
    // Session Management
    {
      name: 'start_coding_session',
      description: 'Start a new AI coding session with automatic change tracking',
      inputSchema: {
        type: 'object',
        properties: {
          description: { type: 'string', description: 'What this session will accomplish' },
          branch: { type: 'string', description: 'Git branch to work on (optional)' }
        },
        required: ['description']
      }
    },
  • Duplicate registration of 'start_coding_session' in a second tool definitions section, also requiring 'description' with optional 'branch'.
    // Session Management
    {
      name: 'start_coding_session',
      description: 'Start a new coding session for change tracking',
      inputSchema: {
        type: 'object',
        properties: {
          description: { type: 'string', description: 'Description of what will be worked on' },
          branch: { type: 'string', description: 'Git branch for this session' }
        },
        required: ['description']
      }
    },
  • The startCodingSession method in ProjectConfigService that creates and stores a new session with a unique ID, description, timestamp, and optional branch.
    async startCodingSession(description: string, branch?: string): Promise<SessionInfo> {
      const sessionId = `session_${Date.now()}`;
      
      this.currentSession = {
        id: sessionId,
        description,
        startTime: new Date().toISOString(),
        branch,
        commitHashes: [],
        isActive: true
      };
    
      return this.currentSession;
    }
Behavior1/5

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

With no annotations, the description carries full burden. It does not disclose what starting a session entails (e.g., side effects, state changes, authorization needs) beyond 'change tracking'.

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?

Single sentence with no extraneous information. Every word is necessary.

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?

Given no output schema and no annotations, the description is too minimal. It does not explain session lifecycle, impact on other tools, or expected behavior.

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 coverage is 100%, so parameters are already described. The description adds no extra semantics beyond the schema definitions.

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 action: 'Start a new coding session' and the resource: 'for change tracking'. It effectively distinguishes from sibling tools like end_coding_session and get_current_session.

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 guidance on when to start a session versus using alternatives. No mention of prerequisites or conditions that would trigger this tool versus others.

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/agentics-ai/code-mcp'

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