Skip to main content
Glama

Xoay secret API key hiện tại

monapay_rotate_key
Destructive

Rotate the current API key secret after suspected exposure; update MONAPAY_CLIENT_SECRET in your plugin or agent, then restart.

Instructions

Dùng khi secret nghi lộ; xoay key hiện tại bằng X-Client-Secret. Sau khi xoay phải cập nhật MONAPAY_CLIENT_SECRET ở plugin/agent rồi khởi động lại. / Rotate the current API key secret after suspected exposure, then update MONAPAY_CLIENT_SECRET.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare destructive=true, non-idempotent and openWorld, so the safety bar is lower, yet the description adds genuinely useful operational context: rotation is authenticated via the X-Client-Secret header and must be followed by updating MONAPAY_CLIENT_SECRET and restarting. It does not spell out what happens to the old key or on partial failure.

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?

Front-loaded with the trigger condition, and only two sentences are used. The bilingual duplication roughly doubles the text for identical meaning, which is a minor cost rather than bloat.

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

Completeness3/5

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

Covers trigger, credential and required follow-up, which is most of what an agent needs. However, with no output schema present, the description should say whether the response returns the new secret value — for a rotate operation that is a meaningful omission.

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?

Zero parameters, so the baseline is 4. The description adds a little value by noting the X-Client-Secret header is the implicit credential used for the call, which the empty schema does not convey.

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?

States a specific verb and resource ('rotate the current API key secret'), and the word 'current' implicitly distinguishes it from a fresh-key sibling like monapay_generate_key. Clear enough that an agent knows what it does without opening anything else, though it never names the sibling explicitly.

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?

Gives a concrete triggering condition ('use when the secret is suspected leaked'), which is more than most definitions offer. It does not state when NOT to use it or point to an alternative for non-exposure cases, so it stops short of full routing guidance.

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

Deploy Server

Other Tools