Skip to main content
Glama

github_agents_get_repo_variable

Read-only

Fetch a repository variable using owner, repository, and variable name to retrieve its configured value for GitHub Actions workflows.

Instructions

Get a repository 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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "name": "<name>"
    },
    "name": "github_agents_get_repo_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesname
repoYesrepo
ownerYesowner

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description contributes nothing further such as whether the variable value is masked, what a missing variable looks like, or any permission requirements for reading repo variables.

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?

Four words, front-loaded and free of waste, but the brevity comes from omission rather than compression — there is no substantive content to structure.

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?

For a simple read-only getter this is thin: the agent learns nothing about the return shape (no output schema exists), error behavior for a nonexistent variable, or how this differs from the org-variable and secret getters in the same family.

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% and all three parameters (owner, repo, name) are required and typed, so the schema carries the load; the description adds no meaning beyond it. Baseline 3 applies.

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

Purpose2/5

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

"Get a repository variable" restates the tool name (github_agents_get_repo_variable) almost word for word, adding no scope, no distinction from github_agents_get_org_variable, and no hint of what identifies the variable beyond its name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/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 when not to use it, and no pointer to the sibling alternatives (get_org_variable, list_repo_variables, get_repo_secret) that an agent could easily confuse this with.

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