Skip to main content
Glama
Scalekit MCP Server

Scalekit MCP Server

Official

create_environment_scope

Creates a single permission scope in a Scalekit environment; duplicate names are rejected and a caller OAuth token is required.

Instructions

Create one permission scope in an environment. Use list_environment_scopes to see scopes that already exist. This tool does not create a role. Use create_environment_role for that. Requires the caller OAuth token. A duplicate scope name is rejected.

Input Schema

NameRequiredDescriptionDefault
scopeNameYesPermission scope name. Must be unique in that environment.
descriptionNoHuman-readable explanation of the scope. Empty when omitted.
environmentIdYesScalekit environment id. Format: env_<id>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.1
    • addedInput schema / properties / description / description
      Added value: +"Human-readable explanation of the scope. Empty when omitted."
    • addedInput schema / properties / environmentId / description
      Added value: +"Scalekit environment id. Format: env_<id>."
    • addedInput schema / properties / scopeName / description
      Added value: +"Permission scope name. Must be unique in that environment."
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false), so the bar is lower, yet the description still adds real context: it requires the caller's OAuth token and rejects duplicate scope names. It stops short of describing the failure shape or what resource is returned, so it is strong but not exhaustive.

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?

Four short sentences, front-loaded with the core action, then routing, then prerequisites and error behavior. No filler and no restatement of the tool name.

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?

With no output schema, the description should ideally hint at the return value or the resulting scope identity, which it omits. Everything an agent needs to invoke it correctly — auth requirement, uniqueness rule, sibling routing — is present, so the gap is minor.

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% with 3 parameters, all documented including the env_<id> pattern and the uniqueness constraint on scopeName. The description repeats the uniqueness rule already in the schema but adds no syntax or format detail beyond it, so baseline 3 applies.

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+resource ('Create one permission scope in an environment') and immediately disambiguates from the closest sibling by stating 'This tool does not create a role. Use create_environment_role for that.' An agent can select it correctly without opening either 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?

Explicitly names two alternative routes: list_environment_scopes for inspecting existing scopes and create_environment_role for the adjacent-but-different operation. Both the when-to-use and when-not-to-use cases are stated directly.

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