Skip to main content
Glama

Add Constraint

add_constraint

Use this when you need to add a sketch constraint to a list. Append one validated sketch constraint to a constraint list. Side-effect-free: pass { constraints, constraint } and receive the updated list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
constraintYesThe constraint to append.
constraintsNoExisting constraint list to append to (omit for an empty list).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "constraints": {
      -    "description": "Updated constraint list.",
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "errors": {
      -    "description": "Validation errors (present on failure).",
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "constraints"
      -]
  2. Changed6 schema fields changed
    • addedInput schema / properties / constraint / description
      Added value: +"The constraint to append."
    • addedInput schema / properties / constraint / properties
      Added value: +{
      +  "entities": {
      +    "description": "Ids of the entities the constraint relates.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "enum": [
      +      "COINCIDENT",
      +      "DISTANCE",
      +      "HORIZONTAL",
      +      "VERTICAL",
      +      "PARALLEL",
      +      "PERPENDICULAR",
      +      "EQUAL_LENGTH",
      +      "TANGENT",
      +      "RADIUS",
      +      "ANGLE",
      +      "CONCENTRIC",
      +      "SYMMETRIC"
      +    ],
      +    "type": "string"
      +  },
      +  "value": {
      +    "description": "Required for DISTANCE, RADIUS, and ANGLE.",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / constraint / required
      Added value: +[
      +  "id",
      +  "type",
      +  "entities"
      +]
    • addedInput schema / properties / constraints / description
      Added value: +"Existing constraint list to append to (omit for an empty list)."
    • addedInput schema / properties / constraints / items / properties
      Added value: +{
      +  "entities": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "enum": [
      +      "COINCIDENT",
      +      "DISTANCE",
      +      "HORIZONTAL",
      +      "VERTICAL",
      +      "PARALLEL",
      +      "PERPENDICULAR",
      +      "EQUAL_LENGTH",
      +      "TANGENT",
      +      "RADIUS",
      +      "ANGLE",
      +      "CONCENTRIC",
      +      "SYMMETRIC"
      +    ],
      +    "type": "string"
      +  },
      +  "value": {
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / constraints / items / required
      Added value: +[
      +  "id",
      +  "type",
      +  "entities"
      +]
  3. Changed6 schema fields changed
    • removedInput schema / properties / constraint / description
      Removed value: -"The constraint to append."
    • removedInput schema / properties / constraint / properties
      Removed value: -{
      -  "entities": {
      -    "description": "Ids of the entities the constraint relates.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "type": {
      -    "enum": [
      -      "COINCIDENT",
      -      "DISTANCE",
      -      "HORIZONTAL",
      -      "VERTICAL",
      -      "PARALLEL",
      -      "PERPENDICULAR",
      -      "EQUAL_LENGTH",
      -      "TANGENT",
      -      "RADIUS",
      -      "ANGLE",
      -      "CONCENTRIC",
      -      "SYMMETRIC"
      -    ],
      -    "type": "string"
      -  },
      -  "value": {
      -    "description": "Required for DISTANCE, RADIUS, and ANGLE.",
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / constraint / required
      Removed value: -[
      -  "id",
      -  "type",
      -  "entities"
      -]
    • removedInput schema / properties / constraints / description
      Removed value: -"Existing constraint list to append to (omit for an empty list)."
    • removedInput schema / properties / constraints / items / properties
      Removed value: -{
      -  "entities": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "type": {
      -    "enum": [
      -      "COINCIDENT",
      -      "DISTANCE",
      -      "HORIZONTAL",
      -      "VERTICAL",
      -      "PARALLEL",
      -      "PERPENDICULAR",
      -      "EQUAL_LENGTH",
      -      "TANGENT",
      -      "RADIUS",
      -      "ANGLE",
      -      "CONCENTRIC",
      -      "SYMMETRIC"
      -    ],
      -    "type": "string"
      -  },
      -  "value": {
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / constraints / items / required
      Removed value: -[
      -  "id",
      -  "type",
      -  "entities"
      -]
  4. Changed6 schema fields changed
    • addedInput schema / properties / constraint / description
      Added value: +"The constraint to append."
    • addedInput schema / properties / constraint / properties
      Added value: +{
      +  "entities": {
      +    "description": "Ids of the entities the constraint relates.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "enum": [
      +      "COINCIDENT",
      +      "DISTANCE",
      +      "HORIZONTAL",
      +      "VERTICAL",
      +      "PARALLEL",
      +      "PERPENDICULAR",
      +      "EQUAL_LENGTH",
      +      "TANGENT",
      +      "RADIUS",
      +      "ANGLE",
      +      "CONCENTRIC",
      +      "SYMMETRIC"
      +    ],
      +    "type": "string"
      +  },
      +  "value": {
      +    "description": "Required for DISTANCE, RADIUS, and ANGLE.",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / constraint / required
      Added value: +[
      +  "id",
      +  "type",
      +  "entities"
      +]
    • addedInput schema / properties / constraints / description
      Added value: +"Existing constraint list to append to (omit for an empty list)."
    • addedInput schema / properties / constraints / items / properties
      Added value: +{
      +  "entities": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "enum": [
      +      "COINCIDENT",
      +      "DISTANCE",
      +      "HORIZONTAL",
      +      "VERTICAL",
      +      "PARALLEL",
      +      "PERPENDICULAR",
      +      "EQUAL_LENGTH",
      +      "TANGENT",
      +      "RADIUS",
      +      "ANGLE",
      +      "CONCENTRIC",
      +      "SYMMETRIC"
      +    ],
      +    "type": "string"
      +  },
      +  "value": {
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / constraints / items / required
      Added value: +[
      +  "id",
      +  "type",
      +  "entities"
      +]
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "constraints": {
      +      "description": "Updated constraint list.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "errors": {
      +      "description": "Validation errors (present on failure).",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "constraints"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.