Skip to main content
Glama

IDS MCP Server

add_length_restriction

Define character length limits for parameters in IDS specifications to enforce data validation requirements and ensure compliance with buildingSMART standards.

Instructions

Add string length restriction.

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") ctx: FastMCP Context (auto-injected) location: "applicability" or "requirements" (default: "requirements") length: Exact length min_length: Minimum length max_length: Maximum length

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

Example: Add length restriction to attribute value: Tag must be between 5 and 50 characters

Input Schema

NameRequiredDescriptionDefault
spec_idYes
facet_indexYes
parameter_nameYes
base_typeYes
locationNorequirements
lengthNo
min_lengthNo
max_lengthNo

Input Schema (JSON Schema)

{ "properties": { "base_type": { "type": "string" }, "facet_index": { "type": "integer" }, "length": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null }, "location": { "default": "requirements", "type": "string" }, "max_length": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null }, "min_length": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null }, "parameter_name": { "type": "string" }, "spec_id": { "type": "string" } }, "required": [ "spec_id", "facet_index", "parameter_name", "base_type" ], "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