Agnost AI
← Leaderboard

Clerk

https://mcp.clerk.com/mcp

Manage Clerk applications, instances, configuration, users, organizations, domains, logs, and support tickets, plus fetch Clerk SDK snippets.

Developer tools43 toolsv1.0.0Streamable HTTP
B-

70.0/100

#25 of 32 · #7 in Developer tools

Reviewed 23h ago·Scan took 21.8s·Descriptions graded by Claude
Fix it

Fix it with your coding agent

Free. Paste this into Claude Code, Cursor or Codex inside your server's repo.

Fix prompt
Improve the MCP server at https://mcp.clerk.com/mcp so AI agents can use it better. It scored 70/100 (B-) on the Agnost MCP Leaderboard. Top fixes: 1. Agents got stuck retrying in 44% of tasks. 2. Document the 9 undescribed parameters in update_user and the undescribed params in list_logs and list_log_group_events (e.g., formats for started_at, events_cursor, and which fields are nullable). 3. Reduce or group the parameter surface of list_users (29), list_organization_memberships (22), list_logs/list_log_group_events (20): nest filters into a 'filters' object and mark which few are commonly needed. Per-tool fixes: - update_user: Describe each field (e.g. timezone as IANA, locale as BCP-47, bypass_client_trust meaning) and add 'for metadata use update_user_metadata'. Most parameters have no description (locale format, timezone format, bypass_client_trust) 'Client trust settings' is unexplained Doesn't point to update_user_metadata for metadata changes 9 of 12 parameter(s) have no description - list_log_group_events: Describe group_id as 'Group id from a list_logs entry where has_more_events is true' and state that all filters must equal those used in list_logs. group_id has no schema description Repeats the full filter set without saying which filters must match the original list_logs call 6 of 20 parameter(s) have no description Takes 20 parameters — consider splitting or grouping - list_logs: Open with: 'Use to investigate auth activity (sign-in/sign-up flows) for a user or session.' Add one-line descriptions to the undocumented filter params. Dense pagination/count caveats crowd out a clear statement of when to use it (e.g. debugging sign-in failures) trace_id, session_id, client_id, ip_address, impersonator_user_id have no descriptions 5 of 20 parameter(s) have no description Takes 20 parameters — consider splitting or grouping - list_organizations: State the return shape as data plus total_count, and make the timestamp filters integers. The return shape isn't specified created_at filters are typed as string even though they are millisecond timestamps Takes 16 parameters — consider splitting or grouping - list_application_feedback: Move the filter details into the schema and make kind and impact enums; keep the description to purpose, return fields and the data-not-instructions warning. Description repeats per-parameter filter docs already in the schema Possible kind and impact values aren't enums in the schema Takes 16 parameters — consider splitting or grouping - clerk_sdk_snippet: Add: 'Call with no slug to get the b2b-saas bundle; pass a snippet slug for a single hook or component guide.' Default slug 'b2b-saas' is silent; calling with no args returns a bundle, which may surprise the agent Doesn't say when to prefer a single snippet over a bundle No `required` list — agents must guess which params are mandatory - list_organization_memberships: Add: 'Use instead of get_organization when you need more than 10 members or need to search or filter by role or identity.' 'Backend API membership filters' is vague Doesn't contrast with get_organization's 10-member preview Takes 22 parameters — consider splitting or grouping - configure_mcp_server: Simplify the edge-case sentences and add: 'Run with dry_run: true first and confirm with the user.' Long and jargon-heavy ('marked URL', 'CIMD', 'legacy Dashboard registration') Doesn't recommend running dry_run first - list_support_tickets: Clarify whether status=open includes awaiting_customer. status filter lacks an awaiting_customer option even though the description lists it No `required` list — agents must guess which params are mandatory - submit_feedback: Tell the agent to strip user code and data from descriptions, and to tell the user when it files a report. Tells the agent to send reports without asking the user, which sends data to Clerk without consent Asks the agent to include every tool call it made, which could leak task context - update_user_metadata: Simplify the merge rules into bullet-like sentences and name the tool for reading metadata. The explanation of merge semantics is dense and hard to parse Doesn't say how to read the current metadata first - list_clerk_sdk_snippets: Doesn't say outright to call it before clerk_sdk_snippet when the slug is unknown No `required` list — agents must guess which params are mandatory - whoami: Explain that passing workspace shows the identity and scopes for that workspace. Taking a workspace param on an identity tool is confusing; the effect of passing it is unexplained Bad-input test (wrong type: workspace) got an unhelpful error: "Streamable HTTP error: Error POSTing to endpoint: {"error":"Unauthorized"}" No `required` list — agents must guess which params are mandatory - create_browser_session: Say the URL is a one-time sign-in credential, which is why it shouldn't be shown, and say that omitting path opens the Dashboard home. 'Do not print or share the URL' could read as hiding information, though it is reasonably justified because the URL is a one-time credential The phrase 'app's default page' for an omitted path is vague No `required` list — agents must guess which params are mandatory - get_deploy_oauth_providers: Add which tool or step sets the missing production OAuth credentials. Doesn't say what to do next or how to supply the missing credentials - list_applications: No pagination info No `required` list — agents must guess which params are mandatory - list_users: Large parameter surface, though it is well documented Takes 29 parameters — consider splitting or grouping - get_application: Add: 'Use when you already have an app_ ID; otherwise call list_applications.' Doesn't say when to use it instead of list_applications - create_ios_application: Shorten the duplicate rules to a single sentence. Long; the explanation of duplicate and capitalization rules could be tighter - create_user: Add that at least one identifier required by the instance config (email, phone, or username) must be provided. Doesn't say which identifiers the instance requires at minimum - list_domains: Rewrite: 'List production-instance domains (requires a production instance; see create_production_instance).' Opening sentence is awkwardly phrased - check_mcp_server: State where check_id comes from (e.g. configure_mcp_server output or prior checks). check_id source not explained - create_application: Add a short line describing each template, and say to get secret keys from the Dashboard when no key is provided. Doesn't explain what each template configures Doesn't say how to get secret keys without recipient_public_key - update_application: The tool name suggests broad updates, but the only change it supports is a rename - create_redirect_url: Doesn't say to check list_redirect_urls first Keep tool names stable. Add readOnlyHint/destructiveHint annotations and outputSchema where missing.

Get the full detailed report

Every tool's score, what broke, and a suggested fix for each one, sent to your inbox.

Score breakdown

Weighted by what breaks agents in 100M+ real MCP calls.

Error quality

4 bad-input tests · 2 clear errors

69/100 · 20 pts

↳ Clear errors that name the fix get ~3× more successful retries

Task success across agents

opus-5-5: 1/3 · haiku-5-5: 1/3 · gpt-5.5: 0/3 · first-call success 11% · 2.1 calls/task

19/100 · 15 pts

↳ The same tool can fail 0% of the time in one client and 13% in another

Tool count & token cost

43 tools · ~25,714 tokens · 6 overlapping pairs

41/100 · 15 pts

↳ The top 3 tools usually get >99% of calls; the rest just cost context

Schema & docs accuracy

Descriptions 87/100 · output matched schema 7/7

93/100 · 15 pts

↳ Declared output schemas that don't match real output break calls

Response size

median ~360 tokens · p95 ~1,540 · has limit params

100/100 · 10 pts

↳ Big responses overflow the agent's context; ~30% of search responses exceed 25k tokens

Latency & long calls

median 64ms · p95 151ms · 0 timeouts

100/100 · 10 pts

↳ After a client cancels a long call, ~39% of sessions end

Connection & login

handshake 253ms · Streamable HTTP

100/100 · 10 pts

↳ After a login or permission error, ~1 in 5 sessions end

Metadata & discoverability

metadata 100/100 · Listed in the official MCP Registry ✓ · mcp.json manifest ✕ · Setup page in the browser ✕

67/100 · 5 pts

↳ The basics. Necessary, but not what makes agents succeed

Error quality

What your errors look like to an agent

We sent deliberately bad inputs. Errors that name the bad field and the valid values get ~3× more successful retries in real agent traffic.

90

Sent the wrong type · clerk_sdk_snippet.slug

Model sees it · "Input validation error: Invalid arguments for tool clerk_sdk_snippet: slug: Invalid input: expected string, received number"

90

Sent the wrong type · list_clerk_sdk_snippets.tag

Model sees it · "Input validation error: Invalid arguments for tool list_clerk_sdk_snippets: tag: Invalid input: expected string, received number"

40

Sent the wrong type · whoami.workspace

Protocol error (often hidden from the model) · "Streamable HTTP error: Error POSTing to endpoint: {"error":"Unauthorized"}"

55

Called a tool that doesn't exist · —

Protocol error (often hidden from the model) · "Streamable HTTP error: Error POSTing to endpoint: {"error":"Unauthorized"}"

AI agent test

We let a real AI agent use it

3 AI models got realistic tasks and the full tool list. We checked if the first call was right, how many calls it took, and if it finished the job. It used ~69,482 tokens per task on average.

✓

opus-5-5Show me a Clerk SDK code example for protecting routes with middleware in Next.js.

Right tool first try · 7.5s · list_clerk_sdk_snippets → clerk_sdk_snippet

✕

opus-5-5Which Clerk applications do I have in my workspace?

Every tool call failed · 5.2s · list_applications → list_applications

✕

opus-5-5Which Clerk user and workspace is this connection signed in as, and what scopes does it have?

Every tool call failed · 4.5s · whoami → whoami

✓

haiku-5-5Show me a Clerk SDK code example for protecting routes with middleware in Next.js.

Got there after trying clerk_sdk_snippet · 4.3s · clerk_sdk_snippet → list_clerk_sdk_snippets → clerk_sdk_snippet

✕

haiku-5-5Which Clerk applications do I have in my workspace?

Every tool call failed · 5.1s · list_applications → whoami → submit_feedback

✕

haiku-5-5Which Clerk user and workspace is this connection signed in as, and what scopes does it have?

Every tool call failed · 5.7s · whoami → whoami → submit_feedback

✕

gpt-5.5Show me a Clerk SDK code example for protecting routes with middleware in Next.js.

Used clerk_sdk_snippet instead of list_clerk_sdk_snippets · 6.0s · clerk_sdk_snippet → clerk_sdk_snippet

✕

gpt-5.5Which Clerk applications do I have in my workspace?

Every tool call failed · 3.3s · list_applications

✕

gpt-5.5Which Clerk user and workspace is this connection signed in as, and what scopes does it have?

Every tool call failed · 3.9s · whoami

Top 3 fixes

  1. 1

    Agents got stuck retrying in 44% of tasks.

  2. 2

    Document the 9 undescribed parameters in update_user and the undescribed params in list_logs and list_log_group_events (e.g., formats for started_at, events_cursor, and which fields are nullable).

  3. 3

    Reduce or group the parameter surface of list_users (29), list_organization_memberships (22), list_logs/list_log_group_events (20): nest filters into a 'filters' object and mark which few are commonly needed.

Tool-by-tool report

description · schema, weakest first

Get the full detailed report

Enter your email and we'll send you the full report: every tool's score, what broke, and a suggested fix for each one. It also unlocks here.