Skip to main content
Glama

Direbase

改善コード

get_fix_code

SEO診断の項目の改善コード(貼り付けるHTML・JSON-LDなど)を、点数への影響が大きい順に返す(AIOの項目のコードは diagnose_aio の codeSnippet にある)。ids を渡すと選んだ項目だけ返す(コードが無い項目とプランの件数の上限の外は missingIds に入る)。回数は使わない。使うときは、ファイルを直す前に直す案をユーザーに見せて承認を得る。 / Get fix code ordered by impact. Pass ids to get only the chosen items (ids without code or beyond the plan limit are listed in missingIds). Does not use a monthly check. Show the user a fix plan and get approval before editing any file.

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": {
      "url": "<url>"
    },
    "name": "get_fix_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo直す項目の id(diagnose_seo の一覧の id)。選んだ項目だけ返す。全部直すときは省く / Check ids to fix (from the diagnose_seo list). Omit to get all.
urlYes診断する公開URL(http:// または https://)/ Public URL to analyze
localeNo診断するページの言語(既定 ja)。タイトルなどの文字数の基準もこれで決まるので、日本語のページは ja、英語のページは en にする。ユーザーとの会話の言語で選ばない / Language of the analyzed page (default ja). It also sets the length standards, so use ja for Japanese pages and en for English pages, regardless of the conversation language.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that items without code or beyond the plan's item limit come back in missingIds, that no monthly check quota is consumed, and that AIO codes live elsewhere. It does not describe whether the returned code is a single blob or per-item entries, but the missingIds disclosure and quota note are the behaviors an agent most needs.

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?

Each language version is front-loaded with the return behavior, then the ids semantics, then the approval workflow. The full bilingual duplication doubles the length, which is defensible for a locale-sensitive tool but is redundant for an agent reading both halves.

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

Completeness5/5

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

No output schema exists, yet the description tells the agent what comes back (paste-ready code, impact-ordered), how partial failures are reported (missingIds), quota implications, and the required approval step before acting on the output. For a three-parameter read tool this covers everything needed to call it and use the result safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning for ids: omitting it returns everything, and unresolvable or over-limit ids are surfaced in missingIds rather than failing. The url and locale parameters get no extra prose, though their schema descriptions are already thorough.

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?

States a specific verb and resource ('return fix code for SEO diagnostic items'), plus the ordering rule (impact descending) and the content type (HTML/JSON-LD to paste). It also explicitly routes the AIO-item codes to diagnose_aio's codeSnippet, which separates it from a sibling by name.

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?

Gives a concrete workflow condition: show the user a fix plan and get approval before editing any file. It also explains the ids-filter path and points at diagnose_aio for AIO code. What is missing is an explicit statement that diagnose_seo should be run first to obtain the ids, which is only implied by the schema's 'from the diagnose_seo list' note.

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.

Resources