MCP server exposing REINVENT4 generative molecule design as LLM-callable tools
Server exposes 9 tools for REINVENT4 molecular design. Tool naming follows verb_noun pattern (reinvent_sampling, reinvent_validate_input) which is good. However, critical gaps exist: (1) Most tools lack visible input schemas in the provided source excerpt, only reinvent_sampling shows a complete schema. (2) Parameter descriptions are present but often generic ('Device to use (e.g., 'cuda', 'cpu')' lacks constraints). (3) Output schemas are not documented anywhere. (4) Error handling is absent, no recovery guidance, no categorization of retryable vs fatal errors. (5) Tool descriptions are adequate (100-300 chars) but lack WHEN/WHY context for agent selection. The server is domain-specific and well-intentioned, but falls short of production-grade tool definition quality.
Attach PID to job for live polling
Generate a comp_*.py plugin file
Poll status of any TL or RL job
Register a user-launched job for tracking
Return the scoring-function design guide for an RL run, with AUTHORITATIVE score *transform* schemas introspected from the live REINVENT registry. Use this as the source of truth for transforms: `valid_transform_types` lists every accepted transform (8 in REINVENT 4.7.x: sigmoid, reverse_sigmoid, double_sigmoid, step, left_step, right_step, value_mapping, exponential_decay) and `transform_parameter_schemas` gives each one's exact required/optional keys and defaults. Never use a transform type not in this list. NOTE: This tool does NOT define scoring *component* names or their parameter schemas — those are injected separately (in the orchestrator via jobs/component_registry.json, which also carries the test_status / rl_compatible / sync_status readiness gate). Take component names and params from there; route missing components to /custom-component. Steps: (1) identify objectives, (2) map objectives to components (from the component registry), (3) choose transforms (schemas here), (4) set weights, (5) confirm TOML.
7 of 9 tools have no visible input schemas in source code. Only reinvent_sampling and reinvent_transfer_learning show complete parameter definitions. Tools 3-9 lack documented input/output schemas entirely.
No output schemas documented for any tool. Agents cannot plan downstream calls or extract required fields (e.g., job_id from register_job, status from job_status). This violates the response-shaper pattern.
No error handling or recovery guidance. Tools lack categorization of retryable vs fatal errors, actionable error messages, or suggestions for next steps. E.g., if validation fails, what should the agent do?
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 49 | 2026-07-28+ | v2 |
Generate molecules from a REINVENT4 prior model. If dry_run=True: preview the TOML config without running. If dry_run=False: runs synchronously (sampling is fast) and returns results immediately. For libinvent/linkinvent/mol2mol, smiles_file is required. Generator guide: - reinvent: de novo generation, no input SMILES needed - libinvent: scaffold decoration, provide scaffold SMILES with [*:0] attachment points - linkinvent: fragment linking, provide two warhead SMILES separated by | - mol2mol: analogue generation, provide reference molecule SMILES
Fine-tune a REINVENT4 prior on a focused SMILES dataset (transfer learning). If dry_run=True: preview the TOML config without writing or launching. If skip_validation=False (default): validates input SMILES and TOML before proceeding. Set launch=True to have the agent run the job (returns job_id for polling). Set launch=False (default) to get the config + command to run yourself. After completion, the output model can be used as agent_file for RL.
Validate and optionally clean input SMILES
Validate TOML config before launch
Parameter descriptions lack specificity. 'Device to use (e.g., 'cuda', 'cpu')' does not state constraints or valid values. 'Sampling strategy' and 'Temperature' lack ranges or enums. LLMs cannot validate inputs without explicit constraints.
Tool descriptions lack WHEN/WHY context. 'Validate and optionally clean input SMILES' does not explain when to call this vs other validation tools, or what 'clean' means. Agents cannot disambiguate similar tools.