Skip to main content
Glama

SmartHR MCP by usefulapi

smarthr_list_departments

Read-only

List departments (部署) with their hierarchy (parent, children), code and company.

Input Schema

NameRequiredDescriptionDefault
codeNoExact department code.
pageNoPage number, 1-based (default 1). Use next_page from the previous reply.
sortNoSort order: property names, several separated by commas, a leading "-" means descending, e.g. "-updated_at".
per_pageNoResults per page, 1-100 (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered and the description is not obligated to restate it. The description does add value by disclosing that hierarchy data (parent, children) is included in the response, but says nothing about pagination behavior, result ordering, or whether all departments are returned by default.

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?

A single sentence with no filler, front-loading the resource and then the returned fields. Every clause carries information an agent can use.

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 simple read-only list tool with a fully documented schema and readOnlyHint annotations, this is nearly complete: it identifies the resource and its key returned fields. The remaining gap is that it never mentions pagination or result volume, which matters because the schema exposes page/per_page.

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 100%, with all four parameters (code, page, per_page, sort) fully documented in the schema, so the baseline is 3. The description adds no parameter-specific meaning beyond naming "code" as part of the output, which is not the same as explaining the exact-match filter input.

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 ("List departments") and even enumerates what comes back (hierarchy, code, company), so the agent knows the shape of the result. It does not differentiate itself from the sibling smarthr_get_department or explain why one would list rather than fetch a single department, which keeps it from 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 Guidelines2/5

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

There is no when-to-use guidance, no mention of the smarthr_get_department alternative, and no note that the code filter is an exact match versus a broader browse. Usage is only implied by the verb "List", leaving the agent to infer the selection context.

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.