Skip to main content
Glama

AssetLab

Create infrastructure lifecycle event

create_infrastructure_lifecycle_event

Create a lifecycle strategy event. Events attach to a SCOPE (feature_class code, material, optional diameter band) - never to individual features; every feature resolves the most specific matching scope, like replacement rates. Replacement is NOT an event (it is priced by the rates and scheduled by the renewal forecast) - model the interventions BEFORE replacement: crack sealing, relining, resurfacing. List existing events first to reuse a scope. Requires infrastructure_lifecycle_events:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesEvent name (required, e.g. "Crack Sealing")
materialNoMaterial the scope applies to, exactly as features carry it (e.g. "PVC")
unit_costNoCost per unit (current dollars, never indexed)
fixed_costNoFixed cost (current dollars)
sort_orderNoEvaluation order within the strategy
cost_methodNoCosting: per unit (uses the feature's measured quantity and unit) or a fixed amount (default per_unit)
cost_sourceNoProvenance of the cost ("Engineering 2026", a tender reference)
event_classYesEvent type - preventative maintenance or rehabilitation
feature_classNoFeature class code the strategy scope applies to (omit for a material-wide scope; at least one of feature_class/material is required)
impact_methodYesEffect: add years of life, or reset condition to a value
diameter_min_mmNoLower bound of a diameter band (requires material); bands ladder like rates
impact_reset_toNoCondition after the event (required when impact_method is reset_condition)
work_generationNoWhat a due application of this event becomes when created from the interventions list: none (plan only, default), work_order, or project. Nothing is created on a schedule.
impact_add_yearsNoYears added (required when impact_method is add_years)
max_applicationsNoHow many times the event may fire over a feature's life (default 1)
min_years_betweenNoMinimum years between firings of a recurring event (default 1)
trigger_condition_maxYesUpper bound of the trigger window - the event fires when projected condition falls to this
trigger_condition_minNoLower bound of the trigger window (default 0); a feature already below it has missed the event
work_generation_priorityNoPriority for generated work orders. Ignored unless work_generation is work_order.
work_generation_category_idNoWork category for generated work orders - resolve with list_work_categories. Ignored unless work_generation is work_order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, so safety is covered. The description adds meaningful behavioral context: the required infrastructure_lifecycle_events:write scope, the scope-resolution rule (every feature resolves the most specific matching scope), and the duplicate-avoidance workflow. It stops short of describing rollback or error behavior, but adds real value beyond annotations.

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

Conciseness4/5

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

Five sentences, front-loaded with the core action and the scope model, then the replacement exclusion, then the reuse hint, then the auth requirement. Dense but each sentence carries distinct information; no filler.

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 20-parameter mutation tool with no output schema, the description covers the conceptual model (scope attachment, trigger/impact framing), the pre-call workflow, and the auth prerequisite, which is what an agent most needs. Defaults and enum semantics are left to the schema, which documents them comprehensively.

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 20 parameters, including rich enum and constraint descriptions, so the schema already carries the parameter burden. The description adds conceptual context for the scope-defining params (feature_class, material, diameter band) but no syntax or format detail beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (create a lifecycle strategy event) and immediately scopes it: events attach to a SCOPE, never to individual features. It also implicitly distinguishes itself from sibling create_asset_lifecycle_event by defining the infra scope-based model.

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

Usage Guidelines5/5

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

Explicit when/when-not guidance: it tells the agent what NOT to model as an event (replacement, which is priced by rates and scheduled by the renewal forecast), what to model instead (crack sealing, relining, resurfacing), and to call list_infrastructure_lifecycle_events first to reuse a 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