Skip to main content
Glama
nmhaaa3218

Tu Vi Horoscope MCP Server

save_horoscope

Store birth chart data in a local SQLite database for future access. Retrieve saved horoscopes by name or ID without re-entering details.

Instructions

Save birth chart details to the local SQLite database for future retrieval.

Purpose and Comparison

Use this tool to save a horoscope profile so it can be re-accessed later via ID or Name without entering birth details again.

  • Contrast with generate_horoscope: Use save_horoscope when you want to save details permanently. Use generate_horoscope if you only want to compute/view a chart on-the-fly without database persistence.

  • After saving, you can retrieve the chart using get_saved_horoscope.

Side Effects, Auth, and Rate Limits

  • Side Effects: Modifies persistent state by inserting a new record into the local SQLite database (~/.tuvi_mcp/tuvi_horoscopes.db).

  • Auth/Rate Limits: Runs entirely locally. No authentication or external rate limits apply.

Prerequisites

  • Local SQLite database must be writable.

Parameter Guidelines & Interactions

  • name: Name of the person (required, text).

  • day: Day of birth (1-31).

  • month: Month of birth (1-12).

  • year: Year of birth (four-digit year).

  • hour_val: Hour of birth (e.g., "14:30", "Ngọ" or index 1-12).

  • gender_val: Gender ("Nam" or "Nữ").

  • is_solar: Set to True (default) if birth date is Solar, False if Lunar.

  • notes: Optional textual comments or notes.

Output Schema and Error Conditions

  • Returns: A success dictionary containing:

    • message: Success confirmation string.

    • id: The unique integer ID of the newly created database record.

  • Errors: Returns {"error": "error_message"} if birth details are invalid or database write fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayYes
nameYes
yearYes
monthYes
notesNo
hour_valYes
is_solarNo
gender_valYes
Behavior5/5

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

No annotations provided, so description bears full burden. Discloses side effects (inserts record into SQLite), database location, local-only auth/rate limits, prerequisites (writable DB), return structure, and error conditions.

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?

Well-organized into sections (Purpose, Comparison, Side Effects, Prerequisites, Parameters, Output). Front-loaded with purpose. Every sentence adds information; no redundancy.

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?

Comprehensive coverage: purpose, usage context, side effects, prerequisites, parameter details, return values, errors. No gaps given complexity (8 params, no output schema).

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

Parameters5/5

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

Schema has 0% description coverage, but description lists all parameters with meanings and examples (e.g., hour_val formats, gender values). Adds significant value beyond schema types and required flags.

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?

Clearly states the tool saves birth chart details to a local SQLite database. Distinguishes from siblings like generate_horoscope (on-the-fly) and get_saved_horoscope (retrieval). Verb+resource+persistence is specific.

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 tells when to use this tool vs generate_horoscope: use save_horoscope for permanent storage, generate_horoscope for temporary computation. Also directs to get_saved_horoscope after saving.

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/nmhaaa3218/TuViMCP'

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