Skip to main content
Glama

Select repository for sandboxes

select_repo

Selects one repository for a sandbox environment and updates its base branch when reselected. Use the internal repository databaseId from GET /repos as repositoryId.

Instructions

Select repository for sandboxes. Idempotently selects one repository for the sandbox environment. Use databaseId from GET /repos as repositoryId; selecting an already-selected repository updates its baseBranch.

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": {
      "repositoryId": "<repositoryId>"
    },
    "name": "select_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseBranchNomain
repositoryIdYesInternal repository `databaseId` returned by `GET /repos`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, open-world, non-destructive, non-idempotent operation, and the description adds genuine value by explaining what happens on a repeat call: selecting an already-selected repository updates its baseBranch. That is exactly the state-change behavior an agent needs. There is mild tension in the word 'Idempotently' against idempotentHint=false, though the baseBranch-update clause effectively explains the non-idempotency, and the description says nothing about what happens to the sandbox's existing files.

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, front-loaded with the action and followed by the ID source and the re-selection caveat. The opening 'Select repository for sandboxes' largely restates the title and the following sentence, a small redundancy, but nothing else is wasted.

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?

For a two-parameter mutation tool with annotations and no output schema, the definition covers the core mechanics and the repeat-call behavior. It leaves out what selecting a repository actually does to the sandbox environment (mounting, file visibility), any required ordering relative to sandbox creation, and whether failures are returned. Adequate but with clear gaps.

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 only 50%: repositoryId is documented in the schema, while baseBranch has no schema description beyond a default of 'main'. The description compensates by naming the source of repositoryId (databaseId from GET /repos) and by noting baseBranch can be updated on re-selection, giving the second parameter some meaning. It still omits constraints such as whether baseBranch must already exist in the repository.

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?

The description uses a specific verb and resource: 'selects one repository for the sandbox environment'. It clearly conveys the scope of one repository per sandbox, so the agent won't attempt multi-repo selection. It stops short of contrasting with any sibling tool, but none of the listed siblings handle repository selection, so ambiguity is low.

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?

The definition provides useful operational guidance for how to obtain the ID ('use databaseId from GET /repos as repositoryId'), which steers the agent toward the right value. However, it never states prerequisites or when-not-to-use conditions, such as whether the sandbox must exist first or whether calling this replaces a previously mounted repo. Usage is implied rather than fully scoped.

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