get_on_page_seo_guide
Access a comprehensive guide to optimize on-page SEO using Open Strategy Partners' methodologies, designed to enhance technical content and product positioning.
Instructions
Get the Open Strategy Partners (OSP) On-Page SEO Optimization Guide.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'get_on_page_seo_guide' tool, decorated with @mcp.tool() which registers it with the MCP server. It reads the content from 'on-page-seo-guide.md' file and returns it wrapped in a success dict, or an error if file not found.@mcp.tool() async def get_on_page_seo_guide() -> dict: """Get the Open Strategy Partners (OSP) On-Page SEO Optimization Guide.""" script_dir = os.path.dirname(os.path.abspath(__file__)) try: with open(os.path.join(script_dir, 'on-page-seo-guide.md'), 'r') as f: content = f.read() return { "success": True, "data": { "content": content } } except FileNotFoundError: return { "success": False, "error": "Required file 'on-page-seo-guide.md' not found in script directory" }