Skip to main content
Glama
Scalekit MCP Server

Scalekit MCP Server

Official

get_environment_credentials

Read-onlyIdempotent

Read an environment's API client ID, URL, and secret suffix as a .env block. Requires OAuth token; client secret value is not returned.

Instructions

Read the API client id, environment URL, and secret suffix for one environment, as a .env block. Use get_environment_details for the environment name and domain, not the client id. Requires the caller OAuth token. The client secret value is not returned. The dashboard shows that secret.

Input Schema

NameRequiredDescriptionDefault
environmentIdYesScalekit environment id. Format: env_<id>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • addedInput schema / properties / environmentId / description
      Added value: +"Scalekit environment id. Format: env_<id>."
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark this as a safe read, but the description adds material behavioral context beyond them: it requires the caller's OAuth token, it explicitly states the client secret value is NOT returned (a key expectation-setter), and it points the agent to the dashboard for that secret. This is exactly the kind of disclosure a read-credentials tool needs.

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?

Four short sentences, each earning its place, led by the core action and followed by routing, auth, and the secret caveat. No filler, and the most important information is front-loaded.

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?

With no output schema, the description must convey return values, and it does (client id, env URL, secret suffix as a .env block) while also flagging what is not returned and the auth requirement. Nothing an agent needs to call this correctly is missing.

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 the single environmentId parameter is fully documented with its env_<id> format, so the schema carries the load. The description adds no syntax or format detail beyond what the schema already provides, making the baseline of 3 appropriate.

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?

States a specific verb (Read) and enumerates the exact resources returned (API client id, environment URL, secret suffix) plus the output format (.env block). It explicitly distinguishes itself from get_environment_details by naming what that sibling returns instead (environment name and domain, not the client id).

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

Usage Guidelines4/5

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

Names the alternative (get_environment_details) and the condition that selects it, and adds a prerequisite (caller OAuth token). It stops short of a full when/when-not statement for this tool itself, but the routing guidance is clear.

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