Skip to main content
Glama
SmartBear MCP server

SmartBear MCP server

Official
by SmartBear

Contract Testing: Update Environment

contract-testing_update_environment
Idempotent

Update an existing contract testing environment's metadata, including its name, production status, display name, and owning teams.

Instructions

Update an existing environment's metadata.

Toolset: Environments and Deployments

Parameters:

  • environmentId (string) required: UUID of the environment to update

  • name (string) required: Unique name for the environment

  • production (boolean) required: Whether this is a production environment

  • displayName (string): Human-readable display name

  • teamUuids (array): UUIDs of teams that own this environment

Input Schema

NameRequiredDescriptionDefault
nameYesUnique name for the environment
teamUuidsNoUUIDs of teams that own this environment
productionYesWhether this is a production environment
displayNameNoHuman-readable display name
environmentIdYesUUID of the environment to update

Output Schema

NameRequiredDescriptionDefault
nameNo
uuidNo
_linksNo
contactsNo
_embeddedNo
createdAtNo
isDefaultNo
teamUuidsNo
updatedAtNo
productionNo
displayNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.43.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Contact": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "details": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "EmbeddedLink": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "href": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "templated": {
      +          "type": "boolean"
      +        },
      +        "title": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "EmbeddedTeam": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "_links": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "self": {
      +              "$ref": "#/$defs/EmbeddedLink"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "isDefault": {
      +          "type": "boolean"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "uuid": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "_embedded": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "teams": {
      +          "items": {
      +            "$ref": "#/$defs/EmbeddedTeam"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "_links": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "pb:currently-deployed-deployed-versions": {
      +          "$ref": "#/$defs/EmbeddedLink"
      +        },
      +        "pb:currently-supported-released-versions": {
      +          "$ref": "#/$defs/EmbeddedLink"
      +        },
      +        "pb:environments": {
      +          "$ref": "#/$defs/EmbeddedLink"
      +        },
      +        "self": {
      +          "$ref": "#/$defs/EmbeddedLink"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "contacts": {
      +      "items": {
      +        "$ref": "#/$defs/Contact"
      +      },
      +      "type": "array"
      +    },
      +    "createdAt": {
      +      "type": "string"
      +    },
      +    "displayName": {
      +      "type": "string"
      +    },
      +    "isDefault": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "production": {
      +      "type": "boolean"
      +    },
      +    "teamUuids": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "updatedAt": {
      +      "type": "string"
      +    },
      +    "uuid": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Addedv0.40.0
  3. Removedv0.34.0
  4. First observedv0.27.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that only metadata is modified (not deployment records) and that name and production are required, implying a full-replacement update rather than a partial patch. It does not say what happens to omitted optional fields such as teamUuids or displayName, nor whether existing values are cleared.

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

Conciseness3/5

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

The purpose sentence is front-loaded and clear, but it is followed by a toolset label and a full parameter list that duplicates a 100%-covered schema. Roughly half the text does not earn its place given the structured fields already available.

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?

An output schema exists, so return values need not be explained, and annotations cover idempotency and safety. What remains missing is the semantics of partial updates — whether omitting displayName or teamUuids leaves them unchanged or clears them — which matters for a mutation tool with two optional fields.

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 description coverage is 100%, so the schema already documents all five parameters, and the description's parameter list repeats those definitions nearly verbatim. It adds no new meaning such as format constraints, whether teamUuids replaces or appends, or the consequence of renaming the environment. Baseline 3 applies when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Update an existing environment's metadata." This clearly distinguishes it from contract-testing_create_environment, contract-testing_delete_environment, and contract-testing_get_environment by the verb alone, though the description never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this instead of create_environment or delete_environment, and no stated prerequisites such as needing a valid environmentId from list_environments. The only usage signal is the word "existing," which an agent must infer means the environment must already be present.

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

Deploy Server

Other Tools