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 when the user asks to change a draft's rules or allocation. Use create_virtual_dimension_draft only for brand-new VDIMs. The get_skill guide "virtual-dimensions" explains 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. Demo orgs are read-only unless the Clerk caller is an org admin on that tenant. 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" } }] }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "virtualDimensionId": "<virtualDimensionId>",
      "context": "<context>"
    },
    "name": "update_virtual_dimension_draft"
  }
}

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).
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
tagNamesNoReplace tags when provided (created if missing)
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
descriptionNoOptional draft description patch.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
virtualDimensionIdYesVirtual dimension id (stable public identifier)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\""New value: +"A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as \"a customer\". Do not quote the user or include names, emails, or other personal details."
    • changedInput schema / required
      Previous value: -[
      -  "virtualDimensionId",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "virtualDimensionId",
      +  "context"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "virtualDimensionId"
      -]New value: +[
      +  "virtualDimensionId",
      +  "context",
      +  "llm_model"
      +]
  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",
      -              "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"
      +  }
      +]
  4. 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"
      +  }
      +]
  5. 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"
      +  }
      +]
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare mutation (readOnlyHint=false, destructiveHint=true), but the description adds far more: draft seeding with the specific warning string, validation gating ("nothing persisted unless validation passes"), full replacement of the rules array, metadata-only promotion path, and explicit immutability/leftover-field rules. It also discloses scope constraints (Clerk MCP only, demo orgs read-only unless admin) and what the operation does NOT do (no publish, no BigQuery refresh).

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?

Front-loaded with purpose, then the creation alternative, then the risky telemetry specifics, then success semantics—good prioritization. However, much of the allocation-shape and externalMetric guidance duplicates the already-rich schema description, and the long embedded example adds bulk; it is dense but defensible for a 9-parameter mutation tool.

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?

Given a complex 9-parameter mutation with no output schema, the description covers prerequisites (get_skill guide, list_metrics discovery), the exact success payload fields, failure behavior, and scope restrictions. An agent has everything needed to call it correctly and interpret the result.

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 description coverage is 100%, so baseline is 3, but the description genuinely adds meaning beyond the schema: declarative semantics of rules (omit to change metadata only; full replace when provided), sticky rule ids for reordering, and the specific externalMetric discovery/dateColumn/gapFillingMethod requirements for telemetry allocations. Minor gaps remain (conditionCel format, slug auto-detect behavior) that are only in 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?

States a specific verb and resource ("Upsert the virtual dimension draft for an existing virtualDimensionId") and immediately distinguishes the two operations it performs (update pending draft vs. seed from published state). Explicitly contrasts with create_virtual_dimension_draft, so an agent can tell the two apart 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 ("Use when the user asks to change a draft's rules or allocation") and when-not ("Use create_virtual_dimension_draft only for brand-new VDIMs"), plus pointers to the get_skill guide and list_metrics discovery flow. The decision boundary between update and create is unambiguous.

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