Skip to main content
Glama

DC Hub: Data Center, Energy & Power Grid Intelligence

Get API Key

get_api_key

Use this when the user wants more DC Hub data center data than keyless allows, or asks for a key; no key is needed to start. DATA USE: the optional email, used to make the key recoverable and send its weekly lookup summary. DC Hub keeps it and never sells it or shares it for anyone else’s use (https://dchub.cloud/privacy). Run only when your human asks; confirm the email with them first. Mints a key and returns it plus connect_url, a connector URL with the key embedded (the only thing hosted chat clients keep). WHAT AN EMAIL KEEPS: the key, with its saved shortlists, alerts and tracked changes (get_changes), for the next chat; fuller market answers; a weekly summary of what your key looked up (unsubscribe anytime); and recovery (recover_my_key re-sends a lost key to that inbox). Ask the user for an email first; pass it only if they typed it. Save and reuse the key (lost one: recover_my_key); don't re-mint. Then ask the real question (execute_plan for multi-step). If a call was answered with a sign-in challenge (401 WWW-Authenticate), prefer signing in: that identity persists, but a human must finish it in a browser. For multi-step data center or energy questions, start with execute_plan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoOptional owner email to make the key recoverable across sessions; use only an address your human explicitly gave and confirmed. DC Hub keeps it and never sells or shares it
marketNoOptional market slug to follow with the email, e.g. northern-virginia: the same call follows its daily changes
client_nameNoYour agent/app name for attribution, e.g. "Claude Desktop" or "acme-siting-bot"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), it explains that the call mints a new key each time, what the email enables and retains (recovery, saved shortlists, weekly summary), the privacy stance, and that connect_url is the only artifact hosted chat clients keep. It also discloses the 401 WWW-Authenticate fallback and that a human must finish sign-in in a browser.

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?

Content is relevant but undereconomical: the core action ("Mints a key") does not appear until the fourth sentence, after privacy and data-use material, and the email instruction is repeated ("confirm the email with them first" and "Ask the user for an email first; pass it only if they typed it"). The all-caps labels help scanning but several clauses could be tightened without losing instruction.

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 key-minting tool with an output schema covering key and connect_url, the definition covers prerequisites, downstream persistence, recovery, and the auth-challenge path. It omits anything about key lifetime, rate limits, or per-tier quotas, which would matter before an agent re-mints or fans out calls.

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%, so the baseline is 3, and the description goes beyond it by explaining the purpose of each field: email makes the key recoverable and powers the weekly summary; market follows that market's daily changes; client_name is for attribution. It does not add format or validation detail beyond the schema, so not a 5.

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?

The description states a specific verb and resource: "Mints a key and returns it plus connect_url," and distinguishes it from recover_my_key (lost key recovery) and execute_plan (multi-step questions). An agent can identify the operation and its siblings without opening a schema.

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?

It gives explicit when-to-use (more data than keyless allows, or the user asks for a key), when-not ("Run only when your human asks"; don't re-mint a saved key), prerequisites (ask for and confirm the email first), and alternatives (recover_my_key for a lost key, execute_plan for multi-step questions, sign-in flow for a 401 challenge).

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.

Resources