← Back to Gene Catalog

seo-optimizer

Nativecontent.seo

Optimize content for search engines. Improve keyword usage, meta descriptions, headings, and content structure for better ranking. Use when creating web content, blog posts, or any content intended for search discovery.

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyTypeReqDescription
urlstringOptional URL for context
contentstringPlain text or HTML content to analyze
targetKeywordstringTarget keyword for density and placement checks

Output

PropertyTypeReqDescription
scorenumberSEO score 0-100
issuesarray
wordCountnumberTotal word count
metaAnalysisobject
keywordDensitynumberKeyword density percentage
headingStructureobject
readabilityScorenumberFlesch-Kincaid reading ease 0-100
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "content"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "Optional URL for context"
    },
    "content": {
      "type": "string",
      "description": "Plain text or HTML content to analyze"
    },
    "targetKeyword": {
      "type": "string",
      "description": "Target keyword for density and placement checks"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "score",
    "issues",
    "keywordDensity",
    "wordCount",
    "headingStructure",
    "metaAnalysis",
    "readabilityScore"
  ],
  "properties": {
    "score": {
      "type": "number",
      "description": "SEO score 0-100"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "severity",
          "rule",
          "message",
          "suggestion"
        ],
        "properties": {
          "rule": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "error",
              "warning",
              "info"
            ],
            "type": "string"
          },
          "suggestion": {
            "type": "string"
          }
        }
      }
    },
    "wordCount": {
      "type": "number",
      "description": "Total word count"
    },
    "metaAnalysis": {
      "type": "object",
      "required": [
        "titleLength",
        "hasMetaDescription",
        "descriptionLength"
      ],
      "properties": {
        "titleLength": {
          "type": "number"
        },
        "descriptionLength": {
          "type": "number"
        },
        "hasMetaDescription": {
          "type": "boolean"
        }
      }
    },
    "keywordDensity": {
      "type": "number",
      "description": "Keyword density percentage"
    },
    "headingStructure": {
      "type": "object",
      "required": [
        "h1Count",
        "h2Count",
        "h3Count",
        "hasProperHierarchy"
      ],
      "properties": {
        "h1Count": {
          "type": "number"
        },
        "h2Count": {
          "type": "number"
        },
        "h3Count": {
          "type": "number"
        },
        "hasProperHierarchy": {
          "type": "boolean"
        }
      }
    },
    "readabilityScore": {
      "type": "number",
      "description": "Flesch-Kincaid reading ease 0-100"
    }
  }
}