Skip to main content
Glama

sw_lock_analysis

Pre-register the primary metric and baseline before generating data to prevent selecting favorable results after the fact. Returns a unique ID used by result comparison to distinguish pre-specified primary findings from exploratory ones.

Instructions

在生成数据之前把主指标与基线定下来(预注册)。

三道门证明不了一件事:主指标是看数据之前定的,还是跑完之后挑出来的 那个最好看的。真实过程往往是——跑完发现平均谱效没提升,顺手换成 5% 边缘用户谱效,有提升就报了这个。每一步都合理,合起来是在多个指标里 挑赢的那个,假阳性率远高于 5%。

做法很轻:写一个 JSON、算个 SHA-256、不可原地改。把返回的 prereg_id 传给 sw_generate,之后 sw_compare_results 会判断用的指标是不是 当初定的:一致 → primary;不一致 → exploratory结论句里会明说 这不是预注册主结论

改主意就再调一次,会得到新 prereg_id,旧的不动——"改过口径"这件事 本身留了痕。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
baselineNo
draft_idNo
csi_basisNoideal
metric_unitNo
primary_metricNospectral_efficiency
expected_effectNo
higher_is_betterNo
secondary_metricsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries full burden and fully discloses behavior: computes SHA-256, immutable old IDs, tracks metric changes, and marks results as exploratory if inconsistent. This is rich and honest about consequences.

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 front-loaded and structured, but includes a long philosophical explanation about multiple comparisons. This is informative but could be shortened; still, it remains focused and understandable.

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

Completeness2/5

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

For a tool with 9 parameters and an output schema, the description is not operationally complete. It explains the workflow and integration but leaves all parameter semantics unexplained and does not describe the return value structure beyond prereg_id.

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?

Schema coverage is 0% with 9 parameters, and the description does not explain any of them. It mentions 'primary metric' and 'baseline' at a high level but fails to clarify parameters like csi_basis, expected_effect, draft_id, etc. The description should compensate for low schema coverage but does not.

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: pre-registering the primary metric and baseline before data generation. It distinguishes itself from siblings by explicitly linking its output (prereg_id) to sw_generate and sw_compare_results, and explains the pre-registration concept.

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?

Explicitly states when to use (before generating data) and describes the workflow: call this tool, get prereg_id, pass to sw_generate, then sw_compare_results judges consistency. It also explains what happens if you change your mind, giving clear usage context.

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/TianLin0509/superwireless'

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