Skip to main content
Glama

Invite Vendor User

invite_vendor_user

Invite a supplier's contact to the vendor portal, where they see the purchase orders sent to that supplier, update shipping, and propose changes. Name an existing supplier (id or exact name), or pass newSupplierName to create the supplier with the invitation (its email becomes the supplier's email). On commit Spark emails the invitation link. Refused for an invalid email, an email that already signs in to a portal of this account, and, for a new supplier, an email another supplier or pending invitation already uses. Requires an operator (unpinned) credential and an Admin user.

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

Input Schema

NameRequiredDescriptionDefault
emailYesThe contact's email address; the invitation is sent here.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
lastNameNoThe contact's last name.
supplierNoAn existing supplier's id (GUID) or exact name.
firstNameNoThe contact's first name.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.
newSupplierNameNoName of a supplier to create with the invitation; use instead of supplier.

Output Schema

NameRequiredDescriptionDefault
okNo
userNo
previewNo
emailSentNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the required two-step preview/commit flow, that an email is actually sent on commit, that the new supplier inherits the contact's email, and three specific refusal conditions (invalid email, email already in a portal of this account, email collision for new suppliers). This is exactly the side-effect and failure-mode context an agent needs before a non-readOnly write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with purpose, then parameter routing, then side effect, then refusal/auth constraints. No sentence is redundant and none restates the tool name.

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 an 8-parameter, open-world, non-idempotent write with an output schema, the description covers everything the agent must decide: which supplier mode, that a preview step is mandatory, that commit sends an email, what causes refusal, and what authorization is needed. Return values are appropriately delegated to the output schema.

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; the description adds real meaning on top by explaining that newSupplierName creates the supplier and that the invitation email becomes that supplier's email, and by contrasting supplier vs newSupplierName as alternatives. The previewReceipt/idempotencyKey mechanics are left to the schema, which already documents them well.

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?

States a specific verb and resource ('Invite a supplier's contact to the vendor portal') and immediately defines the scope of what that user can do there (see POs, update shipping, propose changes). This distinguishes it from the sibling invite_b2b_customer, which targets a different portal audience.

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?

Clear conditional routing between the two modes: name an existing supplier by id or exact name, or pass newSupplierName to create one with the invitation. It also states the prerequisite credentials (operator unpinned credential, Admin user). It does not explicitly name a sibling alternative, but the mode selection guidance is unambiguous.

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