act_sas_r_code
【生成可复现 SAS/R 代码】 用户要把分析结果导出成 R / SAS / Python 代码复现 返回:推荐统计方法与代码 (真实算法引擎执行,非大模型生成)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | 研究设计 | |
| n_groups | No | 组数 | |
| outcome_type | No | 结局类型 |
【生成可复现 SAS/R 代码】 用户要把分析结果导出成 R / SAS / Python 代码复现 返回:推荐统计方法与代码 (真实算法引擎执行,非大模型生成)
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | 研究设计 | |
| n_groups | No | 组数 | |
| outcome_type | No | 结局类型 |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lowered. The description does add real behavioral context beyond them: execution is by a real algorithm engine rather than an LLM, and the return includes a recommended statistical method alongside code. However it does not say whether the code is runnable as-is, which language is actually returned, or how output size/format works.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Compact and front-loaded: purpose first, then the export intent, then the return value. A few bracket labels and the parenthetical disclaimer are slightly noisy but each sentence carries information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a three-parameter generator with no output schema, the description covers purpose and return summary (method + code) but leaves gaps: with no language parameter, it is unclear which of R/SAS/Python is produced and whether the code is delivered as text or files. Adequate but incomplete for an agent to predict the response.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for all three parameters (design, n_groups, outcome_type), so the schema carries parameter meaning. The description adds nothing about how design/outcome_type influence the recommended method or generated code, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The bracketed lead states a specific verb+resource: generate reproducible SAS/R code, and the body clarifies it exports analysis results as R/SAS/Python code plus a recommended statistical method. It is distinguishable from statistical-analysis siblings, though it never names which sibling (e.g. act_design_guide or act_stat_center) should be used instead. The name/description mismatch (SAS/R in the title, Python added in the body) slightly muddies the scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied by the phrase 'user wants to export analysis results as reproducible code' — there is no explicit when-to-use trigger, no prerequisites, and no mention of alternatives among the many act_* siblings. An agent can infer intent but gets no routing help.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.