Skip to main content
Glama

HDPhotoHub MCP by usefulapi

Create or update a user

hdphotohub_upsert_user
Idempotent

WRITE: create a user (no uid) or update one (uid or email of an existing user). API: PUT /user.

Input Schema

NameRequiredDescriptionDefault
gidNoGroup id.
uidNoExisting user id to update.
nameNo
typeNo
emailNo
phoneNo
titleNo
statusNo
websiteNo
lastnameNo
firstnameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The description reinforces the write nature and discloses the PUT /user endpoint plus uid/email-based update targeting, which is useful beyond the idempotentHint annotation. However, it does not explain partial-update semantics, field replacement behavior, permission requirements, or side effects of status changes such as 'deleted'.

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?

The description is a single tight sentence with the write warning and create/update logic front-loaded. Every clause carries operational meaning with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation tool with no required fields, low schema description coverage, no output schema, and only an idempotentHint annotation, the description is too sparse. It omits critical guidance on which fields are needed for creation versus update, how omitted fields are treated, and what the operation returns.

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

Parameters2/5

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

Only uid and email get meaningful context through the create/update rules. With 11 parameters and only 18% schema description coverage, the description leaves name, type, status, phone, title, website, firstname, lastname, and gid semantics largely or entirely undocumented.

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 states a specific write operation on a specific resource and explains the create-vs-update mode: create with no uid, update with uid or email. This clearly distinguishes it from read siblings like hdphotohub_get_user and hdphotohub_list_users.

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 gives explicit conditions for choosing create versus update: no uid means create, uid or email of an existing user means update. It does not explicitly exclude cases or name alternatives, which keeps it from a 5.

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.