Skip to main content
Glama

iam__KeystoneValidateToken

Validates an IAM user token in your Huawei Cloud account and returns token details if valid; optionally omits catalog data from the response.

Instructions

[IAM] 该接口可以用于管理员校验本账号中IAM用户token的有效性,或IAM用户校验自己token的有效性。管理员仅能校验本账号中IAM用户token的有效性,不能校验其他账号中IAM用户token的有效性。如果被校验的token有效,则返回该token的详细信息。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "iam__KeystoneValidateToken"
  }
}

Input Schema

NameRequiredDescriptionDefault
nocatalogNo如果设置该参数,返回的响应体中将不显示catalog信息。任何非空字符串都将解释为true,并使该字段生效。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses the permission boundary and that a valid token yields detailed token information, but leaves the key mechanics unstated: how the token under validation is supplied (the schema has no token parameter, implying it is the caller's own credential), and what happens when the token is invalid or expired.

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?

Purpose is front-loaded in the first clause, followed by the permission constraint. The admin restriction is restated twice in slightly different words, which is mild redundancy but not costly.

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?

The tool is simple (one optional query flag, no output schema) and the description explains the core eligibility rules and the valid-token outcome. However, for a validate operation the essential question of where the validated token comes from, and the failure/invalid outcome, is left ambiguous, which matters more than the return-payload detail.

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% and the single nocatalog parameter is fully documented in the schema, so the baseline is 3. The description adds nothing about it — the catalog-suppression behavior is explained only in the schema.

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 names a specific verb and resource — validate an IAM user token — and immediately scopes it (admin validating users in their own account, or a user validating their own token). It is also clear that this checks an existing token rather than issuing one, which separates it from the many KeystoneCreate*Token siblings.

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?

It supplies clear context for when the tool applies and an explicit exclusion (administrators cannot validate tokens belonging to other accounts). What it does not do is name an alternative path when the caller is not permitted, e.g. what to use instead for cross-account checks.

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