Skip to main content
Glama

List B2B Customers

list_b2b_customers
Read-only

List the B2B store's customer logins (contacts who accepted an invitation, each tied to the customer whose prices and orders they see), newest first, and the invitations still waiting to be accepted, as the B2B Customers page under Setup does. search matches a contact's name or email or the customer's name. Invite another contact with invite_b2b_customer. Requires an operator (unpinned) credential and the Admin role.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_b2b_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number; default 1.
searchNoText to match against contact name, email, or customer name.
pageSizeNoRows per page for each list; default 50, max 200.

Output Schema

NameRequiredDescriptionDefault
pageNo
pageSizeNo
customersNo
customersTotalNo
pendingInvitationsNo
pendingInvitationsTotalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a read-only, non-destructive, closed-world operation, and the description adds behavior beyond that: the required credential type and Admin role, the newest-first ordering, and the fact that the result contains two lists (accepted contacts and pending invitations). It does not discuss pagination coupling across the two lists or size/rate limits, which would push it higher.

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 resource and its scope are front-loaded in the first clause, and each subsequent sentence adds something usable (search semantics, the invitation alternative, the auth prerequisite). The long parenthetical definition is dense but earns its place; minor tightening is possible.

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?

With an output schema present, return-value detail is not required, and the description still sketches the two result sets. Combined with schema-level pagination docs and the stated auth requirement, an agent has what it needs to call the tool correctly; only edge behavior around how paging applies to two separate lists is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents page, search, and pageSize. The description restates what search matches (contact name, email, customer name), which duplicates the schema rather than adding new semantics such as tokenization or case sensitivity, and says nothing new about page/pageSize.

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 description opens with a specific verb and resource: it lists the B2B store's customer logins plus pending invitations, and states ordering (newest first). It also clarifies what a 'login' is (a contact who accepted an invitation, tied to a customer whose prices/orders they see), which distinguishes this from list_clients and other list tools.

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 explains what the tool covers and explicitly routes the agent to invite_b2b_customer when the goal is to add a contact rather than read. It also states the access precondition (operator unpinned credential, Admin role). It does not explicitly exclude other lookups such as list_clients, so it stops short of full when/when-not guidance.

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