Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Find Or Create Organization

find_or_create_organization
Idempotent

Finds an organization by external reference, domain, or name, or creates it when absent, returning its ID without duplicates and filling only missing details.

Instructions

Find an organization, or create it when this workspace does not hold it yet.

Call it whenever a company comes up that you may record or act on: it is how you get an organization's id without making a duplicate. It matches by external reference, then domain, then name, and a match fills only the values the organization lacks, never overwriting one, so call it once with everything you know. To change a value it already holds use update_organization; for a list of more than a few companies use import_organizations. Matching a discovered lookalike promotes it to active.

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": "find_or_create_organization"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe company's name (required).
domainNoIts web domain, e.g. "acme.com"; a URL is reduced to its domain. The strongest match key after an external reference.
fieldsNoCustom field values by key, e.g. {"fit": "strong"}; list_fields lists the keys. A match keeps the values it holds and takes only the keys it lacks.
regionNoWhere it is based or operates (open text, e.g. "EMEA").
sourceNoWhere you learned of it (open text, e.g. "research", "manual", "import").
websiteNoIts website URL.
industryNoIts industry in your own words (open text, e.g. "Logistics software").
fields_byNoWho is setting these fields: an agent, a run, or a person.
external_refsNoWhat other systems call this record, as opaque URIs (e.g. "crm://people/123", or the source's own record URL). One a record here already holds is the match, ahead of every other key; one held by another record is refused as a conflict, never moved.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the match key precedence (external reference, then domain, then name) and the merge policy that a match fills only absent values and never overwrites, which is exactly the behavior an agent needs to avoid clobbering data. The line about promoting a discovered lookalike to active hints at a state transition, but it is terse and does not say what creation does on conflict beyond the external-ref refusal noted in the schema.

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 short paragraphs, correctly front-loaded with purpose, then usage and alternatives, then merge mechanics. Slightly dense phrasing such as "Matching a discovered lookalike promotes it to active" requires a re-read, which keeps it just short of fully crisp.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters, an output schema, and idempotency already declared in annotations, the description covers the remaining gaps an agent would worry about: duplicate risk, merge/overwrite policy, and the correct sibling tool for adjacent jobs. Nothing essential to calling it correctly is missing.

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 meaning beyond the schema by ordering the match keys and urging a single call with everything known, which affects how name/domain/external_refs are supplied. It does not clarify the semantics of region, source, or fields_by beyond what the schema text already provides.

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 opening sentence states a specific verb pair and resource: find an organization, or create it when the workspace does not already hold it. That scope immediately separates it from update_organization (change existing values) and import_organizations (bulk), both named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger ("Call it whenever a company comes up that you may record or act on"), the goal it serves (getting an id without creating a duplicate), and two named alternatives with the conditions that select them: update_organization for changing held values, import_organizations for more than a few companies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.