Skip to main content
Glama

Costory: Your Finops MCP

update_virtual_dimension_draft

Destructive

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

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.7/5.0
Behavior5/5

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

Annotations say only readOnly=false/destructive=true/openWorld=false; the description adds the specific destructive semantics that matter — `rules` is declarative and "fully replaces the rules array," leftover rules must be excluded, rule `id`s are sticky, invalid payloads persist nothing, and the operation "Does not publish or refresh BigQuery." It also discloses the success payload and the possible `warning: "Initialized draft from published state"`, none of which the annotations carry.

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?

Purpose and sibling routing are correctly front-loaded, but the body is a very dense run-on that re-states large blocks already present verbatim in the schema's `allocation` description (datasource handling, BigQuery/S3 columns, mapping/regex/identity rules). The embedded example is useful but the duplication means not every sentence earns its place.

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 upsert with a deeply nested declarative schema and no output schema, the description supplies the workflow, prerequisites, validation behavior, and the success-response shape (`values`, `draftValidation: { ok: true }`, `draftPersisted: true`). Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: `virtualDimensionId` equals `id` from list/get/search, `bqName` is immutable, and the declarative-`rules`/id-stickiness contract governs how the array must be constructed. Some of this duplicates the schema's own allocation prose, which keeps it out of the top band.

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?

Opens with a precise verb+resource+scope: "Upsert the virtual dimension draft for an existing `virtualDimensionId` — updates a pending draft or seeds one from published state when none exists." It explicitly separates itself from the sibling create_virtual_dimension_draft ("only for brand-new VDIMs"), so an agent can route between the two without opening either schema.

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?

Gives explicit when-to-use (existing ID, pending vs. published-only), when-not (brand-new VDIMs → create_virtual_dimension_draft), prerequisites (get_skill with skillId "virtual-dimensions" first), and downstream alternatives (list_metrics with includeExternal:true to discover a metric). It also states the metadata-only path (omit `rules`), which is a real selection decision an agent must make.

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