Skip to main content
Glama

clerk.update_user_metadata

Merge metadata fields for a Clerk user. Only the provided metadata keys are updated.

Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.

Returns the updated user summary.

Cost = 8 tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesClerk user id (user_...) whose metadata to update.
public_metadataNoPublic metadata fields to merge. Existing keys not listed are preserved.
unsafe_metadataNoUnsafe metadata fields to merge. Existing keys not listed are preserved.
private_metadataNoPrivate metadata fields to merge. Existing keys not listed are preserved.
clerk_instance_idNoClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
userNoUpdated Clerk user object after the metadata merge.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses the merge semantics (only provided keys updated), the return value (updated user summary), and the instance targeting behavior. While it does not cover permissions or reversibility, it provides meaningful behavioral context beyond the schema.

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 compact and front-loaded with the primary action and key scope ('Merge metadata fields... Only the provided metadata keys are updated'). Every sentence adds value, including the prerequisite call and the return type, with no filler or redundancy.

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?

Given the schema fully documents all parameters and an output schema exists, the description covers the essential human-level context: what the tool does, its merge behavior, the instance selection prerequisite, and the return value. It falls slightly short only in not explicitly relating to sibling tools, though that is more a usage-guideline gap.

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 coverage is 100%, so the baseline is 3. The description only reiterates the clerk_instance_id guidance already present in the schema ('from clerk.get_connected_accounts; omit to use default') and adds no new parameter-level meaning beyond what the property descriptions already provide.

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 description clearly states a specific verb ('Merge') and resource ('metadata fields for a Clerk user'), and explicitly notes that only the provided keys are updated, distinguishing it from the sibling replace_user_metadata. This makes the tool's purpose immediate and unambiguous.

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 clear usage context by instructing to call clerk.get_connected_accounts first and explaining how to use clerk_instance_id versus the default account. However, it does not explicitly name alternatives like clerk.replace_user_metadata or clerk.update_user, nor does it spell out when to choose this tool over them.

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.