Skip to main content
Glama

Start a local review session

start_session

Start a MergeSafe review session for local changes, before or without a pull request; nothing is posted to GitHub. FIRST ask the user for a cost limit for the session in US dollars and pass it as limit_usd: reviews stop when it is reached until the user approves more. Returns the session_id and how reviews are priced (level rate x review size).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>",
      "limit_usd": "<limit_usd>"
    },
    "name": "start_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoThe branch the change is against.
repoYesThe repository as "owner/name".
branchNoThe local branch, if any.
limit_usdYesThe cost limit the user chose, in US dollars.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false. The description adds meaningful behavior: nothing is posted to GitHub, reviews stop at the cost limit until the user approves more, and it returns the session_id plus pricing explanation. This goes beyond the annotations without contradicting them.

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?

Three sentences, front-loaded with purpose, then the key prerequisite, then return values. No wasted words.

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?

Given four parameters with full schema coverage and no output schema, the description covers purpose, a critical prerequisite, cost-limit behavior, and return values. It is complete enough for an agent to call it correctly, though it could clarify session lifetime.

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. The description adds crucial meaning for limit_usd—that the agent must first ask the user for a cost limit and that reviews stop when reached—which is not obvious from the schema alone.

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 states a specific verb and resource (Start a MergeSafe review session) and scope (local changes, before or without a pull request), clearly distinguishing it from PR-based siblings. It also notes nothing is posted to GitHub, reinforcing the distinction.

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?

It provides clear context for when to use (local changes, before or without a PR) and a critical prerequisite: ask the user for a cost limit first. It does not explicitly name when to avoid this tool or point to specific alternatives, but the context is sufficient.

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.