Skip to main content
Glama

create_contract

Destructive

Register a contract. Required: title. Optional: contract_type (rental|service|maintenance|lease|insurance|supply|license|loan|purchase|cooperation|employment|nda|other), our_role (customer|provider|landlord|tenant|partner|other — it decides whether a notice period binds US or the other side), counterparty_name, account_id, contact_id (main counterparty), our_account_id (which of OUR group companies is the party), lead_id, starts_on, ends_on, auto_renew, renew_months, notice_months, value_amount, value_currency, value_period, reference, notes, source_root_id + source_file_id (point at the original file in a connected drive instead of copying it), status. Deadlines are derived automatically from ends_on + notice_months, including auto-renewal rolled forward to the next date that is still in the future.

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": {
      "title": "<title>"
    },
    "name": "create_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoFree-text notes
titleYesTitle of the contract
statusNoInitial status
ends_onNoEnd date of the contract term (ISO date); basis for derived deadlines
lead_idNoID of the lead
our_roleNoOur side in the contract (customer, provider, landlord, tenant, partner, other); decides whom a notice period binds
referenceNoExternal reference or contract number; used for idempotent imports
starts_onNoStart date of the contract term (ISO date)
account_idNoID of the account (company)
auto_renewNoWhether the contract renews automatically when not terminated
contact_idNoID of the contact
renew_monthsNoLength of each automatic renewal in months
value_amountNoContract value per value_period
value_periodNoPeriod the value refers to, e.g. month, quarter, year or once
contract_typeNoContract type, e.g. rental, service, maintenance, lease, insurance, nda or other
notice_monthsNoNotice period in months before the term ends
our_account_idNoID of the own company (account)
source_file_idNoID of the source file
source_root_idNoID of the source root folder
value_currencyNoCurrency of the contract value, e.g. EUR or CHF
counterparty_nameNoName of the other contracting party

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / auto_renew / description
      Added value: +"Whether the contract renews automatically when not terminated"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / contract_type / description
      Added value: +"Contract type, e.g. rental, service, maintenance, lease, insurance, nda or other"
    • addedInput schema / properties / counterparty_name / description
      Added value: +"Name of the other contracting party"
    • addedInput schema / properties / ends_on / description
      Added value: +"End date of the contract term (ISO date); basis for derived deadlines"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes"
    • addedInput schema / properties / notice_months / description
      Added value: +"Notice period in months before the term ends"
    • addedInput schema / properties / our_account_id / description
      Added value: +"ID of the own company (account)"
    • addedInput schema / properties / our_role / description
      Added value: +"Our side in the contract (customer, provider, landlord, tenant, partner, other); decides whom a notice period binds"
    • addedInput schema / properties / reference / description
      Added value: +"External reference or contract number; used for idempotent imports"
    • addedInput schema / properties / renew_months / description
      Added value: +"Length of each automatic renewal in months"
    • addedInput schema / properties / source_file_id / description
      Added value: +"ID of the source file"
    • addedInput schema / properties / source_root_id / description
      Added value: +"ID of the source root folder"
    • addedInput schema / properties / starts_on / description
      Added value: +"Start date of the contract term (ISO date)"
    • addedInput schema / properties / status / description
      Added value: +"Initial status"
    • addedInput schema / properties / title / description
      Added value: +"Title of the contract"
    • addedInput schema / properties / value_amount / description
      Added value: +"Contract value per value_period"
    • addedInput schema / properties / value_currency / description
      Added value: +"Currency of the contract value, e.g. EUR or CHF"
    • addedInput schema / properties / value_period / description
      Added value: +"Period the value refers to, e.g. month, quarter, year or once"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false), so the description is free to add substance, and it does: deadlines are derived automatically from ends_on + notice_months, including auto-renewal rolled to the next future date. That discloses a real side effect (deadline records created behind the scenes) plus the semantic consequence of our_role on whom a notice period binds. It stops short of stating permission requirements or the response shape.

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?

The purpose sentence is front-loaded and the rest is a compact required/optional enumeration with inline parenthetical explanations, dense but with little wasted wording for 21 parameters. It is a single undifferentiated block, so scanning for a specific field takes effort, but no sentence is filler.

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 21-parameter mutation tool with no annotations beyond generic hints, the definition covers required vs optional, enum-ish values, role semantics, and the derived-deadline side effect — most of what an agent needs to call it correctly. Remaining gaps are modest: what is returned (e.g. a contract ID) and any permission or duplicate-handling behavior, with the schema hinting at idempotency via 'reference' that the description never addresses.

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%, so the baseline is 3, and the description largely mirrors the schema's own field list. It earns some credit above mere repetition by explaining consequences ('our_role ... decides whether a notice period binds US or the other side'), the purpose of the source_root_id + source_file_id pair (point at the original file instead of copying), and that ends_on + notice_months drive derived deadlines.

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?

The description opens with a specific verb and resource ('Register a contract') and then enumerates every creatable field, so an agent knows exactly what this tool produces. It does not, however, distinguish itself from siblings such as import_contract_from_folder or update_contract, even though the source_root_id/source_file_id mention gestures at the import flow without naming the alternative.

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: the field list communicates 'use this to hand-create a contract record with these attributes,' and the source-file pairing hints at a linking rather than copying scenario. There is no explicit statement of when to prefer this over import_contract_from_folder, scan_contract_files, or update_contract, and no prerequisites or exclusions are given.

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.