Skip to main content
Glama

Make a contract in one call

generate_contract

Make a finished contract in one call: give the contract type, your side's details and, if you know them, the other side's. Clauses you leave out take the standard option. One prepaid credit is spent (the same price as any contract); with no credit the answer is HTTP 402 with code PAYMENT_REQUIRED and nothing is created. Returns the contract as Markdown, then the deal id, the link where the person can read it in Dealroom and the Markdown, HTML, PDF, DOCX and TXT links (free to fetch again).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNoDPA and BAA only: the role you take (see roles in list_contract_types)
partyYesYour side (the side the API key acts for)
termsNoInputs by id (see inputs in list_contract_types). Send every required input in terms. A required input with a default can be left out: the default is applied.
titleNoName of the deal; made from the parties when left out
inlineNoThe contract itself in the answer: md (Markdown, the default here), html or txtmd
clausesNoOptional clause choices: clause id to option code (see get_template)
languageNoen
contractTypeYesCode (for example NDA) or guide slug (for example nda), from list_contract_types
counterpartyNoThe other side. Left out: its block stays blank for it to complete.
governingLawNoRequired when the contract type offers more than one
idempotencyKeyNoSend the same value when retrying, so a retry never makes or charges a second contract

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / governingLaw / enum
      Previous value: -[
      -  "CALIFORNIA",
      -  "NEW_YORK",
      -  "ENGLAND_WALES",
      -  "SPAIN"
      -]New value: +[
      +  "CALIFORNIA",
      +  "ENGLAND_WALES",
      +  "SPAIN"
      +]
    • changedInput schema / properties / terms / description
      Previous value: -"Inputs by id (see inputs in list_contract_types); required ones must be given"New value: +"Inputs by id (see inputs in list_contract_types). Send every required input in terms. A required input with a default can be left out: the default is applied."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare a mutating, closed-world tool, and the description goes well beyond that: it discloses that one prepaid credit is charged, that insufficient credit yields HTTP 402 PAYMENT_REQUIRED with nothing created, and that clause omissions fall back to standard options. It also documents the return payload (Markdown plus deal id, Dealroom link, and format links) and notes re-fetching is free.

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 sentences, front-loaded with the purpose and input expectation, then clause defaults, then cost/failure, then return shape. Dense but every clause carries information; the trailing enumeration of return links is slightly run-on but justified given there is no output schema.

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 an 11-parameter, nested-object tool with no output schema, the description covers the two burdens the schema cannot: payment/error behavior and the return format. It leaves implicit how to recover from errors other than insufficient credit and does not explain the role parameter, but the core requirements for a correct call are present.

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

Parameters4/5

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

Schema description coverage is 91%, so the schema already documents most parameters (baseline 3). The description adds genuine semantic value on omission behavior — unspecified clauses take the standard option and an absent counterparty leaves its block blank — which the schema does not spell out. It does not cover role or governingLaw specifics, keeping it below 5.

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+resource+scope: 'Make a finished contract in one call'. It is clearly distinguishable from siblings like initiate_negotiation (negotiation flow) and get_template (read-only), because it names the one-call, finished-output behavior. An agent can tell instantly this is the end-to-end contract creation path.

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?

It states what inputs to supply (contract type, your side's details, optionally the other side's) and the clause-default rule, giving clear context for invocation. It does not explicitly name alternatives or state when-not-to-use (e.g. use initiate_negotiation to negotiate terms first), so it stops short of a full when/when-not/alternatives treatment.

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.