Skip to main content
Glama

Create company

create_company

Create a company (B2B account). The company name must be unique in the workspace. representationState is explicitly declared (unspecified, works_alone, or has_representatives), never inferred from contacts; an individual always uses unspecified. Enforces the workspace plan limit; the result echoes the operating workspace. Use search_companies first to avoid creating a duplicate.

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

Input Schema

NameRequiredDescriptionDefault
ibanNoThe counterparty's IBAN. Optional.
nameYesThe company name. Required and unique within the workspace.
sizeNoCompany size band. Optional. One of: solo, small, medium, large, enterprise.
tagsNoTags for segmentation. Optional.
emailNoThe company email. Optional.
phoneNoThe company phone. Optional.
edrpouNoTax identifier: 8-digit EDRPOU or 10-digit taxpayer number. Optional.
statusNoRelationship status. Optional. One of: prospect, active, inactive.
ownerIdNoUser id of the workspace member who owns this company. Optional.
websiteNoThe company website URL. Optional.
bankNameNoThe counterparty's bank name. Optional.
industryNoThe company's industry. Optional.
taxGroupNoSingle-tax group. Only meaningful for a sole trader on the simplified system.
vatPayerNoWhether the counterparty is a VAT payer. Optional.
taxSystemNoTax system: simplified or general. Optional.
vatNumberNoVAT payer identifier. Optional.
creditLimitNoMaximum outstanding balance. Optional; requires creditLimitCurrency.
legalAddressNoLegal address. Optional.
deliveryAddressNoDelivery address. Optional.
counterpartyTypeNoCounterparty type: company, sole_trader, or individual. Defaults to company.
paymentTermsDaysNoAgreed payment term in days (0-365). Optional.
creditLimitCurrencyNoISO currency for creditLimit. Required when creditLimit is set.
representationStateNoDeclared representation state: unspecified, works_alone, or has_representatives. Never inferred from contact count.unspecified

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • addedInput schema / properties / bankName
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 160,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The counterparty's bank name. Optional."
      +}
    • addedInput schema / properties / counterpartyType
      Added value: +{
      +  "description": "Counterparty type: company, sole_trader, or individual. Defaults to company.",
      +  "enum": [
      +    "company",
      +    "sole_trader",
      +    "individual"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / creditLimit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Non-negative credit limit up to 999999999999.99.",
      +      "pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,2})?$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Maximum outstanding balance. Optional; requires creditLimitCurrency."
      +}
    • addedInput schema / properties / creditLimitCurrency
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Uppercase 3-letter ISO currency for the credit limit.",
      +      "maxLength": 3,
      +      "pattern": "^[A-Z]{3}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "ISO currency for creditLimit. Required when creditLimit is set."
      +}
    • addedInput schema / properties / deliveryAddress
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Delivery address. Optional."
      +}
    • addedInput schema / properties / edrpou
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Tax id: 8-digit ЄДРПОУ or 10-digit ІПН. Optional.",
      +      "maxLength": 20,
      +      "pattern": "^\\d{8}(\\d{2})?$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Tax identifier: 8-digit EDRPOU or 10-digit taxpayer number. Optional."
      +}
    • addedInput schema / properties / email
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "The company email. Optional.",
      +      "format": "email",
      +      "maxLength": 255,
      +      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The company email. Optional."
      +}
    • addedInput schema / properties / iban
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 34,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The counterparty's IBAN. Optional."
      +}
    • addedInput schema / properties / legalAddress
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Legal address. Optional."
      +}
    • addedInput schema / properties / paymentTermsDays
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Payment terms in whole days from 0 to 365.",
      +      "maximum": 365,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Agreed payment term in days (0-365). Optional."
      +}
    • addedInput schema / properties / phone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "The company phone. Optional.",
      +      "maxLength": 50,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The company phone. Optional."
      +}
    • addedInput schema / properties / representationState
      Added value: +{
      +  "default": "unspecified",
      +  "description": "Declared representation state: unspecified, works_alone, or has_representatives. Never inferred from contact count.",
      +  "enum": [
      +    "unspecified",
      +    "works_alone",
      +    "has_representatives"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "Tags for segmentation. Optional.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / taxGroup
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "group_1",
      +        "group_2",
      +        "group_3"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Single-tax group. Only meaningful for a sole trader on the simplified system."
      +}
    • addedInput schema / properties / taxSystem
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "simplified",
      +        "general"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Tax system: simplified or general. Optional."
      +}
    • addedInput schema / properties / vatNumber
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 20,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "VAT payer identifier. Optional."
      +}
    • addedInput schema / properties / vatPayer
      Added value: +{
      +  "description": "Whether the counterparty is a VAT payer. Optional.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed3 schema fields changed
    • addedInput schema / properties / industry / description
      Added value: +"The company's industry. Optional."
    • addedInput schema / properties / ownerId / description
      Added value: +"User id of the workspace member who owns this company. Optional."
    • addedInput schema / properties / website / description
      Added value: +"The company website URL. Optional."
  4. Changed6 schema fields changed
    • changedInput schema / properties / industry / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 120,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The company's industry. Optional.",
      +    "maxLength": 120,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / name / description
      Added value: +"The company name. Required and unique within the workspace."
    • changedInput schema / properties / ownerId / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "User id of the workspace member who owns this company. Optional.",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / size / description
      Added value: +"Company size band. Optional. One of: solo, small, medium, large, enterprise."
    • addedInput schema / properties / status / description
      Added value: +"Relationship status. Optional. One of: prospect, active, inactive."
    • changedInput schema / properties / website / anyOf
      Previous value: -[
      -  {
      -    "format": "uri",
      -    "maxLength": 255,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "The company website URL. Optional.",
      +    "format": "uri",
      +    "maxLength": 255,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations declare a non-idempotent write with no destruction, but the description adds traits beyond them: name uniqueness enforcement, workspace plan-limit enforcement, and that the result echoes the operating workspace. These are meaningful failure-mode and result-shape details the annotations do not carry.

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?

Four sentences, front-loaded with the purpose and unique-name constraint, then the semantic rules and the search-first guidance. Every sentence contributes, though the representationState clause is dense and could be tightened.

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 23-parameter tool with no output schema, the description covers the key invariants (uniqueness, plan limit, representation semantics) and hints at the return ('result echoes the operating workspace'). Combined with 100% schema coverage, an agent has what it needs, though error behavior on uniqueness/limit violations is only implied.

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, but the description adds a cross-field rule not stated in the schema: representationState is never inferred and an individual always uses unspecified. That extra semantics linking counterpartyType to representationState justifies above-baseline credit.

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+resource and clarifies the resource as a 'B2B account', which helps distinguish it from sibling creators like create_contact and create_lead. It stops short of explicitly routing the agent between those siblings, so it is clear but not fully differentiated.

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?

Explicitly names the alternative ('Use search_companies first to avoid creating a duplicate') and gives the condition that selects it, which is real routing guidance. It offers no when-not guidance or other alternatives, so it falls just short of the top band.

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.

Resources