Skip to main content
Glama

Get rpk Command

get_rpk_command
Read-only

Look up one rpk CLI command by its full name (for example 'rpk topic create') and return its usage, help text, flags with types and defaults, aliases, subcommands, platform and Redpanda Cloud scoping, the plugin and release it ships with, and the docs page URL. Deterministic: it reads the published rpk command tree for the requested docs version (the same data the rpk reference pages are rendered from), so a command that does not exist returns found=false with close-name suggestions instead of a guess, and no LLM or search is involved. The name may omit the leading 'rpk', use command aliases at any level ('rpk topic ls', 'rpk sr schema list'), or be the page name ('rpk-topic-create'). A deprecated command returns its deprecation note and replacement, even when it is hidden and not found. Use this before ask_redpanda_question for any question about a specific rpk command's flags, defaults, or existence in a release. To find commands by keyword, use list_rpk_commands.

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

Input Schema

NameRequiredDescriptionDefault
nameYesFull command name, e.g. 'rpk topic create' or 'rpk cluster health'. Flags are ignored.
contextNoOptional. In one concise sentence (third person), describe what the user is trying to accomplish with this request. Do not include credentials, tokens, personal data, or verbatim secrets.
versionNoDocs version as its URL spells it ('26.1'), 'current' for the latest release, or a Redpanda release tag ('v26.2.2'). Omit for the latest release. An unknown value returns found=false with the list of published versions.
session_goalNoOptional. In one concise sentence (third person), the overall goal of this session: what the user is trying to get done, not just this call. Send the same goal on every call in the session, and update it only if the goal changes. Do not include credentials, tokens, personal data, or verbatim secrets.

Output Schema

NameRequiredDescriptionDefault
nameNo
noteNoHow the version was interpreted, when not literally.
errorNoSet when the call was not answered: 'anonymous_quota_exhausted' or 'data_unavailable'.
foundNoAbsent only when `error` is set.
limitNoQuota refusal only.
reasonNoWhy found is false.
commandNo
datasetNo
messageNo
resets_atNoQuota refusal only.
deprecatedNoSet when found is false because the command is deprecated and hidden from the tree.
deprecationNo
matched_viaNo
sign_in_urlNoQuota refusal only.
suggestionsNoClose command names when not found; for a deprecated command, its replacements first.
did_you_meanNoSet when not found and the name is a likely typo of exactly one command.
valid_versionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Full command name, e.g. 'rpk topic create' or 'rpk cluster health'."New value: +"Full command name, e.g. 'rpk topic create' or 'rpk cluster health'. Flags are ignored."
    • addedOutput schema / properties / did_you_mean
      Added value: +{
      +  "description": "Set when not found and the name is a likely typo of exactly one command.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / suggestions / description
      Previous value: -"Close command names, when not found."New value: +"Close command names when not found; for a deprecated command, its replacements first."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description still adds substantial behavioral context beyond them: the lookup is deterministic against the published command tree with no LLM or search, a missing command returns found=false with close-name suggestions rather than a guess, and deprecated commands return a deprecation note and replacement even when hidden. That is exactly the failure-mode information an agent needs to trust and interpret the result.

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?

Front-loaded with purpose and payload, then determinism, then accepted name forms, then routing guidance — a sensible order with no filler. The determinism sentence is somewhat dense and packs multiple clauses, but each clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be spelled out, yet the description still signals the key result fields (found, suggestions, deprecation note). For a single-lookup tool with four fully documented parameters and full annotation coverage, nothing an agent needs to call or interpret it correctly is missing.

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% and the schema already documents each parameter including version formats, so the baseline is 3. The description earns an extra point by documenting accepted input shapes for 'name' that the schema does not: omitting the leading 'rpk', using aliases at any level ('rpk topic ls'), or passing the page name ('rpk-topic-create').

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?

Opens with a specific verb and resource ('Look up one rpk CLI command by its full name') and immediately enumerates what comes back (usage, help text, flags with types and defaults, aliases, subcommands, scoping, plugin/release, docs URL). The singular-command scope cleanly separates it from list_rpk_commands, which is named explicitly.

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

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordering rule ('Use this before ask_redpanda_question for any question about a specific rpk command's flags, defaults, or existence in a release') and an explicit alternative for a different intent ('To find commands by keyword, use list_rpk_commands'). Both the when and the when-not are stated, not inferred.

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.