Skip to main content
Glama

Choose what happens to pull requests

set_review_intake
DestructiveIdempotent

Chooses what happens when someone opens a pull request (a review) at one project's code home that no CodeGene task owns, as the project settings' Pull requests row does: adopt makes each new one a task, ignore leaves it a preview only. Only owners and admins can. A choice a decision holds is never changed: the answer is status held with the reason, which you tell the person as it is; do not try again. Answers status saved, unchanged, held, forbidden, invalid or no-code-home.

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": {
      "project_id": "<project_id>",
      "choice": "<choice>"
    },
    "name": "set_review_intake"
  }
}

Input Schema

NameRequiredDescriptionDefault
choiceYesadopt or ignore, as get_review_intake lists them.
project_idYesThe site (list_projects gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the permission model, the irreversible 'held' outcome, and the full set of answer statuses (saved, unchanged, held, forbidden, invalid, no-code-home). It does not explain what happens to already-created tasks when switching to ignore, which is the main behavioral gap for a destructive mutation.

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?

The sentence is front-loaded with the action and effect, and every clause carries information — permissions, outcomes, held-state handling, statuses. The phrasing is dense and slightly awkward ('at one project's code home', stacked colons), which costs it the top score but not readability.

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?

For a three-parameter mutation with no output schema, the description covers the essentials: what changes, who may call it, and what statuses come back, including the terminal 'held' case. The one missing piece is guidance on how an existing adopt/ignore setting transitions when re-invoked, which would matter to an agent re-calling the tool.

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, but the description earns more by defining the semantic effect of each choice value rather than just restating 'adopt or ignore'. The project_id and workspace_id parameters are left entirely to the schema, which is acceptable given the high coverage.

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 ('chooses what happens when someone opens a pull request ... at one project's code home that no CodeGene task owns') and then defines the two outcomes concretely: adopt makes each new one a task, ignore leaves it a preview only. That level of detail lets an agent distinguish this write tool from the read-only get_review_intake without opening either 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?

It gives clear preconditions ('Only owners and admins can') and a strong negative rule: a choice a decision holds is never changed, so the agent should report the held status and not retry. It stops short of explicitly naming get_review_intake as the tool to read the current setting first, leaving that routing only implicit in the schema text.

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.

Resources