Skip to main content
Glama

create_or_update_user

Idempotent

Upsert a Zendesk user by matching email or external_id: updates the existing record when a match exists, otherwise creates a new user.

Instructions

Upsert a user: updates the existing user with a matching email/external_id, otherwise creates one.

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": {
      "user": "<user>"
    },
    "name": "create_or_update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesUser attributes. Matched on email or external_id; e.g. {'name':'Jane','email':'jane@acme.com','role':'end-user','organization_id':123,'user_fields':{'plan':'pro'}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is largely covered. The description does add the match-key behavior (email/external_id) beyond the annotations, but is silent on what happens to fields omitted on an existing user, how ties/multiple matches are resolved, and what is returned.

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?

One front-loaded sentence with zero waste: the operation, the condition, and the two outcomes. Nothing could be removed without losing meaning.

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 single nested-object parameter with full schema coverage and annotations carrying the safety and idempotency profile, this is close to sufficient. The one meaningful omission is update semantics for omitted fields (merge vs. replace), which matters for a nested-payload upsert.

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% and the nested 'user' property description already spells out the match keys and an example payload, so the schema does the heavy lifting. The description reinforces the matching semantics but adds no field-level meaning beyond it, which matches the baseline of 3 for full coverage.

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?

States a specific verb (upsert) and resource (user) and explains the matching rule that decides create-vs-update, which separates it from the plain get_user/create_* siblings. It stops short of naming any sibling to route against, so it is clear but not maximally differentiated.

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?

Usage is only implied by the upsert semantics: an agent can infer 'use this when you don't know whether the user exists yet.' There is no explicit when-not guidance, no mention of an alternative for guaranteed-create or guaranteed-update flows, and no prerequisites such as required permissions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.