Skip to main content
Glama

Costory: Your Finops MCP

create_virtual_dimension_draft

Create a new virtual dimension draft without publishing. virtualDimensionId in inputs equals id from list/get/search. Use when the user wants a first, unpublished version of a custom cost-splitting dimension. The get_skill guide "virtual-dimensions" explains allocation shapes, CEL rules, and full 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. bqName (BigQuery/CEL query field, e.g. Environment → virtual_environment) is set once from name at create and is immutable. Ordered rules use conditionCel + allocation — do not send rule id (generated on save) or values (derived). Do not include catch-all/leftover in rules — leftoverRule is auto-added. Rejects invalid payloads — nothing persisted unless validation passes. On success: virtualDimensionId, bqName, name, description, tags, values, rules with generated ids, leftoverRule, draftValidation: { ok: true }, draftPersisted: true. Use preview_virtual_dimension_draft next. Use returned bqName for groupBy/filterCel in query after publish. 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: "Draft an Environment VDIM with a prod rule" → { name: "Environment", tagNames: ["finops"], rules: [{ name: "Production", conditionCel: "cos_environment in ["prod"]", allocation: { allocationType: "dimensionValue", dimensionValue: "prod" } }] }

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": {
      "name": "<name>",
      "context": "<context>"
    },
    "name": "create_virtual_dimension_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new virtual dimension
slugNoOrganization slug. Omit to auto-detect from your account (fails if you belong to multiple orgs).
rulesNoOrdered rules with conditionCel and allocation
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.
tagNamesNoTag names to attach (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 longer description (default empty).
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.

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: -[
      -  "name",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "name",
      +  "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: -[
      -  "name"
      -]New value: +[
      +  "name",
      +  "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.9/5.0
Behavior5/5

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

Goes well beyond the annotations: invalid payloads are rejected and nothing is persisted unless validation passes; leftoverRule is auto-added; rule ids are generated on save; bqName is immutable after create; Clerk MCP only; demo orgs are read-only unless the caller is an org admin. It even enumerates the success response fields in the absence of an output schema.

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?

The purpose and usage are front-loaded, and the example payload is useful. However, the telemetry/BigQuery field guidance substantially duplicates what already appears in the allocation sub-schema description, making the block longer than strictly necessary for a tool this complex.

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 8-parameter mutation with nested rules and no output schema, the description covers prerequisites, side effects, validation behavior, return fields, follow-up tools, and auth constraints. Nothing essential to correct invocation 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?

Though schema coverage is 100%, the description adds substantial meaning: the externalMetric discovery flow via list_metrics with includeExternal, the BigQuery/S3 requirement for dateColumn/metricColumn/gapFillingMethod with a FORWARD_FILL default, the prohibitions on setting `datasource` for new reallocations and on sending rule `id` or `values`, and how bqName is derived from `name`.

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?

Specific verb+resource: 'Create a new virtual dimension draft without publishing.' It immediately distinguishes the draft-creation step from preview_virtual_dimension_draft and publish_virtual_dimension, and clarifies that the input `virtualDimensionId` maps to `id` from list/get/search.

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?

Explicitly states the trigger condition ('when the user wants a first, unpublished version of a custom cost-splitting dimension') and names the next step ('Use preview_virtual_dimension_draft next'). It also states what the tool does not do ('Does not publish or refresh BigQuery'), leaving little to infer.

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