Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Generate Participant Auto Authentication Code

growsurf_grsf_config_snippet
Read-onlyIdempotent

Generates the HTML head snippet for GrowSurf participant auto-authentication using window.grsfConfig, with optional email and auth hash for live configuration.

Instructions

Generate the HTML code for GrowSurf Participant Auto Authentication using window.grsfConfig. The generated code belongs in <head>, before the GrowSurf Universal Code. With no arguments it returns the commented template with placeholder values. Set enableParticipantAutoAuth: true only when you also pass the participant's email and hash; get the hash from growsurf_participant_auth_hash.

Input Schema

NameRequiredDescriptionDefault
hashNoThe participant's auth hash from `growsurf_participant_auth_hash`. Required when `enableParticipantAutoAuth` is true.
emailNoThe participant's email. Required when `enableParticipantAutoAuth` is true.
campaignIdNo
affiliateJoinNo
useCampaignIdPlaceholderNo
enableParticipantAutoAuthNoOutput a live `window.grsfConfig` block for one participant. Requires `email` and `hash`.
includeAutoAuthCommentHeaderNo

Output Schema

NameRequiredDescriptionDefault
markdownNoThe generated guidance as a markdown document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.19.36
    • addedInput schema / if
      Added value: +{
      +  "properties": {
      +    "enableParticipantAutoAuth": {
      +      "const": true
      +    }
      +  },
      +  "required": [
      +    "enableParticipantAutoAuth"
      +  ]
      +}
    • addedInput schema / properties / email / description
      Added value: +"The participant's email. Required when `enableParticipantAutoAuth` is true."
    • addedInput schema / properties / email / minLength
      Added value: +3
    • addedInput schema / properties / enableParticipantAutoAuth / description
      Added value: +"Output a live `window.grsfConfig` block for one participant. Requires `email` and `hash`."
    • addedInput schema / properties / hash / description
      Added value: +"The participant's auth hash from `growsurf_participant_auth_hash`. Required when `enableParticipantAutoAuth` is true."
    • addedInput schema / properties / hash / minLength
      Added value: +32
    • addedInput schema / then
      Added value: +{
      +  "required": [
      +    "email",
      +    "hash"
      +  ]
      +}
  2. First observedv0.12.2

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely useful context: placement in `<head>` before the Universal Code, the placeholder-template default, and the dependency chain for auto-auth. It does not describe the returned snippet's structure beyond the template case, and an output schema exists anyway.

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?

Four tight sentences, front-loaded with what is generated and where it goes, followed by the no-arg behavior and the conditional requirement. Nothing is redundant or padded.

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?

With annotations covering safety and an output schema covering the return value, the description covers the essentials an agent needs: placement, default behavior, and the auto-auth precondition. The remaining gap is the four undocumented secondary parameters, which could change the generated block.

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 only 43%, so the description must compensate, and it does for the three key parameters (`enableParticipantAutoAuth`, `email`, `hash`), including the conditional requirement. However, `campaignId`, `affiliateJoin`, `useCampaignIdPlaceholder`, and `includeAutoAuthCommentHeader` get no explanation in either structured descriptions or the prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: generate HTML code for GrowSurf Participant Auto Authentication using `window.grsfConfig`. It implicitly separates itself from other snippet generators by naming the target config block, but never explicitly contrasts itself with siblings like `growsurf_embeddable_element_snippet` or `growsurf_client_snippets`.

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?

Clear conditional guidance: set `enableParticipantAutoAuth: true` only when also passing `email` and `hash`, and no-arg calls return a commented template. It also tells the agent where the hash comes from (`growsurf_participant_auth_hash`). It stops short of stating when to pick this tool over the other snippet-generating siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools