Skip to main content
Glama

PillDrops

agent_pull_request

For a chat started with repo: commit its changes, push its branch and open a GitHub pull request with the sandbox's GIT_TOKEN. Returns its url. Wait for the chat's turn to finish first.

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": {
      "sandbox_id": "<sandbox_id>",
      "chat_id": "<chat_id>"
    },
    "name": "agent_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNopull request description
draftNoopen it as a draft
titleNotitle and commit message; default the chat's first message
chat_idYesthe turn id agent_ask returned when it started the chat
sandbox_idYessandbox id of an agent template

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses three side effects (commit, push, open PR), the authentication mechanism (the sandbox's GIT_TOKEN), the return value (the PR url), and a required precondition about turn completion. It does not cover failure modes (e.g. no changes to commit, invalid token) or whether a repeated call is idempotent, which keeps it below 5.

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 short clauses, front-loaded with the applicability condition, then the action, then the return value, with the ordering caveat last. No wasted wording; every sentence carries information.

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 five parameters, no output schema, and no annotations, the description covers purpose, auth, side effects, return value, and a critical timing constraint. The remaining gap is error/failure behavior, which is a minor omission for this complexity level.

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 each parameter is already documented, including the title default and draft flag. The description adds only the scoping hint that chat_id refers to a repo-backed chat and that its turn must be finished, leaving the baseline of 3 appropriate.

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 sequence of actions (commit, push, open a GitHub pull request) on a clearly identified resource (a chat started with repo), which distinguishes it from sibling tools like agent_ask and agent_interrupt. An agent can tell exactly what this tool produces without opening the schema.

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?

The precondition 'For a chat started with repo' scopes when the tool applies, and 'Wait for the chat's turn to finish first' gives an explicit ordering constraint. It stops short of naming an alternative (e.g. agent_get_turn/agent_status to poll until the turn completes), so the guidance is clear but not fully routed.

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.