Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Create Opportunity

create_opportunity

Create a CRM pipeline deal on an account or contact with stage, value, close date, custom fields, and an idempotency key to prevent duplicates on retries or imports.

Instructions

Create a deal (an opportunity in the pipeline) on an account or a contact.

A deal has no natural dedupe key: two deals on one account with the same title are often both real (a renewal each year, a second pilot), so this never matches an existing deal by title or account. Check first with list_opportunities(organization_id=..., query=...), and create only when nothing there is the deal you mean; to change one that exists, use update_opportunity or move_opportunity. Pass idempotency_key when a retry or an import must not create a duplicate: a repeat with the same key returns the deal the first call created. Without that key every call creates a new deal.

Give an organization_id (the account), a primary_contact_id, or both; with only a contact, the account is taken from that contact's organization.

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_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
stageNoA stage key from this workspace's pipeline (get_pipeline); defaults to the first open stage. A key the pipeline does not hold is refused, naming the ones it does.
titleYesWhat the deal is (required), e.g. "Acme 2027 renewal".
valueNoThe deal's size, in its currency.
fieldsNoCustom field values by key; list_fields(entity="opportunity") lists them. A repeat with the same idempotency_key keeps the values the deal holds.
sourceNoWhere the deal came from (open text, e.g. "manual", "import").
currencyNoAn ISO 4217 code, e.g. "USD".
fields_byNoWho is setting the fields, when the values do not say.
close_dateNoThe target close date (ISO-8601 date).
probabilityNoThe deal's own win probability, 0-100; omit to take the stage's default.
idempotency_keyNoA token of your choosing that makes a retry or an import converge: a repeat with the same key returns the deal the first call created.
organization_idNoThe account the deal is with.
primary_contact_idNoThe deal's main contact.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses the key non-obvious behavior: there is no natural dedupe key, so titles/accounts are never matched, and without idempotency_key every call creates a new deal. That is consistent with idempotentHint=false but adds the crucial nuance that a key can make retries converge. Deduplication semantics are exactly the behavior an agent would otherwise get wrong here.

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 tight paragraphs ordered by importance: what it creates, whether to create at all, then the identifier constraint. Slightly long, and the idempotency explanation is delivered twice (paragraph one and again implicitly), but every sentence carries usable information.

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?

For a 12-parameter mutation with an output schema, the description covers the decision of whether to call, duplicate/idempotency behavior, and the identifier requirement — the parts structured fields cannot express. Return values are covered by the output schema, so no gap remains.

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 genuine constraint not expressible in the schema: at least one of organization_id or primary_contact_id is required, and with only a contact the account is resolved from that contact's organization. It restates the idempotency_key behavior rather than adding new syntax, which keeps it short of a 5.

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?

Opens with a specific verb plus resource and disambiguates the domain vocabulary — "Create a deal (an opportunity in the pipeline) on an account or a contact" — so an agent knows both the operation and the object model. It is immediately distinguishable from siblings that mutate existing deals (update_opportunity, move_opportunity).

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?

Gives an explicit pre-flight check ("Check first with list_opportunities(organization_id=..., query=...)") with the concrete arguments to use, plus a when-not rule ("create only when nothing there is the deal you mean") and named alternatives for modification (update_opportunity, move_opportunity). Nothing about tool selection is left to inference.

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