Skip to main content
Glama

generate_blockmesh

Auto-generates a boundary-layer-graded blockMeshDict with presets and first-cell-height grading for target y+, eliminating manual mesh setup errors.

Instructions

Auto-generate a valid, boundary-layer-graded blockMeshDict and write it to output_path (typically '/system/blockMeshDict'). Pick a preset (channel, flatplate, step, box). If first_cell_height > 0, wall-normal grading is computed automatically so the near-wall cell matches that height (feed it the value from the first_cell_height tool to hit a target y+). This removes the hardest, most error-prone part of setting up a case.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNo
heightNo
lengthNo
presetNochannel
cells_xNo
cells_yNo
cells_zNo
output_pathYes
first_cell_heightNo
Behavior3/5

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

Annotations are absent, so the description carries the full behavioral burden. It discloses the core behavior: generating a valid blockMeshDict, auto-computing grading based on first_cell_height, and writing to output_path. However, it does not mention side effects (e.g., overwriting existing files), error conditions (e.g., invalid preset), or prerequisites (e.g., whether the case directory must exist). These gaps would matter for an agent making a call.

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 efficiently structured: the first sentence defines the primary function and output; the second explains the grading behavior with a link to another tool; the third reinforces value. No wasted words, and critical info is front-loaded.

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, no annotations, and no output schema, the description is incomplete. It fails to explain most parameters, does not describe the return value or any output besides the written file, and omits error handling or validation behavior. The absence of sibling differentiation and explicit usage exclusions further reduces completeness.

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?

With 0% schema description coverage, the description must explain the parameters. It only clarifies output_path, preset, and first_cell_height. The geometric parameters (length, height, depth, cells_x, cells_y, cells_z) are not described at all; an agent cannot infer their meaning or how they interact with the preset. This is a significant underserved area.

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 states a specific action ('Auto-generate a valid, boundary-layer-graded blockMeshDict and write it to output_path'), names the resource (blockMeshDict), and clarifies the output location. It mentions the preset options and the grading feature, clearly distinguishing it from sibling tools like scaffold_case or list_mesh_presets.

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?

The description provides clear context on when to use the tool (to generate a boundary-layer-graded mesh) and how to use it in conjunction with the first_cell_height tool to achieve a target y+. It does not explicitly name alternative tools or state when not to use this tool, but the use case is well implied.

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/kimlnw/openfoam-mcp'

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