Skip to main content
Glama

IDS MCP Server

add_pattern_restriction

Apply regex pattern restrictions to IDS specifications to enforce data format requirements for building information modeling compliance.

Instructions

Add pattern restriction (regex matching).

Args: spec_id: Specification identifier or name facet_index: Index of facet in location (0-based) parameter_name: Which parameter to restrict (e.g., "value") base_type: XSD base type (e.g., "xs:string") pattern: Regular expression pattern ctx: FastMCP Context (auto-injected) location: "applicability" or "requirements" (default: "requirements")

Returns: {"status": "added", "restriction_type": "pattern", "spec_id": "S1"}

Example: Add pattern to attribute value: Name must match "EW-[0-9]{3}"

Input Schema

NameRequiredDescriptionDefault
spec_idYes
facet_indexYes
parameter_nameYes
base_typeYes
patternYes
locationNorequirements

Input Schema (JSON Schema)

{ "properties": { "base_type": { "type": "string" }, "facet_index": { "type": "integer" }, "location": { "default": "requirements", "type": "string" }, "parameter_name": { "type": "string" }, "pattern": { "type": "string" }, "spec_id": { "type": "string" } }, "required": [ "spec_id", "facet_index", "parameter_name", "base_type", "pattern" ], "type": "object" }

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/vinnividivicci/ifc-ids-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server