We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sriramkreddy10/mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
summarize_model.py•285 B
def run(text: str):
if not text or len(text.strip()) == 0:
return {"error": "No input text provided"}
# Naive summarization: return first sentence (mock logic)
summary = text.split('.')[0] + '.' if '.' in text else text
return {"summary": summary.strip()}