get_editing_codes
Retrieve the Open Strategy Partners (OSP) editing codes documentation and usage protocol to ensure accurate text editing and alignment with OSP methodologies.
Instructions
Get the Open Strategy Partners (OSP) editing codes documentation and usage protocol for editing texts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/osp_marketing_tools/server.py:30-48 (handler)The handler function for the 'get_editing_codes' tool, decorated with @mcp.tool() for automatic registration in the FastMCP server. It reads the content of 'codes-llm.md' from the script directory and returns it wrapped in a success dict, or an error if the file is missing.@mcp.tool() async def get_editing_codes() -> dict: """Get the Open Strategy Partners (OSP) editing codes documentation and usage protocol for editing texts.""" script_dir = os.path.dirname(os.path.abspath(__file__)) try: with open(os.path.join(script_dir, 'codes-llm.md'), 'r') as f: content = f.read() return { "success": True, "data": { "content": content } } except FileNotFoundError: return { "success": False, "error": "Required file 'codes-llm.md' not found in script directory" }