Skip to main content
Glama

Spurvik EU AI Act

spurvik_setup_snippet

Read-onlyIdempotent

Return a setup snippet for openai, anthropic, google-genai, vercel-ai-sdk, mastra, openai-agents, or langgraph. Provider clients are wrapped with withSpurvik. The Vercel AI SDK snippet passes spurvikMiddleware to wrapLanguageModel. The Mastra snippet calls withSpurvikMastra. The OpenAI Agents snippet calls withSpurvikModelProvider. The LangGraph snippet calls withSpurvikLangGraph and spurvikInterrupt. The snippet is built from the installed spurvik exports (spurvik or spurvik-sdk, including spurvik/ai, spurvik/langgraph, spurvik/mastra, and spurvik/openai-agents). The disclosure label is a separate React client snippet that imports spurvik/react. riskTier is a sample value. Set your own classification (as provider or deployer); Spurvik does not classify your use case. The SDK logs the call and attaches an HMAC receipt. It does not mark content. Also accepts react, nuxt, sveltekit, astro, python, fastapi, langchain, pydantic-ai (zero-dependency Python 3.10+ helper at https://spurvik.com/r/spurvik_guard.py), dotnet / csharp (SpurvikGuard.cs), go (spurvik_guard.go), php / laravel (SpurvikGuard.php), spring-boot, mistral, azure-openai, bedrock, litellm, shopify (.liquid Online Store 2.0 section), wordpress (plugin .zip & wp_footer), prestashop, shopware, gtm / google-tag-manager (importable GTM container .json), cookiebot / usercentrics, cloudflare, framer, webflow, n8n, make, cursor, claude-code, github-actions, gitlab-ci, bitbucket, pre-commit, annex-iv, well-known, and html. Pass optional domain and locale to prefill 1-click Console signup, readiness report, and white-label links.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "spurvik_setup_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoOptional public domain or HTTPS URL of your app or store (for example, acme.eu). Prefills signup, report, and white-label links.
localeNoOptional EU language code (for example, de, fr, es, it, nl, da, sv) to localize Console signup and report links.
targetYesSDK, framework, backend language, sovereign EU gateway, CMS, workflow, or CI target (for example, openai, anthropic, vercel-ai-sdk, react, nuxt, sveltekit, astro, python, fastapi, langchain, dotnet, go, spring-boot, laravel, php, mistral, azure-openai, bedrock, litellm, shopify, wordpress, prestashop, shopware, gtm, cookiebot, usercentrics, cloudflare, framer, webflow, n8n, make, lovable, cursor, claude-code, github-actions, gitlab-ci, bitbucket, pre-commit, annex-iv, well-known, html).
runtimeNoOptional runtime environment: node, next, vercel, supabase-edge (Deno Edge Functions), or python.
frameworkNoOptional alias for target when a caller passes framework instead of target.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / framework / enum
      Removed value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph",
      -  "python",
      -  "fastapi",
      -  "langchain",
      -  "pydantic-ai",
      -  "shopify",
      -  "wordpress",
      -  "webflow",
      -  "html"
      -]
    • addedInput schema / properties / framework / maxLength
      Added value: +64
    • changedInput schema / properties / runtime / description
      Previous value: -"Optional runtime environment: node, next, vercel, or supabase-edge (Deno Edge Functions)."New value: +"Optional runtime environment: node, next, vercel, supabase-edge (Deno Edge Functions), or python."
    • changedInput schema / properties / target / description
      Previous value: -"SDK, framework, CMS, or builder to generate setup code for (for example, openai, anthropic, vercel-ai-sdk, react, python, fastapi, langchain, shopify, wordpress, gtm, webflow, html; natural aliases like google-tag-manager, lovable, supabase, nextjs, n8n, make, gemini, claude are also accepted at call time)."New value: +"SDK, framework, backend language, sovereign EU gateway, CMS, workflow, or CI target (for example, openai, anthropic, vercel-ai-sdk, react, nuxt, sveltekit, astro, python, fastapi, langchain, dotnet, go, spring-boot, laravel, php, mistral, azure-openai, bedrock, litellm, shopify, wordpress, prestashop, shopware, gtm, cookiebot, usercentrics, cloudflare, framer, webflow, n8n, make, lovable, cursor, claude-code, github-actions, gitlab-ci, bitbucket, pre-commit, annex-iv, well-known, html)."
    • removedInput schema / properties / target / enum
      Removed value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph",
      -  "python",
      -  "fastapi",
      -  "langchain",
      -  "pydantic-ai",
      -  "shopify",
      -  "wordpress",
      -  "webflow",
      -  "html"
      -]
    • addedInput schema / properties / target / maxLength
      Added value: +64
  2. Changed1 schema field changed
    • changedInput schema / properties / target / description
      Previous value: -"SDK, framework, CMS, or builder to generate setup code for (for example, openai, anthropic, vercel-ai-sdk, react, python, fastapi, langchain, shopify, wordpress, webflow, html; natural aliases like lovable, supabase, nextjs, n8n, make, gemini, claude are also accepted at call time)."New value: +"SDK, framework, CMS, or builder to generate setup code for (for example, openai, anthropic, vercel-ai-sdk, react, python, fastapi, langchain, shopify, wordpress, gtm, webflow, html; natural aliases like google-tag-manager, lovable, supabase, nextjs, n8n, make, gemini, claude are also accepted at call time)."
  3. Changed3 schema fields changed
    • addedInput schema / properties / framework / description
      Added value: +"Optional alias for target when a caller passes framework instead of target."
    • addedInput schema / properties / runtime / description
      Added value: +"Optional runtime environment: node, next, vercel, or supabase-edge (Deno Edge Functions)."
    • addedInput schema / properties / target / description
      Added value: +"SDK, framework, CMS, or builder to generate setup code for (for example, openai, anthropic, vercel-ai-sdk, react, python, fastapi, langchain, shopify, wordpress, webflow, html; natural aliases like lovable, supabase, nextjs, n8n, make, gemini, claude are also accepted at call time)."
  4. Changed2 schema fields changed
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Optional public domain or HTTPS URL of your app or store (for example, acme.eu). Prefills signup, report, and white-label links.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Optional EU language code (for example, de, fr, es, it, nl, da, sv) to localize Console signup and report links.",
      +  "enum": [
      +    "en",
      +    "da",
      +    "de",
      +    "fr",
      +    "es",
      +    "nl",
      +    "sv",
      +    "pl",
      +    "it",
      +    "pt",
      +    "fi",
      +    "cs",
      +    "bg",
      +    "el",
      +    "et",
      +    "ga",
      +    "hr",
      +    "hu",
      +    "lt",
      +    "lv",
      +    "mt",
      +    "ro",
      +    "sk",
      +    "sl"
      +  ],
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / framework / enum
      Previous value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph",
      -  "python",
      -  "fastapi",
      -  "langchain",
      -  "pydantic-ai"
      -]New value: +[
      +  "openai",
      +  "anthropic",
      +  "google-genai",
      +  "vercel-ai-sdk",
      +  "mastra",
      +  "openai-agents",
      +  "react",
      +  "langgraph",
      +  "python",
      +  "fastapi",
      +  "langchain",
      +  "pydantic-ai",
      +  "shopify",
      +  "wordpress",
      +  "webflow",
      +  "html"
      +]
    • changedInput schema / properties / target / enum
      Previous value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph",
      -  "python",
      -  "fastapi",
      -  "langchain",
      -  "pydantic-ai"
      -]New value: +[
      +  "openai",
      +  "anthropic",
      +  "google-genai",
      +  "vercel-ai-sdk",
      +  "mastra",
      +  "openai-agents",
      +  "react",
      +  "langgraph",
      +  "python",
      +  "fastapi",
      +  "langchain",
      +  "pydantic-ai",
      +  "shopify",
      +  "wordpress",
      +  "webflow",
      +  "html"
      +]
  6. Changed3 schema fields changed
    • changedInput schema / properties / framework / enum
      Previous value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph"
      -]New value: +[
      +  "openai",
      +  "anthropic",
      +  "google-genai",
      +  "vercel-ai-sdk",
      +  "mastra",
      +  "openai-agents",
      +  "react",
      +  "langgraph",
      +  "python",
      +  "fastapi",
      +  "langchain",
      +  "pydantic-ai"
      +]
    • changedInput schema / properties / runtime / enum
      Previous value: -[
      -  "node",
      -  "next",
      -  "vercel",
      -  "supabase-edge"
      -]New value: +[
      +  "node",
      +  "next",
      +  "vercel",
      +  "supabase-edge",
      +  "python"
      +]
    • changedInput schema / properties / target / enum
      Previous value: -[
      -  "openai",
      -  "anthropic",
      -  "google-genai",
      -  "vercel-ai-sdk",
      -  "mastra",
      -  "openai-agents",
      -  "react",
      -  "langgraph"
      -]New value: +[
      +  "openai",
      +  "anthropic",
      +  "google-genai",
      +  "vercel-ai-sdk",
      +  "mastra",
      +  "openai-agents",
      +  "react",
      +  "langgraph",
      +  "python",
      +  "fastapi",
      +  "langchain",
      +  "pydantic-ai"
      +]
  7. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: the snippet reflects installed package exports, `riskTier` is only a sample value, and the SDK logs the call plus an HMAC receipt without marking content. It also discloses that domain/locale prefill signup and report links, which an agent would not otherwise know. It falls short of 5 because this information is buried in a dense paragraph rather than organized.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded, but the remainder is a run-on block followed by a very long 'Also accepts...' enumeration that substantially duplicates the target examples already in the schema. The framework-specific wiring details (withSpurvikMastra, spurvikInterrupt, etc.) are useful but should be grouped, and the tail list crowds out signal.

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 one required parameter, an enum-constrained locale and runtime, and no output schema, the description supplies enough for correct invocation — including target breadth, sample-value caveat, and prefill behavior. The only gap is that the returned snippet's shape/format is never described, though no output schema exists to cover it.

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 description coverage is 100%, so all five parameters are already documented, including the domain/locale prefill effects and the runtime enum. The description's closing sentence largely restates what the schema says about domain and locale, and its target enumeration duplicates the schema's target examples rather than adding new semantics. Baseline 3 applies.

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 opening sentence states a specific verb and resource — 'Return a setup snippet' — and enumerates the primary targets it serves. This is clearly distinct from siblings such as spurvik_scan_live_url, spurvik_classify_ai_act_risk, or spurvik_explain_receipt, so an agent can route to it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the enumeration of integration targets and by notes like 'The disclosure label is a separate React client snippet' and 'Set your own classification... Spurvik does not classify your use case', which hints at boundaries. However, there is no explicit statement of when to call this versus alternatives or of any prerequisite (e.g., that target must match the user's stack).

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.