Skip to main content
Glama

relations_set

Replaces all relations in a Creo model with supplied lines; retrieve existing relations first to append, or pass an empty list to clear them.

Instructions

REPLACE all relations of a model with the given lines (e.g. ["d1 = 2*d0", "MASS_LIMIT = 5"]).

To append, call relations_get first and send the combined list. An empty list clears relations.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "relations": "<relations>"
    },
    "name": "relations_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
relationsYes
regenerateNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does the most important part well: it makes the destructive overwrite explicit and warns that an empty list wipes all relations. It leaves the effect of the regenerate flag and the file-scoping behavior undiscussed, which are the remaining behavioral unknowns.

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?

Three short sentences, front-loaded with the destructive verb and scope, followed by the append recipe and the empty-list edge case. No filler and nothing repeated from the schema.

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?

An output schema exists, so return values need no explanation, and the overwrite/append semantics are covered. But for a mutation tool with no annotations, leaving two of three parameters (file, regenerate) completely undocumented is a real gap in calling it correctly.

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 define all three parameters, but it only really explains relations (string list, with examples). The file parameter and the regenerate flag receive no explanation at all, leaving the agent to guess whether regenerate re-evaluates the model and what file does when omitted.

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 leads with a specific verb in caps ("REPLACE all relations") and the resource (relations of a model), plus a concrete example of the accepted expression syntax. It is clearly distinct from the read-side sibling relations_get, which it names explicitly.

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

Usage Guidelines5/5

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

It states the operative condition for the most likely mistake: to append rather than overwrite, call relations_get first and send the combined list. It also gives the edge-case behavior (empty list clears relations), so an agent knows exactly how to get both replace and append semantics.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.