Skip to main content
Glama

Costory: Your Finops MCP

update_virtual_dimension_draft

Upsert the virtual dimension draft for an existing virtualDimensionId — updates a pending draft or seeds one from published state when none exists (response may include warning: "Initialized draft from published state"). virtualDimensionId in inputs equals id from list/get/search. Use create_virtual_dimension_draft only for brand-new VDIMs. Call get_skill with skillId: "virtual-dimensions" first — see skill for allocation shapes and workflow. For a new telemetry allocation, discover a live integration metric via list_metrics with includeExternal: true and a specific search term, then persist inline externalMetric { provider, integrationId, metricName, aggregator, groupByFields }. For BigQuery/S3, also set dateColumn and metricColumn from the returned schema (first DATE / first NUMERIC) and gapFillingMethod (default FORWARD_FILL). Catalog-complete providers (Tsuga, Datadog, CloudWatch, Amplitude, Google Cloud Monitoring) do not need those fields. Do not set datasource on new reallocations (echo a leftover stored datasource unchanged unless the user asks to switch). bqName is immutable; use returned bqName for groupBy/filterCel in query. Declarative: rules is optional — omit to change only metadata (name, description, tagNames); when provided, fully replaces the rules array. Omitting rules on a published-only VDIM still persists a draft (metadata-only promotion). Carry forward each existing rule's id and allocation from get; ids are sticky — reorder by moving id with its rule. Do not include leftover in rules. Rejects invalid payloads — nothing persisted unless validation passes. On success: values, draftValidation: { ok: true }, draftPersisted: true. Does not publish or refresh BigQuery. Clerk MCP only. EXAMPLE: "Add staging to Environment VDIM" — rules is the full desired set → { virtualDimensionId: "<id from create/list>", rules: [{ id: "", name: "Production", conditionCel: "cos_environment in ["prod"]", allocation: { allocationType: "dimensionValue", dimensionValue: "prod" } }, { name: "Staging", conditionCel: "cos_environment in ["staging"]", allocation: { allocationType: "dimensionValue", dimensionValue: "staging" } }] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional rename for the draft.
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
rulesNoFull desired ordered rules array (declarative, not diffs). Omit to keep the current draft rules unchanged and edit only name/description/tags. Omitting rules on a published-only VDIM still persists a draft (metadata-only promotion path).
tagNamesNoReplace tags when provided (created if missing)
descriptionNoOptional draft description patch.
virtualDimensionIdYesVirtual dimension id (stable public identifier)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / rules / items / properties / allocation / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "dimensionValue",
      -        "type": "string"
      -      },
      -      "dimensionValue": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "dimensionValue"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "existingColumn",
      -        "type": "string"
      -      },
      -      "existingColumn": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "existingColumn"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "splitCost",
      -        "type": "string"
      -      },
      -      "reAllocationParams": {
      -        "discriminator": {
      -          "propertyName": "type"
      -        },
      -        "oneOf": [
      -          {
      -            "properties": {
      -              "partitions": {
      -                "items": {
      -                  "properties": {
      -                    "label": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "weight": {
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "label",
      -                    "weight"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "type": {
      -                "const": "custom",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "partitions"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "reAllocationParams"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "telemetry",
      -        "type": "string"
      -      },
      -      "datasource": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "externalMetric": {
      -        "properties": {
      -          "aggregator": {
      -            "enum": [
      -              "SUM",
      -              "AVG",
      -              "MAX",
      -              "MIN"
      -            ],
      -            "type": "string"
      -          },
      -          "conditions": {
      -            "type": "string"
      -          },
      -          "dateColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "gapFillingMethod": {
      -            "enum": [
      -              "ZERO",
      -              "FORWARD_FILL",
      -              "LINEAR_INTERPOLATION",
      -              "SPREAD"
      -            ],
      -            "type": "string"
      -          },
      -          "groupByFields": {
      -            "default": [],
      -            "items": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "maxItems": 7,
      -            "type": "array"
      -          },
      -          "integrationId": {
      -            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricName": {
      -            "default": "",
      -            "type": "string"
      -          },
      -          "provider": {
      -            "enum": [
      -              "tsuga",
      -              "bigquery",
      -              "datadog",
      -              "cloudwatch",
      -              "s3",
      -              "amplitude",
      -              "snowflake",
      -              "cloudmonitoring"
      -            ],
      -            "type": "string"
      -          },
      -          "query": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "provider",
      -          "integrationId"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingParams": {
      -        "properties": {
      -          "mapping": {
      -            "additionalProperties": {
      -              "type": "string"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "mapping"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingType": {
      -        "enum": [
      -          "mapping",
      -          "regexMapping",
      -          "identity"
      -        ],
      -        "type": "string"
      -      },
      -      "regexTransformation": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "mappingType",
      -      "mappingParams"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "dimensionValue",
      +        "type": "string"
      +      },
      +      "dimensionValue": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "dimensionValue"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "existingColumn",
      +        "type": "string"
      +      },
      +      "existingColumn": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "existingColumn"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "splitCost",
      +        "type": "string"
      +      },
      +      "reAllocationParams": {
      +        "discriminator": {
      +          "propertyName": "type"
      +        },
      +        "oneOf": [
      +          {
      +            "properties": {
      +              "partitions": {
      +                "items": {
      +                  "properties": {
      +                    "label": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "weight": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "weight"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "type": {
      +                "const": "custom",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "partitions"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "reAllocationParams"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "telemetry",
      +        "type": "string"
      +      },
      +      "datasource": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "externalMetric": {
      +        "properties": {
      +          "aggregator": {
      +            "enum": [
      +              "SUM",
      +              "AVG",
      +              "MAX",
      +              "MIN"
      +            ],
      +            "type": "string"
      +          },
      +          "conditions": {
      +            "type": "string"
      +          },
      +          "dateColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "gapFillingMethod": {
      +            "enum": [
      +              "ZERO",
      +              "FORWARD_FILL",
      +              "LINEAR_INTERPOLATION",
      +              "SPREAD"
      +            ],
      +            "type": "string"
      +          },
      +          "groupByFields": {
      +            "default": [],
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 7,
      +            "type": "array"
      +          },
      +          "integrationId": {
      +            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricName": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "enum": [
      +              "tsuga",
      +              "bigquery",
      +              "datadog",
      +              "cloudwatch",
      +              "s3",
      +              "amplitude",
      +              "snowflake",
      +              "cloudmonitoring",
      +              "push"
      +            ],
      +            "type": "string"
      +          },
      +          "query": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "provider",
      +          "integrationId"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingParams": {
      +        "properties": {
      +          "mapping": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "mapping"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingType": {
      +        "enum": [
      +          "mapping",
      +          "regexMapping",
      +          "identity"
      +        ],
      +        "type": "string"
      +      },
      +      "regexTransformation": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "mappingType",
      +      "mappingParams"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / rules / items / properties / allocation / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "dimensionValue",
      -        "type": "string"
      -      },
      -      "dimensionValue": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "dimensionValue"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "existingColumn",
      -        "type": "string"
      -      },
      -      "existingColumn": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "existingColumn"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "splitCost",
      -        "type": "string"
      -      },
      -      "reAllocationParams": {
      -        "discriminator": {
      -          "propertyName": "type"
      -        },
      -        "oneOf": [
      -          {
      -            "properties": {
      -              "partitions": {
      -                "items": {
      -                  "properties": {
      -                    "label": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "weight": {
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "label",
      -                    "weight"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "type": {
      -                "const": "custom",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "partitions"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "reAllocationParams"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "telemetry",
      -        "type": "string"
      -      },
      -      "datasource": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "externalMetric": {
      -        "properties": {
      -          "aggregator": {
      -            "enum": [
      -              "SUM",
      -              "AVG",
      -              "MAX",
      -              "MIN"
      -            ],
      -            "type": "string"
      -          },
      -          "conditions": {
      -            "type": "string"
      -          },
      -          "dateColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "gapFillingMethod": {
      -            "enum": [
      -              "ZERO",
      -              "FORWARD_FILL",
      -              "LINEAR_INTERPOLATION",
      -              "SPREAD"
      -            ],
      -            "type": "string"
      -          },
      -          "groupByFields": {
      -            "default": [],
      -            "items": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "maxItems": 7,
      -            "type": "array"
      -          },
      -          "integrationId": {
      -            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricName": {
      -            "default": "",
      -            "type": "string"
      -          },
      -          "provider": {
      -            "enum": [
      -              "tsuga",
      -              "bigquery",
      -              "datadog",
      -              "cloudwatch",
      -              "s3",
      -              "amplitude",
      -              "snowflake"
      -            ],
      -            "type": "string"
      -          },
      -          "query": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "provider",
      -          "integrationId"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingParams": {
      -        "properties": {
      -          "mapping": {
      -            "additionalProperties": {
      -              "type": "string"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "mapping"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingType": {
      -        "enum": [
      -          "mapping",
      -          "regexMapping",
      -          "identity"
      -        ],
      -        "type": "string"
      -      },
      -      "regexTransformation": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "mappingType",
      -      "mappingParams"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "dimensionValue",
      +        "type": "string"
      +      },
      +      "dimensionValue": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "dimensionValue"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "existingColumn",
      +        "type": "string"
      +      },
      +      "existingColumn": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "existingColumn"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "splitCost",
      +        "type": "string"
      +      },
      +      "reAllocationParams": {
      +        "discriminator": {
      +          "propertyName": "type"
      +        },
      +        "oneOf": [
      +          {
      +            "properties": {
      +              "partitions": {
      +                "items": {
      +                  "properties": {
      +                    "label": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "weight": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "weight"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "type": {
      +                "const": "custom",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "partitions"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "reAllocationParams"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "telemetry",
      +        "type": "string"
      +      },
      +      "datasource": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "externalMetric": {
      +        "properties": {
      +          "aggregator": {
      +            "enum": [
      +              "SUM",
      +              "AVG",
      +              "MAX",
      +              "MIN"
      +            ],
      +            "type": "string"
      +          },
      +          "conditions": {
      +            "type": "string"
      +          },
      +          "dateColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "gapFillingMethod": {
      +            "enum": [
      +              "ZERO",
      +              "FORWARD_FILL",
      +              "LINEAR_INTERPOLATION",
      +              "SPREAD"
      +            ],
      +            "type": "string"
      +          },
      +          "groupByFields": {
      +            "default": [],
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 7,
      +            "type": "array"
      +          },
      +          "integrationId": {
      +            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricName": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "enum": [
      +              "tsuga",
      +              "bigquery",
      +              "datadog",
      +              "cloudwatch",
      +              "s3",
      +              "amplitude",
      +              "snowflake",
      +              "cloudmonitoring"
      +            ],
      +            "type": "string"
      +          },
      +          "query": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "provider",
      +          "integrationId"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingParams": {
      +        "properties": {
      +          "mapping": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "mapping"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingType": {
      +        "enum": [
      +          "mapping",
      +          "regexMapping",
      +          "identity"
      +        ],
      +        "type": "string"
      +      },
      +      "regexTransformation": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "mappingType",
      +      "mappingParams"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / rules / items / properties / allocation / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "dimensionValue",
      -        "type": "string"
      -      },
      -      "dimensionValue": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "dimensionValue"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "existingColumn",
      -        "type": "string"
      -      },
      -      "existingColumn": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "existingColumn"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "splitCost",
      -        "type": "string"
      -      },
      -      "reAllocationParams": {
      -        "discriminator": {
      -          "propertyName": "type"
      -        },
      -        "oneOf": [
      -          {
      -            "properties": {
      -              "partitions": {
      -                "items": {
      -                  "properties": {
      -                    "label": {
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "weight": {
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "label",
      -                    "weight"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "type": {
      -                "const": "custom",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "partitions"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "reAllocationParams"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "allocationType": {
      -        "const": "telemetry",
      -        "type": "string"
      -      },
      -      "datasource": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "externalMetric": {
      -        "properties": {
      -          "aggregator": {
      -            "enum": [
      -              "SUM",
      -              "AVG",
      -              "MAX",
      -              "MIN"
      -            ],
      -            "type": "string"
      -          },
      -          "conditions": {
      -            "type": "string"
      -          },
      -          "dateColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "gapFillingMethod": {
      -            "enum": [
      -              "ZERO",
      -              "FORWARD_FILL",
      -              "LINEAR_INTERPOLATION",
      -              "SPREAD"
      -            ],
      -            "type": "string"
      -          },
      -          "groupByFields": {
      -            "default": [],
      -            "items": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "maxItems": 7,
      -            "type": "array"
      -          },
      -          "integrationId": {
      -            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricColumn": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "metricName": {
      -            "default": "",
      -            "type": "string"
      -          },
      -          "provider": {
      -            "enum": [
      -              "tsuga",
      -              "bigquery",
      -              "datadog",
      -              "cloudwatch",
      -              "s3",
      -              "amplitude"
      -            ],
      -            "type": "string"
      -          },
      -          "query": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "provider",
      -          "integrationId"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingParams": {
      -        "properties": {
      -          "mapping": {
      -            "additionalProperties": {
      -              "type": "string"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "mapping"
      -        ],
      -        "type": "object"
      -      },
      -      "mappingType": {
      -        "enum": [
      -          "mapping",
      -          "regexMapping",
      -          "identity"
      -        ],
      -        "type": "string"
      -      },
      -      "regexTransformation": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "allocationType",
      -      "mappingType",
      -      "mappingParams"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "dimensionValue",
      +        "type": "string"
      +      },
      +      "dimensionValue": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "dimensionValue"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "existingColumn",
      +        "type": "string"
      +      },
      +      "existingColumn": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "existingColumn"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "splitCost",
      +        "type": "string"
      +      },
      +      "reAllocationParams": {
      +        "discriminator": {
      +          "propertyName": "type"
      +        },
      +        "oneOf": [
      +          {
      +            "properties": {
      +              "partitions": {
      +                "items": {
      +                  "properties": {
      +                    "label": {
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "weight": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "weight"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "type": {
      +                "const": "custom",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "partitions"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "reAllocationParams"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "allocationType": {
      +        "const": "telemetry",
      +        "type": "string"
      +      },
      +      "datasource": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "externalMetric": {
      +        "properties": {
      +          "aggregator": {
      +            "enum": [
      +              "SUM",
      +              "AVG",
      +              "MAX",
      +              "MIN"
      +            ],
      +            "type": "string"
      +          },
      +          "conditions": {
      +            "type": "string"
      +          },
      +          "dateColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "gapFillingMethod": {
      +            "enum": [
      +              "ZERO",
      +              "FORWARD_FILL",
      +              "LINEAR_INTERPOLATION",
      +              "SPREAD"
      +            ],
      +            "type": "string"
      +          },
      +          "groupByFields": {
      +            "default": [],
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "maxItems": 7,
      +            "type": "array"
      +          },
      +          "integrationId": {
      +            "description": "External metric integration ID from list_metrics(includeExternal: true).",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricColumn": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "metricName": {
      +            "default": "",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "enum": [
      +              "tsuga",
      +              "bigquery",
      +              "datadog",
      +              "cloudwatch",
      +              "s3",
      +              "amplitude",
      +              "snowflake"
      +            ],
      +            "type": "string"
      +          },
      +          "query": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "provider",
      +          "integrationId"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingParams": {
      +        "properties": {
      +          "mapping": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "mapping"
      +        ],
      +        "type": "object"
      +      },
      +      "mappingType": {
      +        "enum": [
      +          "mapping",
      +          "regexMapping",
      +          "identity"
      +        ],
      +        "type": "string"
      +      },
      +      "regexTransformation": {
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "allocationType",
      +      "mappingType",
      +      "mappingParams"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses critical runtime behavior: validation failure prevents persistence, success returns values/draftValidation/draftPersisted, rules omission creates metadata-only drafts, rule ids are sticky, and bqName is immutable. It also explicitly states it does not publish or refresh BigQuery.

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

Conciseness3/5

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

The description is front-loaded with the core purpose and contains a useful example, but it is very long and has notable redundancy—BigQuery/S3 requirements and datasource carry-forward guidance are repeated. Tighter organization would improve readability without losing critical details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex write operation with no output schema, the description covers prerequisites, workflow, validation behavior, success indicators, rule-id handling, allocation semantics, and a practical example. No major calling context appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even with full schema coverage, the description adds essential semantics: rules is a full declarative replacement, omission means metadata-only, allocation types are detailed, BigQuery/S3 require dateColumn/metricColumn/gapFillingMethod, mappingType behaviors are explained, and datasource should be carried forward unchanged. This goes well beyond the schema.

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?

Clearly identifies the tool as an update/upsert for an existing virtual dimension draft, and explicitly contrasts it with create_virtual_dimension_draft for brand-new VDIMs. The verb and resource are specific and it is easy to distinguish from related sibling tools.

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?

Provides explicit when-to-use guidance, including using create_virtual_dimension_draft only for brand-new VDIMs, calling get_skill first, using list_metrics for externalMetric discovery, and noting that this tool does not publish or refresh BigQuery. Includes a concrete example and clarifies declarative replacement behavior.

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