Skip to main content
Glama

Create infrastructure feature class

create_infrastructure_feature_class

Create a tenant-defined infrastructure feature class. Builtin classes are managed by AssetLab and cannot be created via API (is_builtin is always forced to false). Requires infrastructure_feature_classes:write scope.

Input Schema

NameRequiredDescriptionDefault
codeYesAsset class code (lowercase snake_case, 1-50 chars)
iconNoIcon name
labelYesDisplay name (required)
categoryYesCategory - municipal service family (transportation, water, wastewater, stormwater, structures, facilities, electrical, telecom, gas, roadside, other)
color_hexNoDisplay colour as hex, e.g. #3B82F6
sort_orderNoSort order

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Category - municipal service family (transportation, water, wastewater, stormwater, structures, electrical, telecom, gas, roadside, other)"New value: +"Category - municipal service family (transportation, water, wastewater, stormwater, structures, facilities, electrical, telecom, gas, roadside, other)"
    • changedInput schema / properties / category / enum
      Previous value: -[
      -  "transportation",
      -  "water",
      -  "wastewater",
      -  "stormwater",
      -  "structures",
      -  "electrical",
      -  "telecom",
      -  "gas",
      -  "roadside",
      -  "other"
      -]New value: +[
      +  "transportation",
      +  "water",
      +  "wastewater",
      +  "stormwater",
      +  "structures",
      +  "facilities",
      +  "electrical",
      +  "telecom",
      +  "gas",
      +  "roadside",
      +  "other"
      +]
  2. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / sort_order / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / sort_order / minimum
      Added value: +-9007199254740991
  3. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / sort_order / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / sort_order / minimum
      Removed value: --9007199254740991
  4. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / sort_order / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / sort_order / minimum
      Added value: +-9007199254740991
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the mutation profile (readOnly=false, idempotent=false, destructive=false), and the description adds genuinely non-inferable facts: is_builtin is always forced to false regardless of input, and the call requires the infrastructure_feature_classes:write scope. It does not say what happens on a duplicate code or what the response contains, but the key side effect and auth requirement are disclosed.

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

Conciseness5/5

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

Three short sentences, none of which restates structured fields, with the core action stated first and the constraint and prerequisite following. Every sentence carries distinct information.

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 create tool with no output schema, the description covers scope, the builtin restriction, and the required auth scope, which is enough to call it correctly. The remaining gap is error/return behaviour (e.g. code uniqueness conflicts, what identifier comes back), which an agent would plausibly need.

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 coverage is 100% across all six properties, including the code pattern, the category enum, and length limits, so the schema does the heavy lifting. The description adds no parameter-level detail (scale, sort_order behaviour, icon/color usage), which meets but does not exceed the baseline for full schema coverage.

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?

Specific verb plus resource ('Create a tenant-defined infrastructure feature class'), with the tenant-defined qualifier that separates it from builtin/system-managed classes. It never names a sibling such as update_infrastructure_feature_class or bulk_create, so the differentiation comes from the qualifier rather than explicit routing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear when-not: builtin classes are managed by AssetLab and cannot be created via API, which tells the agent this tool only applies to tenant-defined classes. It stops short of pointing at alternatives (bulk_create for multiples, update_infrastructure_feature_class for existing classes) or prerequisites beyond the auth scope.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources