Skip to main content
Glama
Netlify MCP Server

Netlify MCP Server

Official
by netlify

netlify-coding-rules

Read-onlyIdempotent

Get required Netlify and serverless coding guidance before creating or editing functions or using Netlify SDKs, ensuring code follows implementation rules.

Instructions

ALWAYS call when writing serverless or Netlify code. required step before creating or editing any type of functions, Netlify sdk/library usage, etc.

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": {
      "creationType": "<creationType>"
    },
    "name": "netlify-coding-rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
referenceNoOptional. Path of one of the skill's reference files (for example "references/migrations.md"), as listed at the end of the main response for that creationType. Omit to get the main skill guidance.
creationTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.7
    • changedInput schema / properties / creationType / enum
      Previous value: -[
      -  "netlify-access-control",
      -  "netlify-agent-runner",
      -  "netlify-ai-gateway",
      -  "netlify-blobs",
      -  "netlify-caching",
      -  "netlify-config",
      -  "netlify-database",
      -  "netlify-deploy",
      -  "netlify-edge-functions",
      -  "netlify-forms",
      -  "netlify-frameworks",
      -  "netlify-functions",
      -  "netlify-identity",
      -  "netlify-image-cdn",
      -  "netlify-mcp-servers",
      -  "serverless",
      -  "edge-functions",
      -  "blobs",
      -  "image-cdn",
      -  "forms",
      -  "db"
      -]New value: +[
      +  "netlify-access-control",
      +  "netlify-agent-runner",
      +  "netlify-ai-gateway",
      +  "netlify-blobs",
      +  "netlify-caching",
      +  "netlify-config",
      +  "netlify-database",
      +  "netlify-deploy",
      +  "netlify-edge-functions",
      +  "netlify-forms",
      +  "netlify-frameworks",
      +  "netlify-functions",
      +  "netlify-identity",
      +  "netlify-image-cdn",
      +  "netlify-mcp-servers",
      +  "netlify-server",
      +  "serverless",
      +  "edge-functions",
      +  "blobs",
      +  "image-cdn",
      +  "forms",
      +  "db"
      +]
  2. Changed2 schema fields changedv1.0.3
    • changedInput schema / properties / creationType / enum
      Previous value: -[
      -  "serverless",
      -  "edge-functions",
      -  "blobs",
      -  "image-cdn",
      -  "forms",
      -  "db"
      -]New value: +[
      +  "netlify-access-control",
      +  "netlify-agent-runner",
      +  "netlify-ai-gateway",
      +  "netlify-blobs",
      +  "netlify-caching",
      +  "netlify-config",
      +  "netlify-database",
      +  "netlify-deploy",
      +  "netlify-edge-functions",
      +  "netlify-forms",
      +  "netlify-frameworks",
      +  "netlify-functions",
      +  "netlify-identity",
      +  "netlify-image-cdn",
      +  "netlify-mcp-servers",
      +  "serverless",
      +  "edge-functions",
      +  "blobs",
      +  "image-cdn",
      +  "forms",
      +  "db"
      +]
    • addedInput schema / properties / reference
      Added value: +{
      +  "description": "Optional. Path of one of the skill's reference files (for example \"references/migrations.md\"), as listed at the end of the main response for that creationType. Omit to get the main skill guidance.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv1.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds the behavioral fact that this is a mandatory prerequisite before code creation, but it does not describe the returned guidance structure or that a main response lists further reference files — that detail only appears in the `reference` parameter description.

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

Conciseness4/5

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

Two short sentences with the imperative constraint front-loaded. Minor waste: 'ALWAYS call' and 'required step' restate the same mandate, and the trailing 'etc.' is imprecise.

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?

For a two-parameter guidance-retrieval tool with no output schema, the essential prerequisite framing and creation-type enumeration are present. The remaining gap is explaining the two-stage retrieval flow (main guidance first, then reference files), which is only half-covered via the `reference` parameter text.

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?

With 50% schema coverage, `reference` is fully documented in the schema while `creationType` has no description at all, only a 23-value enum. The description gestures at what creationType selects ('any type of functions, Netlify sdk/library usage') but adds no guidance on choosing among the overlapping enum values (e.g. netlify-functions vs serverless vs edge-functions). Baseline 3 applies.

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

Purpose3/5

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

The description tells the agent when to call ('when writing serverless or Netlify code') but never plainly states what the tool returns or does — the phrase 'coding rules' only exists in the tool name. It is distinguishable from the reader/updater siblings, but the verb and output are left implicit.

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?

Explicit and emphatic about when to use it: 'ALWAYS call when writing serverless or Netlify code' and 'required step before creating or editing any type of functions, Netlify sdk/library usage.' There is no when-not guidance or named alternative, but the mandatory-prerequisite framing is unambiguous.

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