Clerk SDK snippet
clerk_sdk_snippetGet Clerk SDK code snippets and patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | SDK snippet slug (e.g. "use-user", "use-auth") OR bundle name (e.g. "b2b-saas", "organizations"). | b2b-saas |
clerk_sdk_snippetGet Clerk SDK code snippets and patterns.
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | SDK snippet slug (e.g. "use-user", "use-auth") OR bundle name (e.g. "b2b-saas", "organizations"). | b2b-saas |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"Input schema / additionalPropertiesRemoved value: -falseDoes the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint annotation already signals a safe read operation, and the description's 'Get' wording is consistent with that. The description adds only the vague notion of 'patterns' as part of the output, but does not describe output format, defaults, or any other runtime behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence with no filler, making it easy to scan. It is concise, though it could have used the available space to add sibling differentiation or usage guidance.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-optional-parameter read-only lookup, the schema and readOnlyHint cover much of the needed context. However, the lack of any description of return content, fallback behavior when slug is omitted, or relationship to list_clerk_sdk_snippets leaves a moderate gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents the slug parameter, including examples and the distinction between snippet slugs and bundle names. The description itself adds no additional parameter meaning beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a clear verb and resource: 'Get Clerk SDK code snippets and patterns.' It is not a tautology, but it does not distinguish this tool from its sibling list_clerk_sdk_snippets, so there is no explicit differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given about when to use this tool versus list_clerk_sdk_snippets. The schema explains the slug parameter, but the description itself provides no context about when a specific snippet lookup is appropriate or when listing is better.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
The two tools have clearly distinct purposes: one lists available snippets, the other retrieves a specific snippet. No overlap or ambiguity exists.
Naming is inconsistent: 'clerk_sdk_snippet' is noun-only with no verb, while 'list_clerk_sdk_snippets' uses a verb-first pattern. This mixed convention violates a consistent verb_noun style.
With only 2 tools, the surface is borderline thin for a snippet server, but it covers the essential list-and-get workflow, making it acceptable for a read-only utility.
The server provides both enumeration and retrieval, covering the core use case of obtaining SDK snippets. A search or filter-by-name tool would be a minor addition, but the tag filter on the list tool fills the gap reasonably.