Skip to main content
Glama

Create LoS measure

create_los_measure

Create a new LoS measure within a service area. Requires los_measures:write scope. Resolve service_area_id first via list_service_areas.

Input Schema

NameRequiredDescriptionDefault
nameYesMeasure name (required, unique per service area)
typeYesMeasure type (required)
unitNoUnit of measurement (e.g., "%", "hours", "count")
weightNoWeight for composite score calculation (default: 1.0)
categoryYesMeasure category (required)
is_activeNoWhether the measure is active (default: true)
sort_orderNoSort order for display
data_sourceYesData source type (required). Use "manual" if values will be entered by hand.
descriptionNoDescription
stretch_goalNoStretch goal value
target_valueNoTarget value
service_area_idYesService area ID (required)
trend_directionNoWhich direction is better
data_source_configNoData source configuration (JSONB). E.g., {"threshold": 3} for pct_above/below, {"days_back": 90} for WO metrics.
minimum_acceptableNoMinimum acceptable value
community_statementNoCommunity-facing statement (for community type measures)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / data_source_config / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / service_area_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / sort_order / maximum
      Added value: +9007199254740991
  2. Changed5 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 / data_source_config / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / service_area_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • removedInput schema / properties / sort_order / maximum
      Removed value: -9007199254740991
  3. Changed5 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 / data_source_config / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / service_area_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • addedInput schema / properties / sort_order / maximum
      Added value: +9007199254740991
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the safety profile is covered. The description adds value the annotations lack: the required write scope and the cross-tool dependency on list_service_areas. It stops short of stating what happens on duplicate names or validation failure.

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, front-loaded with purpose, then scope requirement, then prerequisite. Zero filler and nothing repeated from the schema.

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 16-parameter create tool with full schema coverage and no output schema, the description covers purpose, auth and the key prerequisite. It omits duplicate-name behavior (the schema flags name as unique per service area) and any notion of the created object's identifier, which would round it out.

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 description coverage is 100% across 16 parameters, so the schema already carries every field's meaning, constraints and enums. The only parameter-adjacent note is the service_area_id resolution hint; otherwise the description adds nothing beyond the schema, which is the expected baseline here.

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?

States a specific verb+resource+scope: 'Create a new LoS measure within a service area.' An agent can tell it apart from create_los_measurement or create_los_consequence by the resource noun, though it does not explicitly contrast with those siblings.

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 two concrete operating conditions: the required los_measures:write scope and the instruction to resolve service_area_id via list_service_areas first. It names the helper tool explicitly, but offers no when-not-to-use guidance (e.g., bulk_create for multiple measures).

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