Skip to main content
Glama

Get DRep ID

cardano_governance_drep_id
Read-onlyIdempotent

Extract a Cardano DRep ID from a DRep verification key file, returning it in bech32 or hex format for governance identification.

Instructions

Get the DRep ID from a verification key file.

Args:

  • drep_verification_key_file (string): Path to DRep verification key file

  • output_format (string, optional): Output format: "bech32" (default) or "hex"

Returns: The DRep ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_formatNoOutput formatbech32
drep_verification_key_fileYesPath to DRep verification key file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds nothing beyond that profile — no file-not-found behavior, no error handling, no note that the key is only read locally.

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?

The one-line purpose is front-loaded and the arg list is compact. The Args and Returns blocks largely duplicate the schema and title, which is minor redundancy but not bloat.

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 simple two-parameter read tool with complete annotations and no output schema, the definition covers the essential facts: input file, optional format, and that a DRep ID is returned. Only the prerequisite chain to key generation is unstated.

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 both parameters are documented in the schema, including the enum and default for output_format. The description merely restates the same parameter text (including the bech32/hex enum) without adding format examples or constraints, so baseline 3 applies.

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 (DRep ID) plus the input source (verification key file), so the operation is unambiguous. It does not differentiate itself from nearby siblings such as cardano_governance_drep_key_gen or cardano_governance_drep_registration_certificate, which also operate on DRep keys.

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 never says when to use this tool versus alternatives, nor does it state the prerequisite that a DRep verification key file must already exist (e.g., produced by cardano_governance_drep_key_gen). Usage is only inferable from the parameter name.

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