Skip to main content
Glama

import_contract_group

Destructive

Take one proposed bundle over: creates the contract and attaches every file as a document that POINTS AT the original in the drive (nothing is copied — a copy ages and would have to be deleted when the original is, which nobody notices). Required: root_id, title, files (array of {file_id, name, role} as returned by scan_contract_files). Optional: every field of create_contract (ends_on, notice_months, auto_renew …) — the deadlines are then derived immediately. Returns the contract with its deadlines and the attached documents.

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": {
      "root_id": "<root_id>",
      "title": "<title>",
      "files": "<files>"
    },
    "name": "import_contract_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFiles of the bundle as returned by scan_contract_files
notesNoFree-text notes
titleYesTitle of the contract to create
ends_onNoEnd date of the contract term (ISO date); basis for derived deadlines
root_idYesID of the root folder
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
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
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. Changed20 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 / 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 / files / description
      Added value: +"Files of the bundle as returned by scan_contract_files"
    • addedInput schema / properties / files / items / properties / file_id / description
      Added value: +"ID of the file"
    • addedInput schema / properties / files / items / properties / name / description
      Added value: +"File name in the drive"
    • addedInput schema / properties / files / items / properties / role / description
      Added value: +"Role of the file in the bundle, e.g. contract or annex, as proposed by scan_contract_files"
    • 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_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 / root_id / description
      Added value: +"ID of the root folder"
    • addedInput schema / properties / starts_on / description
      Added value: +"Start date of the contract term (ISO date)"
    • addedInput schema / properties / title / description
      Added value: +"Title of the contract to create"
    • 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.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description still adds real context beyond them: documents are links to the originals rather than copies (with the reason), deadlines are derived immediately from the optional contract fields, and the return value is the contract with deadlines and attached documents. It does not cover partial-failure or permission behavior.

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 core action and its constraints are front-loaded in the first clause, and the parenthetical about copies aging is short and genuinely informative rather than filler. The single dense paragraph could be split into required/optional lines, but almost nothing is wasted.

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 17-parameter, no-output-schema tool, the description covers required vs optional inputs, the source of the nested files array, the derivation effect, and the return shape. Missing only edge-case behavior such as duplicate or partial imports and what happens when a file_id is invalid.

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 coverage is 100%, so the baseline is 3. The description still adds value by sorting the 17 parameters into required (root_id, title, files) and 'every field of create_contract', by tying the files array to scan_contract_files output shape, and by noting that supplying the term fields causes deadlines to be derived right away.

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 concrete verb and outcome — create the contract and attach every file as a document pointing at the original drive file — plus the key non-obvious property that nothing is copied. It names the sibling scan_contract_files as the source of the bundle, but it never distinguishes itself from create_contract or import_contract_from_folder, which an agent could easily confuse with this batch import.

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?

The workflow is implied: scan_contract_files proposes a bundle, then this tool takes it over, and the files array must come from that scan. There is no explicit when-to-use versus create_contract (single contract) or import_contract_from_folder, and no stated prerequisites or failure conditions, so the agent must infer the routing.

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.