Skip to main content
Glama

generate_pact_contract_test

Generate Pact V3 consumer contract tests: one test per interaction ("GET /orders/1 200" or {description, state, method, path, status, requestBody, responseBody}), plus provider verification setup

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": {
      "consumer": "<consumer>",
      "provider": "<provider>"
    },
    "name": "generate_pact_contract_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
consumerYes
protocolNo
providerYes
interactionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / interactions / items / anyOf
      Added value: +[
      +  {
      +    "description": "METHOD /path [status]",
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "method": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "requestBody": {
      +        "type": "object"
      +      },
      +      "responseBody": {},
      +      "state": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / interactions / items / type
      Removed value: -"string"
  2. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden. It does reveal the output shape (one test per interaction, plus provider verification setup), but it never says which language/framework the emitted files target, where they are written, whether existing files are overwritten, or how the provider verification is configured — all material for a generator tool.

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?

A single dense sentence that front-loads the tool's purpose and then the output contract. The parenthetical list is information-dense rather than padded, though the mixed brace/parenthesis notation is slightly harder to parse than a clean bullet-style enumeration.

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

Completeness3/5

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

No output schema exists to explain returns, so the description correctly covers the per-interaction test generation and provider verification. But for a 4-parameter generator with zero annotation and zero schema description coverage, it omits the generated file target/language, protocol-specific behavior for GraphQL, and any guidance on how requestBody/responseBody map into the contract.

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 0%, so the description must compensate. It does add real meaning for `interactions` by spelling out both accepted forms ("GET /orders/1 200" string shorthand and the object with description/state/method/path/status/requestBody/responseBody), which is genuinely beyond the raw schema. However, `consumer`, `provider`, and especially `protocol` (http vs graphql) are given no semantics in either place, leaving half the parameter surface undocumented.

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 ("Generate Pact V3 consumer contract tests") and scopes the output (one test per interaction plus provider verification setup). It is clear what the tool produces, but it never distinguishes itself from the nearby generic `generate_contract_tests` or the many other test generators, so an agent must infer that this is the Pact-specific variant.

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

Usage Guidelines3/5

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

Usage is only implied by the format name: if you need Pact V3 consumer contracts, use this. There is no explicit when-to-use/when-not statement, no mention of prerequisites (Pact library installed, pact broker availability), and no named alternative such as generate_contract_tests for non-Pact contract styles.

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.