Skip to main content
Glama

SmartHR MCP by usefulapi

smarthr_create_department

Destructive

WRITE: Create a department (部署). Give the parent department id to nest it. Returns the created department.

Input Schema

NameRequiredDescriptionDefault
codeNoDepartment code.
nameYesDepartment name (no slash).
positionNoDisplay order among siblings.
parent_idNoParent department id (from smarthr_list_departments); omit for a top-level department.
company_idNoCompany id (from smarthr_list_companies); needed when the tenant has several companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The 'WRITE:' prefix and 'Returns the created department' are useful, but the former largely restates readOnlyHint=false and the latter is the only substantive addition given no output schema. Annotations already flag destructiveHint=true and idempotentHint=false, yet the description never explains the consequences: what a failed call leaves behind, whether duplicate names are rejected, or that retrying can create duplicates.

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?

Three short sentences with zero waste; the write nature and the core operation are front-loaded, and the nesting hint follows immediately.

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 no output schema, the description compensates by naming the return value, and all five parameters are documented in the schema. The only gap is behavioral detail around the non-idempotent, destructive-create semantics, which the description leaves to the annotations.

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% with per-field descriptions, so the schema carries the semantics and baseline 3 applies. The description only reinforces parent_id nesting, which the schema already documents.

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 and resource ('Create a department (部署)') plus the nesting mechanism and the return value. It is clearly distinguishable from smarthr_update_department by the verb, though the sibling is never named.

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?

'Give the parent department id to nest it' implies the hierarchical case, but there is no explicit when-to-use vs smarthr_update_department, no note about when company_id becomes mandatory, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.