Skip to main content
Glama

github_agents_add_selected_repo_to_org_variable

Idempotent

Adds a selected repository to an organization variable using the org, variable name, and repository ID.

Instructions

Add selected repository to an organization variable

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": {
      "org": "<org>",
      "name": "<name>",
      "repository_id": "<repository_id>"
    },
    "name": "github_agents_add_selected_repo_to_org_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgYesorg
nameYesname
repository_idYesrepository_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and openWorldHint=true, so the description contributes nothing regarding safety, repeat-call behavior, or network scope. It also omits the mutation-relevant context an agent would want: required admin permissions, what happens if the repo is already selected, and whether the variable must already exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no filler, so nothing is wasted, but that brevity reflects under-specification rather than tight editing. There is no front-loaded scope statement or disambiguating clause.

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?

This is a mutating, org-level, open-world operation with three required parameters, no output schema, and no annotation coverage of permissions or side effects. The description gives an agent nothing about preconditions, permission requirements, or the effect on the variable's existing selected-repository list, leaving it inadequate for the tool's complexity.

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 description coverage is 100%, so the baseline of 3 applies. In practice the schema descriptions merely echo the parameter names ('org', 'name', 'repository_id'), and the description adds no clarification of format, whether 'name' is the variable name versus a repo name, or accepted ID formats.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb ('Add') and a resource ('selected repository to an organization variable'), so the basic action is recoverable. However, it is essentially a humanized restatement of the tool name and does nothing to distinguish it from near-identical siblings such as github_actions_add_selected_repo_to_org_variable or github_agents_add_selected_repo_to_org_secret, which differ only by product scope and resource type.

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?

There is no when-to-use guidance, no mention of the alternative set_selected_repos_for_org_variable sibling, and no note on when to add a single repo versus replacing the whole list. The agent must infer all routing decisions from the tool name alone.

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

Deploy Server

Other Tools