Skip to main content
Glama

Argocd Get Repository Refs

argocd_get_repository_refs
Read-onlyIdempotent

Get a repository's branches and tags with paging and counts to inspect available Git refs for Argo CD applications.

Instructions

Get a repository's branches and tags, each paged separately with its own counts.

Input Schema

NameRequiredDescriptionDefault
repoYesRepository URL
limitNoMax branches/tags per list (1-500)
offsetNoResult offset for paging
app_projectNoProject scope
force_refreshNoBypass the cache

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is covered. The description adds a genuinely useful behavioral detail beyond the annotations and schema: branches and tags are paged independently, each with its own counts, which changes how an agent should drive limit/offset.

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?

One sentence, front-loaded with the verb and resource, and the non-obvious paging nuance is attached to it. Nothing is wasted and nothing essential is buried.

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 read-only, annotated tool with no output schema, the description covers purpose and the key paging behavior. It omits any indication of the response shape (e.g. whether counts are totals or page-local) and any permission/auth context, but these are minor omissions here.

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 description coverage is 100%, so the baseline is 3, and the description earns an extra point by clarifying that the paging window applies separately to the branch list and the tag list. It adds no guidance on app_project scoping or force_refresh caching, which are covered only by the schema.

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?

States a specific verb (get) and resource (a repository's branches and tags), which separates it from sibling listing tools like argocd_list_repositories or argocd_list_repository_apps. It does not explicitly name a sibling, so it stops just short of a 5.

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?

The description says what is returned but gives no when-to-use guidance, no prerequisites (e.g. that repo must be registered in Argo CD), and names no alternatives for retrieving revision information. The agent must infer the context entirely.

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