Skip to main content
Glama

upsert_company_by_domain

Destructive

Create the canonical CRM company record for a website domain when none exists, or update it when it does. Pass domain plus at least one of seed (name, industry, size, address, linkedIn, headQuartersCountry; applied only when the company is created) or fields (allowed keys: fiberDetails, industry, description, address, headQuartersCountry, linkedIn, companyTwitterUrl, linkedInLogoUrl, size, yearFounded, companyType; applied on every call, overwriting the stored values of an existing record). Optional nameFromEnrichment replaces a placeholder name that still equals the domain. Returns { data: { created, _id, domain } } where data._id is the company id. This writes only the company record that all FuseAI accounts share for this domain, so a change shows for every account that has this company; it does not mark the company as saved for the user. The record is part of FuseAI's own company catalog: the call itself reaches no outside service and starts no job or automation, but running campaigns use these company details when writing AI messages to prospects at this company, in any account, so an update changes what those prospects are sent.

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

Input Schema

NameRequiredDescriptionDefault
seedNo
domainYes
fieldsNo
nameFromEnrichmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: 'fields' overwrites stored values on every call, the record is shared by all FuseAI accounts for that domain, and updates change what prospects in running campaigns are sent. It also disclaims job/automation side effects. That is exactly the kind of impact disclosure an agent needs before a destructive shared-state write.

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 create-or-update action is front-loaded, and the dense back half is not padding — the shared-record and campaign-impact warnings materially change how an agent should behave. It is a long single block of prose, though, with nested parentheticals that make it slower to scan than necessary.

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 4-parameter, nested-object mutation with no output schema, the description covers the return shape ({ data: { created, _id, domain } }) and the shared-state blast radius, so an agent can call it without further discovery. Remaining gaps are value formats for the loosely typed `fields` keys and error/validation behavior for a bad domain.

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?

With 0% schema description coverage and a `fields` object whose properties are entirely untyped, the schema provides almost nothing. The description compensates by enumerating allowed `fields` keys and the `seed` subkeys, and by explaining the crucial semantic difference that `seed` applies only on creation while `fields` applies every call. It still does not hint at expected value formats for untyped keys like fiberDetails or yearFounded.

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+resource+scope: 'Create the canonical CRM company record for a website domain when none exists, or update it when it does.' An agent immediately knows this is a domain-keyed upsert on a shared CRM company catalog. It never names the close sibling create_company_from_domain, so the create-vs-upsert distinction with that tool is left for the agent to infer.

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 clearly states the create-or-update condition and adds a useful exclusion of side effects: the call does not mark the company as saved for the user and does not reach an outside service. What is missing is any routing guidance against alternatives such as create_company_from_domain or update_user_company, which an agent could easily pick instead.

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.