Skip to main content
Glama

set_dict_entry

Update OpenFOAM dictionary entries, including nested paths like 'solvers/p/tolerance', with fallback to simple text editing when foamDictionary is unavailable.

Instructions

Set a keyword in a dictionary file. Uses foamDictionary when available (supports nested entries like 'solvers/p/tolerance'); otherwise falls back to editing a top-level single-line entry as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
entryYes
valueYes
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It discloses the key behavioral trait: it uses foamDictionary when available for nested entries, otherwise falls back to editing a top-level single-line entry. This is useful context. However, it does not state whether the operation is create-or-update, what happens if the entry doesn't exist, or the format of the value. The disclosed fallback is a partial behavioral disclosure, but not comprehensive. Score 3.

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 two sentences with zero waste. The first sentence states the core purpose; the second explains the two execution modes and gives a concrete example. It is front-loaded with the action and stays focused. This is a model of conciseness.

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?

The description covers the core behavior and the nesting/fallback distinction, which is essential for correct invocation. However, with 3 required parameters and no output schema or annotations, it lacks details on parameter semantics (except entry) and potential return/error behavior. An agent may know the action but not enough about the value format or how to handle a missing dictionary file. It is adequate but not complete; score 3.

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?

Schema description coverage is 0%, so the description must compensate. It provides only an example for 'entry' ('solvers/p/tolerance'), clarifying nested path semantics, but gives no meaning for 'path' or 'value'. 'Path' is not described as a file path, and 'value' is not specified in terms of format (e.g., string, number, list). The description adds minimal per-parameter value beyond the entry example, leaving most semantics undocumented. Score 2.

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 action: 'Set a keyword in a dictionary file.' It specifies the resource (dictionary file) and the verb (set). It also adds specificity about mechanism (foamDictionary vs text fallback) and gives an example of nested entry syntax, distinguishing it from read_dict and set_boundary_condition siblings.

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

Usage Guidelines3/5

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

The description implies when to use the tool ('Set a keyword in a dictionary file') but does not explicitly state when to prefer it over siblings like set_boundary_condition or scaffold_case. It mentions the fallback behavior (single-line top-level) but doesn't guide on when to use this vs alternatives. The agent can infer usage from the verb and resource, but there's no explicit exclusionary guidance, so a 3 is appropriate.

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