Skip to main content
Glama

Reimport Samsung Health Export from Watch Folder

samsung_health_reimport
Idempotent

Scans a watch folder for newer Samsung Health exports, promotes the newest found export, clears caches, and updates subsequent summaries with the new data.

Instructions

Re-scan the configured watch folder (SAMSUNG_HEALTH_WATCH_PATH or setup --watch-path <dir>) for a newer Samsung Health export. If a newer SamsungHealth folder / .csv / samsunghealth.zip is found, it is promoted to the active export, the in-memory snapshot cache and incremental cache are cleared, and subsequent summaries reflect the new data. With check_only=true, only report what would happen without promoting. This is the cross-platform recurring-refresh path — the native Android Health Connect bridge needs an Android device and is separate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoWhen true, re-promote the newest export in the folder even if it already matches the active export (forces a cache refresh).
check_onlyNoWhen true, report the watch-folder status without promoting a new export.
response_formatNomarkdown
Behavior4/5

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

The description discloses important side effects: it clears the in-memory snapshot cache and incremental cache, and promotes a newer export. This adds behavioral context beyond the annotations (which indicate idempotent and non-destructive). No contradictions with annotations.

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 three sentences long, with the key action and purpose in the first sentence. Every sentence provides essential information without redundancy or fluff.

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?

The description covers the tool's core function, side effects, and differentiation from the Android bridge. It lacks mention of prerequisites like having a configured watch folder, but that is a setup concern likely handled by other tools. Given the complexity (3 params, no output schema), it is largely complete.

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

Parameters4/5

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

The description adds value beyond the input schema by explaining the effect of check_only=true ('only report what would happen without promoting') and clarifying that force even re-promotes a matching export. Schema coverage is 67%, and the description compensates for missing details on response_format.

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 uses a specific verb 're-scan' and clearly identifies the resource 'watch folder for Samsung Health export'. It distinguishes itself from the native Android Health Connect bridge, making it clear this is the cross-platform path.

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?

The description explicitly states that this tool is for cross-platform recurring-refresh, contrasting with the native Android Health Connect bridge. It implies when to use (non-Android) but does not explicitly exclude usage of sibling tools like samsung_health_export_freshness, leaving some ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidmosiah/samsung-health-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server