Skip to main content
Glama
ALSO Cloud Marketplace MCP Server

ALSO Cloud Marketplace MCP Server

by pitwch

Validate subscription fields

validate_subscription_fields
Read-only

Validates a subscription account payload against service field rules before creation, catching missing or invalid values locally to return concrete errors instead of generic HTTP 500 responses.

Instructions

ValidateFields — validates a subscriptionAccount before create_subscription. Does not provision. First checks the payload locally against get_fields_for_service (mandatory fields, patterns, ranges, enum values) and returns the concrete problems instead of ALSO's generic HTTP 500. Not for: Azure Reserved Instances / Savings Plans (remote pricing, not supported by the Simple API): use order_azure_reservation.

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": {
      "subscriptionAccount": "<subscriptionAccount>"
    },
    "name": "validate_subscription_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscriptionAccountYesSubscriptionAccount payload; other API fields are passed through.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.5
    • changedInput schema / properties / subscriptionAccount / description
      Previous value: -"SubscriptionAccount payload to validate"New value: +"SubscriptionAccount payload; other API fields are passed through."
    • addedInput schema / properties / subscriptionAccount / properties
      Added value: +{
      +  "ContractId": {
      +    "type": "string"
      +  },
      +  "DependencyAccountId": {
      +    "description": "Dependency subscription, e.g. the Microsoft tenant subscription for Azure / RI products",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "Fields": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": {},
      +        "description": "Field name → value, e.g. {\"SKU\": \"...\", \"QuantityVcores\": 1}. Names from get_fields_for_service.",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "Name": {
      +              "type": "string"
      +            },
      +            "Value": {}
      +          },
      +          "required": [
      +            "Name",
      +            "Value"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    ],
      +    "description": "Field name → value OBJECT as ALSO expects, e.g. {\"Quantity\":5}. A [{Name,Value}] list is converted automatically. Field names and allowed values via get_fields_for_service."
      +  },
      +  "FieldsToValidate": {
      +    "description": "ValidateFields only: restrict validation to these field names",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "ParentAccountId": {
      +    "description": "Parent account: the company, but for Azure Reserved Instances / Savings Plans the customer Azure Plan subscription (precheck tells you the right ID)",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "PurchaseOrderCommitment": {
      +    "description": "CreateSubscription: true confirms the commitment term (BillingType, e.g. P1M / P1Y). Required by ALSO for Microsoft NCE products (\"requires purchase order commitment\"); set it only after the user confirmed product, term and price.",
      +    "type": "boolean"
      +  },
      +  "PurchaseOrderNumber": {
      +    "type": "string"
      +  },
      +  "QuoteId": {
      +    "type": "string"
      +  },
      +  "ScheduledDate": {
      +    "description": "YYYY-MM-DD",
      +    "type": "string"
      +  },
      +  "ServiceName": {
      +    "description": "Technical product name, exactly as returned by get_possible_services_for_parent (ProductName)",
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • removedInput schema / properties / subscriptionAccount / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / subscriptionAccount / required
      Added value: +[
      +  "ParentAccountId",
      +  "ServiceName",
      +  "Fields"
      +]
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces this with "Does not provision." It adds real behavioral value beyond the annotations by explaining that validation runs locally against get_fields_for_service (mandatory fields, patterns, ranges, enums) and yields concrete problems rather than ALSO's generic HTTP 500.

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?

Three tightly structured sentences with no filler; the scope and the exclusion are front-loaded and the alternative is last. Slightly dense with back-to-back clauses, but every sentence earns its place.

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

Completeness4/5

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

For a read-only pre-flight validator, the definition covers prerequisites, exclusions, alternatives, and the failure behavior — enough for an agent to use it correctly. The only minor gap is that the shape of the returned problems is described only loosely, which matters somewhat since there is no output schema.

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

Parameters3/5

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

Schema coverage is 100% and the single nested parameter is thoroughly documented inline, so the schema carries the parameter burden. The description adds only marginal meaning, pointing to get_fields_for_service as the source of valid field names — which the schema already states.

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?

The description opens with a specific verb and resource ("validates a subscriptionAccount") and immediately bounds the scope with "Does not provision." It explicitly distinguishes itself from create_subscription and order_azure_reservation, so an agent can route correctly without opening any 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?

It states the precise call position ("before create_subscription") and gives an explicit exclusion with the correct alternative: "Not for: Azure Reserved Instances / Savings Plans ... use order_azure_reservation." Both a when-to-use and a when-not-to-use with a named sibling are present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.