Skip to main content
Glama

fet_constraint_add

Appends any FET constraint type to a timetable document using XML-child fields; omitted weight, active status, and comments default to 100, true, and empty.

Instructions

Append a constraint of any catalog type. fields mirror XML children; Weight_Percentage/Active/Comments default to 100/true/"" when omitted (except generation options).

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": {
      "documentId": "<documentId>",
      "type": "<type>"
    },
    "name": "fet_constraint_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
fieldsNo
documentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations the description carries the full behavioral burden, and it does disclose meaningful defaults (Weight_Percentage=100, Active=true, Comments="") plus an exception for generation options. It omits other behavior an agent needs: what happens with an unknown type, whether the document must be open, and whether the call is reversible.

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

Conciseness4/5

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

Two tight sentences with the operation front-loaded and the defaulting behavior second. The phrase 'fields mirror XML children' is dense to the point of being cryptic for an agent without FET/XML background, which keeps it from a 5.

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 three-parameter mutation tool with a nested free-form object and no output schema or annotations, the description supplies the essentials: what it creates, what the nested object represents, and default values. Missing are prerequisite context (type validity, document state) and any indication of what is returned or how failures surface.

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 for all three parameters. It explains the free-form nested 'fields' object as mirroring XML children and names three defaulted keys, but 'type' is only vaguely characterized as 'any catalog type' and 'documentId' is never mentioned, leaving gaps in a low-coverage schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Append a constraint') and constrains scope ('of any catalog type'), which separates it from fet_constraint_update or fet_constraint_remove by implication. It does not explicitly name a sibling or state how it differs from an update-in-place tool, so it stops short of a 5.

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?

There is no explicit when-to-use guidance: nothing says to prefer this over fet_constraint_update, nor that a valid type must first be discovered via fet_constraint_catalog or fet_constraint_schema. Only the word 'Append' hints that this is the creation path, leaving alternatives and prerequisites to inference.

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