PXRDGen
Use the task-oriented tools from the packaged pxrdgen MCP server. Tool names
below are raw MCP names; let the client resolve their namespace.
Workflow
- For a local XRD
.dat file, call pxrdgen_prepare_upload with its plain filename.
Send the raw bytes with the exact HTTP PUT URL, method, and headers it
returns. After a successful PUT, retain the returned attachment_ref.
- For a
.dat file already available at an HTTP(S) URL under iphy.ac.cn or
one of its subdomains, call pxrdgen_ingest_url with the URL and plain filename.
Retain its returned attachment_ref.
- Call
pxrdgen_predict with exactly one ref and the user-declared chemical formula.
Preserve any explicit num_evals, cell_params, step_lr,
infer_timesteps, and model_family settings. Reuse the same ref for
comparisons across parameter sets.
- Poll
pxrdgen_get_task_status with the returned task_id. Stop on FAILED and
report the returned error message. Call pxrdgen_get_task_outputs only after
SUCCEEDED.
- Preserve candidate index order and use each available direct HTTP GET URL
to return the generated CIF file. Report unavailable artifacts rather than
reconstructing CIF text.
Input and Parameter Rules
- Never place local paths, Base64, XRD points, or file bytes in MCP tool
arguments. MCP returns transfer instructions; it does not transport the
payload.
- A valid input is UTF-8
.dat text no larger than 1 MiB, with exactly 7,500
whitespace-delimited 2theta intensity rows on the grid from 5.00 through
79.99 in increments of 0.01. Let the Server validate it.
num_evals is 1–256. model_family is flow or diffusion when supplied.
cell_params selects constrained prediction and must represent
a,b,c,alpha,beta,gamma. Use step_lr and infer_timesteps only as explicit
inference controls, not as scientific confidence measures.
- Treat upload URLs and their headers as short-lived capabilities. Use them
only for the specified PUT, and never copy credentials or authentication
headers into tool arguments, prose, logs, or retained files.
Retry and Scientific Boundaries
- Repeating
pxrdgen_ingest_url with the exact URL and filename is idempotent. An
exact pxrdgen_predict retry with the same ref, formula, and all parameters returns
the existing task. Do not blindly replay any other indeterminate mutation.
- Retry only when a structured tool error marks the operation retryable, and
follow its recovery guidance. A failed task is not an empty prediction.
- Generated structures are model candidates under the recorded inputs and
parameters. Do not describe them as experimentally confirmed, uniquely
solved, thermodynamically stable, or synthesizable without separate evidence.
If the MCP tools are unavailable, ask the user to connect the packaged
pxrdgen server. Do not bypass MCP by calling private provider endpoints,
substitute local structure prediction, or guess task, input, or artifact data.
Raw HTTP is used only with upload or download instructions returned by MCP.
1---2name: pxrdgen3description: Predict candidate crystal structures from powder X-ray diffraction data and retrieve generated CIF files. Use when a user provides a PXRD .dat input, chemical formula, or PXRDGen task and wants structure candidates or explicit inference trials.4display_name: "PXRDGen 晶体结构预测"5display_name_en: "PXRDGen Crystal Structure Prediction"6description_zh: "根据粉末 X 射线衍射数据和化学式生成晶体结构候选,支持比较不同模型结果,并提供可用的 CIF 文件供后续验证。"7description_en: "Generate candidate crystal structures from powder X-ray diffraction data and a chemical formula, compare model outputs, and retrieve available CIF files for further validation."8version: "0.1.2"9author: "Tiannian Zhu"10metadata:11 source: https://skillmd.com/skills/infometa/pxrdgen12---1314# PXRDGen1516Use the task-oriented tools from the packaged `pxrdgen` MCP server. Tool names17below are raw MCP names; let the client resolve their namespace.1819## Workflow20211. For a local XRD `.dat` file, call `pxrdgen_prepare_upload` with its plain filename.22 Send the raw bytes with the exact HTTP `PUT` URL, method, and headers it23 returns. After a successful PUT, retain the returned `attachment_ref`.242. For a `.dat` file already available at an HTTP(S) URL under `iphy.ac.cn` or25 one of its subdomains, call `pxrdgen_ingest_url` with the URL and plain filename.26 Retain its returned `attachment_ref`.273. Call `pxrdgen_predict` with exactly one ref and the user-declared chemical formula.28 Preserve any explicit `num_evals`, `cell_params`, `step_lr`,29 `infer_timesteps`, and `model_family` settings. Reuse the same ref for30 comparisons across parameter sets.314. Poll `pxrdgen_get_task_status` with the returned `task_id`. Stop on `FAILED` and32 report the returned `error` message. Call `pxrdgen_get_task_outputs` only after33 `SUCCEEDED`.345. Preserve candidate index order and use each available direct HTTP GET URL35 to return the generated CIF file. Report unavailable artifacts rather than36 reconstructing CIF text.3738## Input and Parameter Rules3940- Never place local paths, Base64, XRD points, or file bytes in MCP tool41 arguments. MCP returns transfer instructions; it does not transport the42 payload.43- A valid input is UTF-8 `.dat` text no larger than 1 MiB, with exactly 7,50044 whitespace-delimited `2theta intensity` rows on the grid from `5.00` through45 `79.99` in increments of `0.01`. Let the Server validate it.46- `num_evals` is 1–256. `model_family` is `flow` or `diffusion` when supplied.47 `cell_params` selects constrained prediction and must represent48 `a,b,c,alpha,beta,gamma`. Use `step_lr` and `infer_timesteps` only as explicit49 inference controls, not as scientific confidence measures.50- Treat upload URLs and their headers as short-lived capabilities. Use them51 only for the specified PUT, and never copy credentials or authentication52 headers into tool arguments, prose, logs, or retained files.5354## Retry and Scientific Boundaries5556- Repeating `pxrdgen_ingest_url` with the exact URL and filename is idempotent. An57 exact `pxrdgen_predict` retry with the same ref, formula, and all parameters returns58 the existing task. Do not blindly replay any other indeterminate mutation.59- Retry only when a structured tool error marks the operation retryable, and60 follow its recovery guidance. A failed task is not an empty prediction.61- Generated structures are model candidates under the recorded inputs and62 parameters. Do not describe them as experimentally confirmed, uniquely63 solved, thermodynamically stable, or synthesizable without separate evidence.6465If the MCP tools are unavailable, ask the user to connect the packaged66`pxrdgen` server. Do not bypass MCP by calling private provider endpoints,67substitute local structure prediction, or guess task, input, or artifact data.68Raw HTTP is used only with upload or download instructions returned by MCP.