Skip to main content
Glama

set_boundary_condition

Assign or replace a boundary condition for a patch in an OpenFOAM field file by specifying the patch, boundary condition type, and optional value—resolving setup errors quickly.

Instructions

Set (or insert) the boundaryField entry for a patch in a 0/ field file, e.g. field_file='0/U', patch='inlet', bc_type='fixedValue', value='(10 0 0)'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patchYes
valueNo
bc_typeYes
field_fileYes
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose its write/mutation nature plus the set-or-insert semantics, which is meaningful. However, it doesn't address side effects such as whether the file is overwritten or modified in place, what happens when the patch doesn't exist, or whether a scaffolded case is required beforehand.

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?

A single efficient sentence that front-loads the action and embeds a full worked example. There is zero filler and every word earns its place.

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

Completeness3/5

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

As the sole information source (no annotations, no output schema, no parameter descriptions), it covers the core action and parameter meanings but leaves the return value unspecified and doesn't address edge cases like missing patches or null value handling. Adequate for a simple setter but with noticeable gaps given nothing else exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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—and its example does map concrete values to all four parameters, which is genuinely useful. But it leaves out semantics such as the meaning of value being nullable (many bc types like zeroGradient need no value) and any guidance on valid bc_type choices or vector-versus-scalar value formats.

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 verb ('Set (or insert)') and a precise resource ('the boundaryField entry for a patch in a 0/ field file'), and reinforces it with a concrete parameter-mapped example (field_file='0/U', patch='inlet', bc_type='fixedValue', value='(10 0 0)'). The 0/ file scoping clearly sets it apart from the generic set_dict_entry sibling.

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

Usage Guidelines2/5

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

The description gives context (targets boundary field files for OpenFOAM patches) but offers no guidance on when to choose this tool over alternatives, notably the sibling set_dict_entry. With 19 siblings including a near-duplicate dictionary setter, the lack of any when/when-not/exclusion guidance is a genuine gap.

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