Skip to main content
Glama

Create a client key

create_client_key

Create a public client key for one environment, for browser and mobile SDKs (react, react-native, ios, android, browser). It's safe in app code. Each environment needs its own. Server SDKs need a secret server key instead, which only an admin can create in the Flagbearer dashboard.

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": {
      "applicationId": "<applicationId>",
      "environment": "<environment>"
    },
    "name": "create_client_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoClient key
environmentYes
applicationIdYes

Output Schema

NameRequiredDescriptionDefault
clientKeyYes
environmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key security property — the key is public and 'safe in app code' — plus the environment-scoping rule and the admin-only path for server keys. It says nothing about required permissions for this call, idempotency or behavior when a key already exists for an environment, or rate limits, which matter for a credential-minting mutation.

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, front-loaded with the core action before the platform list and the server-key caveat. Nothing is padding, though the parenthetical platform list is slightly verbose relative to the alternative phrasing available.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description covers the conceptual model (public vs secret, per-environment keys). For a credential-creation tool with zero annotations, however, it leaves out permission requirements, duplicate-key behavior, and any parameter explanation — the agent knows what the tool is for but not how to fill the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate — and it largely does not. 'For one environment' loosely hints at the environment parameter, but applicationId (required, with a numeric-ID pattern) and name (optional, defaults to 'Client key', max 100 chars) are never explained or even mentioned.

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 and resource ('Create a public client key') and constrains scope ('for one environment'), then enumerates the target SDK platforms (react, react-native, ios, android, browser). This cleanly separates it from secret server keys and from the other create_* siblings.

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?

Gives the selecting condition clearly: use this for browser/mobile SDKs, and use a secret server key for server SDKs ('which only an admin can create in the Flagbearer dashboard'). It also notes 'Each environment needs its own', implying one call per environment. It does not name a sibling tool as the alternative, since the alternative is a dashboard action, but the routing guidance is unambiguous.

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