Skip to main content
Glama

derivation_prepare_for_optimization

Convert derived symbolic formulas into optimization solver input format, enabling optimal solution search with tools like USolver.

Instructions

    準備推導結果給優化求解器(如 USolver)

    將 NSForge 推導的符號公式轉換為優化求解器可用的格式。

    工作流程:
    1. NSForge 推導修正後的公式(考慮領域知識)
    2. 調用此工具取得優化器輸入格式
    3. 送給 USolver 等優化器找最優解

    Returns:
        優化器輸入資料

    Example:
        # 在 NSForge 完成推導後
        derivation_prepare_for_optimization()
        → {
            "function_str": "dose/15.875 * exp(-0.476*t/15.875)",
            "variables": ["dose", "t"],
            "parameters": {"CL": 0.476, "V1": 15.875},
            "suggested_constraints": [
                "dose >= 0.01",
                "dose <= 0.10",
                "t >= 0"
            ],
            "usolver_template": "..."
          }
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the conversion and return format but does not disclose whether the operation has side effects, requires an active session, or has any prerequisites or error conditions. This lack of behavioral caveats is a significant gap for a tool with no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose, a numbered workflow, a Returns line, and a detailed example. It is front-loaded and efficient, though the example is somewhat elaborate. Overall, it is concise and well-organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description offers a detailed example of the return object and situates the tool in a workflow, which is helpful. However, it lacks an explanation of session_id, does not specify how the derivation result is obtained (e.g., from the session or current state), and omits edge cases. For a tool with one optional parameter and an output schema present, it is moderately complete but not fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema defines only session_id, and the description never mentions this parameter or explains its purpose. Since schema description coverage is 0%, the description should compensate but does not, leaving the agent to infer from the default value or context. The example arbitrarily omits arguments, adding ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: preparing derivation results for optimization solvers by converting NSForge symbolic formulas into optimizer input. It uses specific verbs ('prepare', 'convert') and a resource (optimization solver format), and distinguishes itself from sibling derivation tools through its optimization-specific purpose and concrete example.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a clear three-step workflow indicating when to use the tool: after NSForge derivation and before sending to an optimizer. This gives explicit context but does not mention when not to use it or name alternative tools, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/u9401066/nsforge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server