Skip to main content
Glama

seo_generate_code_fix

Generates surgical, framework-aware code fixes (Laravel Blade, Next.js App/Pages, HTML, PHP, Astro, Svelte) including WebMCP discovery link injection with unified diff preview. Set applyDirectly to true to write changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoNew or updated title tag.
filePathYesPath to the source file to modify.
canonicalUrlNoCanonical URL.
jsonLdSchemaNoSchema.org JSON-LD object to inject.
applyDirectlyNoWhether to write changes directly to disk (default: false).
webMcpEndpointNoWebMCP endpoint URL to inject into HTML <head> via <link rel="mcp-server" /> (e.g. /mcp or /api/mcp).
metaDescriptionNoNew or updated meta description.
addWebMcpDiscoveryNoWhether to inject standard <link rel="mcp-server" href="/mcp" /> tag.

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are present, so the description carries the burden of behavioral disclosure. It does disclose the most important behavioral trait: by default it appears to produce a 'unified diff preview', and actual writes only happen when applyDirectly is set to true. It also reveals that WebMCP discovery link injection is part of the generated fix, giving the agent a clear model of what the tool changes and when to expect destructive side effects.

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?

The description is compact: two sentences, with the primary action and scope front-loaded before the framework list and write behavior. The framework list is somewhat long but directly relevant to helping the agent understand supported targets. No fluff or repeated schema content dominates the description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with no output schema and no annotations, the description should explain more about the expected return value and how this fits with related tools like seo_validate_code_fix. It does cover the diff-preview and opt-in write behavior, which is essential context, but it omits workflow context such as whether generated fixes should be validated after generation or how the diff is returned. This is adequate but leaves clear gaps for a complex tool.

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 the baseline is 3 because the schema already documents all 8 parameters. The description adds high-level context about framework awareness and WebMCP injection, but it does not enrich individual parameter semantics beyond what the schema already provides. It mostly restates concepts like webMcpEndpoint/addWebMcpDiscovery and applyDirectly in aggregate terms.

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 description leads with a specific verb and resource: 'Generates surgical, framework-aware code fixes', listing concrete target frameworks (Laravel Blade, Next.js, HTML, PHP, Astro, Svelte). It clearly distinguishes itself from the sibling tools, especially seo_validate_code_fix, by making generation the core action. The WebMCP discovery-link injection is also called out as a specific capability.

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

Usage Guidelines2/5

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

The description gives no guidance on when to prefer this tool over alternatives such as seo_validate_code_fix or seo_test_web_mcp. The only operational hint is 'Set applyDirectly to true to write changes', which addresses how to invoke behavior rather than when to select the tool. An agent is left to infer the appropriate context without any explicit routing or exclusion criteria.

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.

TDQS

B3.4/5.0
Disambiguation3/5

Most audit tools target distinct SEO dimensions, but several overlap: seo_audit_technical, seo_audit_robots_and_sitemap, and seo_audit_sitemap_multipage all involve robots.txt, sitemaps, and header checks. The descriptions help, but an agent could easily misselect between these related tools.

Naming Consistency5/5

All tools follow a consistent seo_ prefix with clear verb_noun snake_case naming: audit_, crawl_, discover_, generate_, suggest_, test_, validate_. There is no mixing of conventions or vague generic verbs.

Tool Count3/5

With 21 tools, the server sits in the 16-25 'heavy' range. The broad SEO scope justifies many of them, but the large number of overlapping audit variants makes the set feel slightly bloated.

Completeness4/5

The server covers the SEO lifecycle well: discovery, crawling, dimension-specific audits, full audits, code fixes, sitemap/robots generation, and validation. Minor gaps such as dedicated backlink or mobile usability audits exist, and the '8-dimension' full audit claim does not align with the 12 distinct audit tools.

Resources