Skip to main content
Glama

create_user

Create an end user, or return/update the existing one (email-first lookup, then external_id, so no duplicates). Returns created: true for a new user. Signup attribution is first-touch and optional: signup_url (else the connection's x-app-origin header) is recorded on a new user, or on an existing user that has none. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.

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": {
      "external_id": "<external_id>"
    },
    "name": "create_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name
emailNoUser email
api_keyNoCred API key (optional if set via the x-api-key header)
metadataNoArbitrary metadata; stripe_account_id is Cred-only: a value you send is silently dropped
project_idNoCred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)
signup_urlNoApp/page URL the user signed up from, e.g. https://app1.example.com/signup
external_idYesYour user ID
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
wallet_addressNo0x EVM address to record as asserted (not verified)
signup_credit_type_idNoCredit type the user signed up for (cross-app attribution)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Cred project ID (optional; the API key already identifies the project)"New value: +"Cred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: dedupe lookup order, the 'created: true' signal for new users, first-touch attribution rules including the x-app-origin header fallback, a credit cost that is charged even on rejection with the 429 exception, and request_id in errors. It also warns that stripe_account_id in metadata is silently dropped.

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?

Front-loaded with the core action and dedupe order, then layered detail. Every sentence carries substance, though the parenthetical-heavy packing (cost, rate-limit exception, support quoting) is dense enough that an agent must read carefully.

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?

For a 10-parameter mutation tool with no annotations and no output schema, the description supplies the missing pieces: return signal, cost model, failure behavior, and support escalation. An agent has enough to call it correctly and interpret the result.

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 baseline is 3, but the description adds real meaning beyond the schema: the signup_url fallback to the connection's x-app-origin header and the first-touch recording rule. Cost and error semantics are also surfaced, though the other nine parameters are left to the schema.

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 an end user') plus the non-obvious upsert scope ('or return/update the existing one'). The lookup precedence (email-first, then external_id) makes it clearly distinguishable from sibling update_user and bulk_create_users.

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?

Explains when the tool creates versus returns/updates an existing user, and when signup_url attribution applies, which effectively tells the agent this is safe to call idempotently. It stops short of naming an explicit alternative or exclusion (e.g. 'use update_user when the user already exists and you do not want a create attempt').

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