Skip to main content
Glama

Download a certificate or a report

hisinone_download_document

Generates a document in the HISinOne portal and saves it locally. Provide the document key from hisinone_list_documents; returns the file path after the portal job finishes.

Instructions

Let the portal produce one document and store it on disk. Call hisinone_list_documents first to get a key. The tool waits for the portal job and returns the path of the stored file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesDocument key from hisinone_list_documents.
target_dirNoDirectory for the file. The configured download directory applies if this is absent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path of the stored file
filenameYesFile name
media_typeYesMedia type that the portal reported
size_bytesYesSize of the stored file
source_urlYesPortal address that delivered the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations mark this as non-read-only and non-idempotent, and the description adds meaningful behavioral detail: the tool waits for the portal job, stores the file on disk, and returns the stored file path. No contradiction with the 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 compact and front-loaded: purpose, prerequisite, behavior, and return value are all covered in two sentences with no wasted words.

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 an output schema and annotations present, the description covers the key prerequisite, waiting behavior, side effect of storing to disk, and return value. It does not discuss error cases or contrast with download_url, but nothing critical is missing for correct invocation.

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%, so key and target_dir are already documented in the schema. The description reinforces that key comes from hisinone_list_documents but adds little semantic value beyond what the schema provides.

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?

The description uses a specific verb ('produce and store on disk') and identifies a single portal document as the resource. It distinguishes itself from hisinone_list_documents by telling the caller to call that tool first, but it does not explicitly differentiate itself from sibling hisinone_download_url.

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 gives an explicit precondition: call hisinone_list_documents first to get a key. This is clear usage guidance, though it lacks explicit exclusions or a direct comparison with alternatives like download_url.

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