Skip to main content
Glama

setup_credentials

Save and validate a Zepp apptoken from the user.huami.com cookie so the server can access read-only activity, sleep, HRV, readiness, stress, GPS, and body composition data.

Instructions

Save a Zepp apptoken and validate it. The apptoken comes from the apptoken cookie on user.huami.com.

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": {
      "apptoken": "<apptoken>"
    },
    "name": "setup_credentials"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNo
profileNo
user_idNo
apptokenYes
timezoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and idempotentHint=false, so the agent knows this mutates state and is not repeat-safe. The description adds only that the token is validated, but says nothing about where credentials are persisted, whether an existing token is overwritten, what a validation failure looks like, or whether validation requires network access.

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?

Two tight sentences with the core action front-loaded and no wasted wording. The brevity is appropriate in style, though it leaves little room for the missing parameter context.

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 a mutation tool with five parameters at 0% schema coverage and no output schema, the definition is too thin. It covers the required apptoken but omits the meaning of the optional scoping parameters and any description of the validation outcome.

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?

Schema description coverage is 0% across five parameters, so the description carries the burden and only explains one: apptoken, including its origin. The four optional parameters (region, profile, user_id, timezone) are left completely undefined in both schema and prose, leaving an agent to guess what they scope.

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: save a Zepp apptoken and validate it. That is concrete and distinguishable from read-only siblings like check_auth_status, though the description never names an alternative to contrast with.

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?

The mention that the apptoken comes from the apptoken cookie on user.huami.com is useful prerequisite context, implying this is set-up work done before other calls. However, it never says when to call this versus check_auth_status, whether it must be run first, or what to do if a token is already stored.

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