Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Contract Testing: Publish Provider Contract

contract-testing_publish_provider_contract
Idempotent

Publish a provider's OpenAPI or AsyncAPI contract with self-verification results to PactFlow for bi-directional contract testing, specifying provider version and optional tags, branch, and build URL.

Instructions

Publish a provider OpenAPI or AsyncAPI contract and self-verification results to PactFlow (Bi-Directional Contract Testing).

Toolset: Contracts

Parameters:

  • providerName (string) required: Name of the provider application

  • pacticipantVersionNumber (string) required: Version number of the provider

  • contract (object) required: Provider contract (OpenAPI or AsyncAPI spec) and verification details

  • tags (array): Version tags

  • branch (string): Branch name of the provider

  • buildUrl (string): URL of the CI build

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoVersion tags
branchNoBranch name of the provider
buildUrlNoURL of the CI build
contractYesProvider contract (OpenAPI or AsyncAPI spec) and verification details
providerNameYesName of the provider application
pacticipantVersionNumberYesVersion number of the provider
Install Server

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already provide the key behavioral profile: not read-only, idempotent, and non-destructive. The description adds context about PactFlow and bi-directional contract testing, but it does not describe side effects such as whether an existing contract is replaced or whether the provider must already exist. No contradiction with annotations.

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 strong and front-loaded, but the parameter list largely duplicates the input schema and adds limited value. The 'Toolset: Contracts' line is minor filler. The description is not bloated, but it could be shorter and more additive.

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 six-parameter tool with a nested required contract object, the schema plus description cover all necessary input semantics, and the annotations cover the safety profile. It does not describe response or error behavior, and no output schema exists, but nothing critical is missing for invoking the tool correctly.

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?

The input schema has 100% parameter coverage with detailed descriptions, including nested fields like selfVerificationResults. The description repeats definitions such as 'contract (object): Provider contract...' without adding new constraints, examples, or clarifications beyond 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?

The opening sentence is explicit: 'Publish a provider OpenAPI or AsyncAPI contract and self-verification results to PactFlow.' This gives a specific verb, resource, and target system. The 'provider' wording also distinguishes it from the sibling publish_consumer_contracts tool.

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

Usage Guidelines4/5

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

The description makes the intended use clear: publish a provider contract with self-verification details to PactFlow. It does not explicitly name alternatives or say when not to use it, but the provider-focused wording is enough to route an agent to the correct sibling tool in most cases.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SmartBear/smartbear-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server