add_attribute_facet
Add attribute facets to IDS specifications to define required, optional, or prohibited attributes with specific values for applicability or requirements sections.
Instructions
Add an attribute facet to a specification.
Args: spec_id: Specification identifier location: "applicability" or "requirements" attribute_name: Attribute name (e.g., "Name", "Description") ctx: FastMCP Context (auto-injected) value: Required value or pattern cardinality: "required", "optional", or "prohibited"
Returns: {"status": "added", "facet_type": "attribute", "spec_id": "S1"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_id | Yes | ||
| location | Yes | ||
| attribute_name | Yes | ||
| value | No | ||
| cardinality | No | required |
Input Schema (JSON Schema)
{
"properties": {
"attribute_name": {
"type": "string"
},
"cardinality": {
"default": "required",
"type": "string"
},
"location": {
"type": "string"
},
"spec_id": {
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"spec_id",
"location",
"attribute_name"
],
"type": "object"
}