Skip to main content
Glama

lakeformation__ShowCredential

Fetches temporary LakeFormation credentials and a security token for an instance and project, scoped to users, groups, or roles; valid for at least one hour, refresh before expiry.

Instructions

[LAKEFORMATION] 获取临时密钥和securityToken,失效时间大于等于1小时,请在1小时内更新

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "lakeformation__ShowCredential"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolesNo角色
groupsNo用户组
project_idYes项目编号。获取方法,请参见[获取项目ID](lakeformation_04_0026.xml)。
user_namesNoIAM用户
instance_idYesLakeFormation实例ID。创建实例时自动生成。例如:2180518f-42b8-4947-b20b-adfc53981a25。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure load, and it does add genuinely useful behavior: the credential expires in at least one hour and must be renewed within that window. It omits other behavior the agent needs, such as whether the call requires specific permissions, whether it is a safe read, and how roles/groups/user_names narrow the credential's scope.

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?

A single short sentence with the service tag first and the key facts (what is returned, lifetime, refresh requirement) front-loaded. It contains no filler, though the refresh note could be phrased as a clearer action instruction.

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?

For a five-parameter credential-issuing tool with no output schema, the description tells the agent what comes back at a high level and how long it stays valid. It leaves gaps around authorization requirements and how the optional role/group/user filters affect the issued credential, which matters for calling it correctly.

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%, so the schema already documents all five parameters, including path constraints and the project_id/instance_id formats. The description adds no parameter-level meaning beyond that, making the baseline 3 the correct score.

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?

The description names a concrete verb plus resource ("获取临时密钥和securityToken" – obtain a temporary credential and security token), so the agent knows exactly what is produced. It does not, however, distinguish this tool from nearby credential-related siblings such as CreateBucketCredential, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to call this rather than an alternative, no prerequisites, and no exclusions. The only guidance is the operational note to refresh within one hour, which is about the credential's lifetime rather than when to select this tool.

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