Skip to main content
Glama

ERP: Create or edit a client card

erp_client_save
Destructive

Create a client card or change one: name, phone, e-mail, Telegram, city, address, and/or add a note to it. 'client' = the name as said (an existing card of that name is edited; a name nobody has creates a new card — a card with the same name, phone or e-mail is refused as a duplicate, unless new_client=true); several matches are refused with candidates → ask, then organization_id. Only the fields the person named are sent. Proposed write: one card «Новий клієнт / Змінити клієнта» with before → after. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": "erp_client_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
noteNoA note to add to the card.
emailNo
phoneNo
titleNoA new name for the card.
clientNo
addressNo
telegramNo
new_clientNo
organization_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already flag a destructive, non-read-only write, but the description adds substantial context beyond them: this tool never performs the write itself — it returns status='confirmation_required' with an action_id and plan_token, and the change only lands after confirm_action. It also discloses the preview payload ('one card «Новий клієнт / Змінити клієнта»' with before → after), the duplicate-refusal rule, and that only the fields the person actually named are sent.

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 purpose is front-loaded in the first clause, and the confirmation contract is placed last as an unambiguous closing instruction. The long parenthetical about duplicates and the em-dash chain make the middle denser than it needs to be, but each sentence carries operational meaning rather than filler.

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 10-parameter, zero-required, output-schema-less mutation tool, the definition covers the critical unknowns: the confirmation gateway, duplicate handling, ambiguity resolution, and partial-update semantics. Remaining gaps are the rename (title vs client) interaction and what a call with no identifying field at all should do.

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 description coverage is only 20% (note and title documented), so the description carries real weight and discharges most of it: it explains 'client' as the spoken name and its create-vs-edit behavior, spelling out that organization_id is the disambiguation key after asking, and that new_client=true bypasses the duplicate check. It enumerates the field set (name, phone, e-mail, Telegram, city, address) but never explains how the 'title' parameter (a rename) differs from 'client', which is the one genuinely ambiguous pair in a 10-parameter 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?

The opening clause 'Create a client card or change one' gives a specific verb pair (create/edit) and resource, and the very next words enumerate the concrete fields involved. It also spells out the dual semantics of the 'client' parameter — a name that exists is edited, a name nobody has creates a card — so an agent can predict the outcome of a call without opening the schema.

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?

The definition gives explicit conditions: duplicates by name/phone/e-mail are refused unless new_client=true, multiple matches are refused and must be resolved by asking the user then passing organization_id, and the actual write requires confirm_action with the returned action_id and plan_token. It names the confirm_action step as the mandatory follow-up, though it never points to erp_client_find for the lookup/disambiguation path.

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