Skip to main content
Glama
lichman0405

raspa-mcp

by lichman0405

calculate_selectivity

Need to know which gas component a porous material prefers? Compute adsorption selectivity from GCMC mixture loadings and feed mole fractions.

Instructions

Calculate adsorption selectivity S_AB from mixture GCMC results (4-4).

Uses the adsorption selectivity definition: S_AB = (x_A / x_B) / (y_A / y_B) where x = adsorbed-phase mole fraction, y = gas-phase (feed) mole fraction.

Inputs come from parse_raspa_output()["components"] for a GCMCMixture simulation.

loading_a / loading_b: average loading of each component in mol/kg (or any consistent units — they cancel in the ratio). feed_fraction_a / feed_fraction_b: mole fractions in the feed gas (must sum to 1.0 for a binary; for partial fractions in a larger mixture, pass the relevant pair).

Returns S_AB > 1 means the material prefers A over B. S_AB < 1 means preference for B. S_AB = 1 means no selectivity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
label_aNoA
label_bNoB
loading_aYes
loading_bYes
feed_fraction_aYes
feed_fraction_bYes
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It explains the mathematical definition, unit cancellation, and interpretation of returned values (S_AB > 1, < 1, = 1). It omits edge-case handling but adds meaningful behavioral detail.

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

Conciseness5/5

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

The description is compact and well-organized: purpose, formula, parameter details, and return interpretation. Every sentence earns its place with no redundancy.

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 simple calculation tool without an output schema, the description sufficiently covers formula, input sources, and output semantics. It lacks error-handling details and optional-label explanation, but is complete enough for typical invocation.

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?

Schema description coverage is 0%, so the description must compensate. It explains loading_a/b and feed_fraction_a/b with units and constraints, but does not explain label_a/b. Since labels are optional and self-evident from defaults, this is a minor gap.

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 calculates adsorption selectivity S_AB from mixture GCMC results, supported by the exact formula. This specific verb+resource+scope distinguishes it from sibling parsing/plotting tools.

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

Usage Guidelines4/5

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

It gives clear context by specifying the input source (parse_raspa_output()['components'] for GCMCMixture) and notes feed fraction constraints. It does not explicitly list alternatives or exclusions, but the intended usage is unambiguous.

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/lichman0405/raspa-mcp'

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