We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrugankpednekar/mcp-optimizer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
nl_parser.py•418 B
from __future__ import annotations
from crewai_tools import BaseTool
from ..solvers.lp.parser import parse_nl_to_lp
class NaturalLanguageParserTool(BaseTool):
name = "parse_lp_specification"
description = (
"Parse a compact natural language optimisation prompt into LPModel JSON."
)
def _run(self, spec: str) -> dict:
model = parse_nl_to_lp(spec)
return model.model_dump()