Skip to main content
Glama
yangfeng20

dmc-mcp-server

by yangfeng20

login_instance

Authenticate to a TDSQL-C or TDSQL database instance via Tencent Cloud DMC. Session caching avoids repeated logins for subsequent requests.

Instructions

Login to a database instance via Tencent Cloud DMC. Supports both TDSQL-C (CynosDB) and TDSQL (DCDB) instances. The session is cached - subsequent calls reuse the same token without re-login, unless the token expires.

Use find_instance_by_ip to discover the instance_id and db_type, then pass the db_type value from the search results here.

Args: instance_id: Instance ID, e.g. "cynosdbmysql-xxx" or "tdsqlshard-xxx" user: Database account name, e.g. "db_user" password: Database account password (plain text) db_type: Database type - "cynosdbmysql" (TDSQL-C) or "tdsql" (TDSQL) region_id: Region ID, default 4 (Shanghai)

Returns: Login status message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYes
db_typeNocynosdbmysql
passwordYes
region_idNo
instance_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. Discloses session caching and token expiration. However, lacks details on error handling, permissions, or any destructive potential. The behavior is straightforward for a login tool, but more transparency could improve safety.

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?

Well-structured with clear sections and bullet-style arg list. Every sentence adds value: prerequisite, caching, param descriptions, return. Slightly verbose but not wasteful.

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?

Covers all essential aspects: prerequisite, caching, all parameters, return value. Output schema exists so return detail is sufficient. For a login tool, it is complete and actionable.

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 coverage is 0%, so description fully compensates. Each parameter is explained with examples, defaults, and context (e.g., instance_id format, db_type values, region default). Adds meaning beyond schema significantly.

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 'Login to a database instance via Tencent Cloud DMC' with specific verb and resource. Distinguishes from sibling tools by mentioning find_instance_by_ip as a prerequisite and specifying supported database types (TDSQL-C and TDSQL).

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?

Provides explicit context: use after find_instance_by_ip to get instance_id and db_type. Mentions session caching and token reuse. Does not explicitly state when not to use, but the guidance is clear enough for correct tool selection.

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/yangfeng20/dmc-mcp-server'

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