Skip to main content
Glama

Act on a team's client portal

client_portal_action

For the person, at a team they are a client of. book: a time from the portal's booking page (start or slot_id, with service and resource when the page names them). add: a product_id to the basket. checkout: the basket. join: become the team's client. order: an offer_id from the home, with options.slot for a booking and method_id from its quote. action: an action on one of their own home rows (type, item, action). Every request except add first returns a preview with preview_id and a summary and changes nothing; after the person says yes, call again with the same arguments, confirm true and that preview_id. Paying is on the team's own payment page. Every answer names who acted.

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": {
      "team": "<team>",
      "request": "<request>"
    },
    "name": "client_portal_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoFor action: one of the person's home rows.
teamYesThe team's name, as the person says it.
typeNoFor order and action: a home service type id.
modelNoFor book: the booking list, when the portal has more than one.
startNoFor book: the time, from the booking page.
actionNoFor action: an action id on that row.
confirmNoOmitted returns a preview. True runs it once.
optionsNoFor order: {slot} from its quote.
requestYes
serviceNoFor book: the service, when the page names one.
slot_idNoFor book: a slot id from the booking page.
offer_idNoFor order.
quantityNoFor add. Defaults to 1.
resourceNoFor book: the person or room, when the page names one.
method_idNoFor order: a method id from its quote.
preview_idNoFrom the preview, when confirming.
product_idNoFor add.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

The description adds real behavior beyond the annotations: every request except 'add' returns a preview with preview_id and a summary and changes nothing until re-called with confirm=true and the same arguments, payment happens on the team's own page, and every answer identifies who acted. It does not cover failure modes or what happens if a preview_id is stale, so it stops short of a 5.

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

Conciseness3/5

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

It is compact and information-dense with no filler, and the preview/confirm rule is prominent. But the opening sentence is a dangling fragment and the request-type walkthrough is a run-on telegraphese that takes effort to parse into discrete branches.

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?

For a 17-parameter dispatcher with nested options and no output schema, the description does the necessary work: it explains the two-step confirmation protocol, states what a response contains (preview_id, summary, who acted), and rules out payment. Error handling and preview expiry are the remaining gaps.

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 description coverage is 94%, so the schema already documents the conditional 'For book/order/action' meaning of each parameter. The description largely restates that mapping ('options.slot for a booking', 'method_id from its quote') rather than adding new semantics, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition states the actor and scope ('the person, at a team they are a client of') and then enumerates the six concrete operations (book a slot, add a product, checkout the basket, join as client, place an order, act on a home row), so an agent knows precisely what class of operation this performs. It does not differentiate itself from the sibling 'client_portal' tool, which prevents a 5.

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

Usage Guidelines3/5

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

Per-request conditions are implied by the 'For <request>:' prefixes, and the preview-then-confirm flow tells the agent how to sequence calls. However, there is no explicit statement of when to choose this tool over 'client_portal' or other siblings, and no mention of prerequisites such as being a client of the team before calling 'join' vs other requests.

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.