Skip to main content
Glama
Scalekit MCP Server

Scalekit MCP Server

Official

create_mcp_session_token

Create a 6-hour session token for the signed-in user and one virtual MCP server, returning the token, expiry, and MCP URL. Requires an OAuth token and active connected accounts for DIRECT servers.

Instructions

Create a 6-hour session token for the signed-in user, for one virtual MCP server. The token is always issued for you, identified by a short hash of your user ID, and cannot be created for anyone else. For a DIRECT server, every connection in it needs an active connected account for that identifier first, or the call fails. Returns the token, its expiry and the MCP URL it works on. Treat the token as a secret. Requires the caller OAuth token.

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": {
      "environmentId": "<environmentId>",
      "virtualMcpServerId": "<virtualMcpServerId>"
    },
    "name": "create_mcp_session_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
accessLevelNoAccess level written into the token. Default FULL.FULL
environmentIdYesScalekit environment id. Format: env_<id>.
virtualMcpServerIdYesVirtual MCP server ID (cfg_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.3

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses the token lifetime (6 hours), the immutable subject binding ('always issued for you... cannot be created for anyone else'), the DIRECT-server precondition that causes failure, the return payload (token, expiry, MCP URL), and the security handling instruction ('Treat the token as a secret'). That is substantive behavioral context the annotations cannot express.

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?

The description is front-loaded with the core action and duration, then layers preconditions, return shape, security note and auth requirement in descending importance. Each sentence carries distinct information; none restates the name or the schema.

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?

Although there is no output schema, the description enumerates the return values (token, expiry, MCP URL), and it covers the failure mode, the secret-handling expectation and the caller authentication requirement. For a 3-parameter creation tool, nothing an agent needs to invoke it safely 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%, so environmentId, virtualMcpServerId and accessLevel are already documented in the schema, making 3 the baseline. The description adds no meaning about the accessLevel enum (FULL vs READ_ONLY) or its effect on the issued token, which is the one parameter whose semantics could have benefited from narrative explanation.

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 opening sentence names a specific verb ('Create'), a specific resource ('6-hour session token'), the subject ('signed-in user'), and the scope ('one virtual MCP server'). This is clearly distinct from the sibling creation tools such as create_virtual_mcp_server or create_connected_account_magic_link, which create different resource types.

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?

The description gives a clear precondition for use: for a DIRECT server every connection must already have an active connected account for the caller's identifier, or the call fails. It also states the caller OAuth token requirement. It does not name an alternative tool for cases where the precondition is unmet, so it stops short of full when/when-not routing.

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