get_editing_codes
Retrieve documentation and protocols for editing texts using Open Strategy Partners methodologies to maintain consistent content standards.
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-47 (handler)The handler function for the 'get_editing_codes' tool. It is decorated with @mcp.tool() which also serves as the registration. The function reads the content of 'codes-llm.md' file 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" }