get_on_page_seo_guide
Access the Open Strategy Partners On-Page SEO Optimization Guide to implement SEO best practices for technical content and product positioning.
Instructions
Get the Open Strategy Partners (OSP) On-Page SEO Optimization Guide.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_on_page_seo_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler function for the 'get_on_page_seo_guide' tool. It reads the content of 'on-page-seo-guide.md' from the script directory and returns it wrapped in a success dict, or an error if the file is missing. The @mcp.tool() decorator registers it as an MCP tool.
@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" }