Skip to main content
Glama

准备、确认与查看本次业务求解

isingq_solve

Model optimization problems as QUBO, validate inputs, prepare cloud solves for IsingQ, and review decoded candidates against original business goals and constraints.

Instructions

建模产物与业务求解使用同一方法。model只做本机QUBO校验及三文件导出,不读目标、设备或凭据;要求求解准备时直接prepare,同时导出与准备,不必先model。model/prepare可提供model_markdown作为变量、业务目标、约束和公式说明;模型数学信息属于正常产物。首次建模/准备呈现modeling正文及实际文件入口,再附reply和全部操作;不要只剩求解摘要。结果reply是程序生成的本步业务回复,actions含完整业务label及现成call。用户明确要求准备求解时直接prepare,同时导出产物并准备目标;model仅用于只建模/只导出意图,不是求解前强制轮次,也不增加模型接受确认。prepare后先完成用户已经明确的业务选择。返回选项与用户指定的名称和来源无歧义相符时,沿该项现成call继续准备,不重复追问已知选择;已有明确付款选择也沿对应call复用,不代选资金、不擅自改变目标。选择不等于提交。在提交前准备阶段,仅在真正缺少目标或付款选择、遇到硬性阻断,或ready等待本次执行明确确认时,才呈现reply及全部动作并等待用户。只有用户明确确认当前内容才执行confirm;现成call不是授权证明。准备/管理/查询不提交,cancel仅停止提交前准备,受理未知不重建。较大模型从原业务文件通过本地建模程序生成qubo.json并计算实际字节SHA256,model/新prepare用qubo_file:{path,sha256}代替inline qubo,二者恰好选一个;文件位于Toolkit运行主机,无需聊天或工具参数展开矩阵。review_file仅是业务核验来源,不能代替QUBO输入。正常求解返回candidate_ready后,不以候选就绪作为最终答复:沿review现成call继续本地解码和业务复核,无需再询问用户是否解读,也不再次提交。Host从原建模上下文整理review.model(math-model-v1)、data及可选baseline;按原位索引使用x_0、x_1等变量,整数或其他编码通过bindings明确写出原解码表达式。程序从原记录取候选,不允许自行填写或替换本次赋值。仅在review现成call中补充业务核验信息,保留原关联不变。业务目标与QUBO含罚项的目标分开核对;不得反推或省略原约束来制造通过。缺原业务信息时保持未知,只补问业务缺项,不要求用户填写JSON、协议或内部参数。历史列表不批量复核。成功后直接呈现review返回reply中的完整方案、业务目标和约束复核,再基于这些事实解释业务含义;不只输出位串、状态或技术日志。模型内比较不说成实际收益,单个候选不声称全局最优;失败或不支持时保留原任务,说明未完成范围,不自动改模或重算。

Input Schema

NameRequiredDescriptionDefault
quboNo稀疏QUBO输入;仅num_bits必填。省略默认项是合法输入,规范化补默认值不构成模型修复。
limitNo
actionYes
offsetNo
reviewNo原业务核验信息,由Host沿用建模上下文整理;不要求用户填写JSON。变量赋值由程序从原求解记录解码,不接收本次候选或自报结论。
paymentNo仅付费云目标funding使用:用户明确选择算力券或账户余额。
solve_idNostatus/review查看历史任务时使用原记录标识;与request_id二选一。
qubo_fileNomodel/新prepare与qubo恰好二选一。大模型由本地建模程序生成qubo.json和SHA256,只传文件描述;Toolkit读取同一份字节并校验摘要,不在工具参数或聊天展开矩阵。
target_idNochoose时直接使用本次返回的目标选项标识。
request_idNo来自返回动作call.arguments的不透明关联;直接执行现成call,不向用户单独展示或自行构造。
review_fileNo由原模型文件导出回执提供;大模型使用此引用,不在聊天或工具参数中展开完整矩阵。文件位于Toolkit运行主机。
model_markdownNoAgent撰写的业务变量、目标、约束与数学公式说明,原样绑定本次模型。公式使用LaTeX行内$...$或独立$$...$$数学块(如\sum、x_{10}),不用普通Σ_文本或代码围栏冒充数学排版。不是求解器内部参数;省略时只导出已知QUBO表达并标注业务语义未知。
problem_summaryNomodel/prepare时用简短自然语言说明当前业务目标与约束;不重复QUBO系数、编码清单或能量推断。完整模型由qubo或qubo_file提供。
confirmation_refNo直接使用现成确认call中的不透明内容版本关联;不能跨摘要复用,也不是人工授权证明。
preferred_targetNoprepare时可填用户指定的设备名称;来源由返回选项核对。若仍返回选项,先按已经明确且无歧义的名称/来源选择对应call继续准备。

Output Schema

NameRequiredDescriptionDefault
okYes工具调用是否成功
dataNo成功时返回的数据
errorNo
update_noticeNo可选的已完成后台新版提示;不要求用户回应。不出现时不得主动谈论更新。
runtime_identityNo宿主后台核对实际加载来源;不在普通业务回复中打印。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses that model only performs local QUBO validation and file export without reading targets, devices, or credentials, that prepare does not submit, that confirm is the submission gate, and that cancel only stops pre-submit preparation. It also specifies failure handling and that review must use original records rather than re-entered assignments.

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

Conciseness2/5

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

The content is an extremely long, densely packed block of rules with little paragraphing or front-loading, and key routing conditions are repeated across sentences. It is not concise, and an agent must parse the whole block to find the top-level workflow.

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

Completeness4/5

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

For a complex 15-parameter, 11-action solve tool with an output schema, the description covers the core lifecycle, confirmation boundary, failure behavior, and output expectations such as reply and actions. It still does not clearly explain status/refresh/manage/history modes or several auxiliary parameters, but the schema and output schema fill many of those gaps.

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

Parameters4/5

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

The description adds cross-parameter meaning beyond the schema: qubo_file replaces inline qubo in exactly one-of fashion, review_file is not a QUBO input, review.model and bindings use original x_0/x_1 indexing, and model_markdown/problem_summary are business explanations rather than solver internals. With schema coverage already at 80%, it adds useful semantics but does not cover every action, limit, or offset field.

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

Purpose4/5

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

The description makes clear that this is the orchestration endpoint for modeling, preparing, confirming, and reviewing a business solve, and it names actions such as model, prepare, confirm, and review. It lacks a single clean verb+resource opening statement, so the purpose must be reconstructed from dense procedural rules.

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

Usage Guidelines5/5

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

It explicitly routes model-only versus prepare, says to use prepare directly when the user asks for solve preparation, and restricts confirm to explicit user confirmation. It also limits cancel to pre-submit preparation and instructs the agent to reuse ready calls rather than re-asking known choices.

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