Skip to main content
Glama
shigechika

jquants-mcp

by shigechika

health_check

Read-onlyIdempotent

Check server health, API key status, and cache readiness before using other tools to confirm the server is ready.

Instructions

Check server health, API key configuration, and cache readiness.

Sync on purpose: FastMCP runs a sync tool body in a worker thread, which keeps this off the event loop — the body can trigger the slow lazy initialization (connect + migrations). Sharing the SQLite connection with the loop from that thread is what caused #537; the store's write lock, not an async signature, is what makes it safe.

Call this at session start to confirm cache.db has finished loading before issuing detect_* or cache_status — the first call after server start may take 10–60 seconds while the cache initialises lazily. After a tool-call timeout, use this to distinguish a transient cache-loading delay from a permanent failure.

Returns server version, API key status, active plan, status (healthy / degraded), cache_integrity and cache_ready.

status is degraded only when the integrity check reports a failure; there is no error state, since this call does no I/O that can fail.

cache_integrity (ok / pending / not-checked / failed: / error: ) is the integrity check's own result. The last two carry a detail string appended to the prefix, so test them with startswith, not ==. cache_ready is a boolean shorthand: true only when cache_integrity is exactly "ok".

In multi-user mode, returns the authenticated user's plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already mark the tool as readOnlyHint, idempotentHint, and not destructive. The description adds detailed behavioral context: it performs no I/O that can fail, returns specific fields with detailed semantics (e.g., cache_integrity values and how to test them), and explains internal implementation aspects like lazy initialization and thread safety. No contradictions.

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 front-loaded with the purpose, followed by usage guidance and field explanations. Each sentence adds value, and the structure is logical despite being longer than average.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters, rich annotations, and an output schema (whose fields are described), the description covers when to use it, what it returns, and special behaviors (first call latency, multi-user mode). It is fully complete for the agent to use correctly.

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?

There are no parameters, so baseline is 4. No additional parameter info is needed, and the description does not attempt to add any.

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 starts with a clear statement of purpose: 'Check server health, API key configuration, and cache readiness.' It distinguishes from sibling tools like cache_status by explaining that health_check confirms cache readiness and can differentiate transient cache loading delays from permanent failures.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to call this tool: at session start before using detect_* or cache_status, and after a tool-call timeout to diagnose failures. It also mentions that the first call may take 10-60 seconds and explains multi-user mode behavior.

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/shigechika/jquants-mcp'

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