Skip to main content
Glama

Add a supplier to the catalog

well_create_provider
Idempotent

Add a supplier to Well's provider catalog, from the draft of a well_lookup_provider result, and link it to this workspace. A portal the web found joins the catalog every workspace uses, and so does a link the person gave when the web finds the supplier's portal on that same site, as that portal's address. Any other link stays with this workspace only.

Call it only with the draft_ref of a well_lookup_provider "draft", in the turn where you showed that draft; the confirmation Well shows is the person's yes. Never edit the ref. A correction ("the portal is X", "call it Y") is a new well_lookup_provider call, which returns a new draft.

Nothing runs in the browser. The supplier then shows as a tile on the collect page, and a fetch of its invoices opens its portal address.

Read outcome. "created": the supplier is added; use provider.provider_id. "exists": another catalog row already held this portal address, and that row is the one linked. When provider.counterparty_matched is false, the missing-invoice list and the fetch preview still give that supplier row no provider: never say the row is linked. On refusal_reason "draft_ref_expired" or "draft_ref_invalid", look the supplier up again. On "slug_unusable", say Well could not add it and keep the row on manual upload.

Input Schema

NameRequiredDescriptionDefault
draft_refYesThe draft_ref of the well_lookup_provider result the person said yes to. Never edit it.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
idempotency_keyNoOptional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.
counterparty_company_idNoThe supplier row the draft was looked up for, so the confirmation names it.

Output Schema

NameRequiredDescriptionDefault
errorNo
outcomeNo
successYes
providerNo
logo_storedNoFalse when no logo was stored: the tile then shows the domain mark or the initials.
refusal_reasonNo
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedOutput schema / properties / provider / properties / counterparty_matched / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / properties / counterparty_matched / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / provider / properties / domain / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / properties / domain / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provider / properties / logo_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / properties / logo_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / provider / properties / portal_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / provider / properties / portal_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / newly_connected / description
      Previous value: -"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."New value: +"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (openWorld, idempotent, non-destructive), it discloses the catalog-sharing semantics (globally shared vs workspace-only portals), that nothing runs in the browser, that the supplier appears as a tile on the collect page, and that an invoice fetch opens its portal address. It also pre-empts a harmful misreport: when counterparty_matched is false, never say the row is linked.

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?

Front-loaded with purpose and the scoping rule, then the call discipline, then outcome handling — good ordering. Some sentences are tangled, notably the portal-sharing clause ('...and so does a link the person gave when the web finds the supplier's portal on that same site, as that portal's address'), which costs a reread.

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 write tool with a 6-param schema, an output schema, and a draft-based precondition, the description covers the precondition, the scoping rule, side effects, outcome branches ('created'/'exists'), the counterparty_matched caveat, and refusal recovery for all three listed reasons. Nothing an agent needs in order to call it or report back 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 real semantics the schema does not: the draft_ref lifecycle (must come from a lookup draft, must be used in the same turn, was already 'said yes to'), which is the only required parameter. The remaining params are fully documented in the schema.

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+resource ('Add a supplier to Well's provider catalog') and immediately ties it to the draft from well_lookup_provider, then explains the catalog-scoping rule that separates it from other creates. An agent can tell this apart from well_lookup_provider and from the many other well_create_* siblings.

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?

Explicit about when to call: only with the draft_ref of a well_lookup_provider draft, only in the turn the draft was shown, and that the confirmation card is the person's yes. It also states the exclusion — corrections are a new well_lookup_provider call, not a new ref — which is exactly the alternative the agent might otherwise pick.

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