
mcp pages prompt optimisation
构建基于提示的数学计算系统,支持逐步推理和工具调用。
Repository Info
About This Server
构建基于提示的数学计算系统,支持逐步推理和工具调用。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Project – Math Computation Platform with Tool-Based Prompting
This project demonstrates an optimized prompt-based system for structured problem solving using a Math Agent that leverages step-by-step reasoning and function-based tool usage.
🔍 Objective
The goal of this project is to build and evaluate a structured prompt system that enables a language model to:
Perform math and logic operations using external tools.
Reason explicitly in natural language before invoking tools.
Separate reasoning, computation, and final answer generation.
Handle uncertainty and ambiguous inputs with safe fallbacks.
Maintain traceability through internal self-checks and categorized reasoning types.
🧠 Prompt Structure
Each prompt must guide the agent to:
Start with REASONING: Explain the logic behind each decision in plain English.
Use FUNCTION_CALLS only after reasoning and only one at a time.
Avoid duplicate tool calls with identical parameters.
Return FINAL_ANSWER only after all reasoning and calculations are complete.
Handle errors or ambiguities gracefully using ERROR.
📦 Response Format
{
"reasoning": "Explain why this tool or step is necessary",
"reasoning_type": "e.g. arithmetic, lookup, planning, error_handling",
"action": "FUNCTION_CALL: tool_name|input_values",
"self_check": "Verify that the tool is being used correctly and that the expected output makes sense"
}
Quick Start
Clone the repository
git clone https://github.com/chanthu-nair/mcp-pages-prompt-optimisationInstall dependencies
cd mcp-pages-prompt-optimisation
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.