Skip to main content
Glama

update_user

Update an existing end user (identify by user_email, checked first, or external_id). Only fields you pass change (none at all is 400 NO_FIELDS_TO_UPDATE); metadata replaces the whole object, except referral_code (kept unless you send it) and stripe_account_id (Cred-only: the stored value stays and a value you send is silently dropped). signup_* fields overwrite attribution (use to correct it). 404 USER_NOT_FOUND. To change a wallet use set_user_wallet. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
emailNoNew email
api_keyNoCred API key (optional if set via the x-api-key header)
metadataNoNew metadata (replaces existing)
project_idNoCred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)
signup_urlNoCorrected signup URL (also re-derives signup_host)
user_emailNoCurrent email of the user to update
external_idNoExternal ID of the user to update
signup_hostNoCorrected signup host
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
signup_credit_type_idNoCorrected signup credit type

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.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose a lot: partial-update semantics, whole-object replacement for metadata, the referral_code exception, the silent drop of stripe_account_id on non-Cred accounts, and billing behavior. What it omits is what a successful response returns and whether the update is reversible or requires any specific permission scope, so it stops short of full behavioral coverage for a mutation tool.

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 action and identifier, and every sentence carries operative information about fields, errors, or cost. The nested parentheticals make it dense and slightly harder to scan than it needs to be, but there is no filler.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers identification, partial-update edge cases, error codes, billing, and error-result fields (request_id). An agent has enough to call it correctly and interpret failures.

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 the baseline is 3, and the description earns an increment by adding semantics the schema does not: user_email is checked before external_id, signup_url re-derives signup_host, metadata replaces rather than merges, and stripe_account_id is silently ignored. It does not explain x402_payment or project_id beyond what the schema text already says.

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 ("Update an existing end user") and immediately gives the two supported identifiers with precedence ("user_email, checked first, or external_id"). It also names the sibling that handles a related-but-different operation (set_user_wallet), so the agent can distinguish it without opening a 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 says the tool is for correcting attribution via signup_* fields and routes wallet changes to set_user_wallet instead. It also gives cost/consumption rules (1 CRD per call, charged even on rejection, 429 is free) and the exact failure conditions (400 NO_FIELDS_TO_UPDATE, 404 USER_NOT_FOUND).

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