Skip to main content
Glama

Get current account and project

whoami
Read-only

Whoami

When to use: MCP cold-start: 키 만으로 어떤 project_id 에 바인딩되어 있는지 알아낼 때. 이후 모든 tool 호출의 project-id 헤더 값으로 응답의 project_id 를 그대로 사용한다.

Limitations: Kong key-auth / service-JWT 만 지원. Cognito 호출자는 단일 project binding 이 없으므로 400. project-id 헤더 불필요.

Examples:

  • Q: 이 API 키는 어느 프로젝트에 연결돼 있어? params: {}

Related resources: analytics://overview

Output shape: WhoamiResponse — project_id (binding), user_id (proxy user), roles + permissions (effective governance role/permission).

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": "whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly/non-destructive/closed-world; the description goes further by naming the supported auth schemes, the failure mode for Cognito callers (400 due to no single project binding), and the fact that the project-id header must be omitted. It also sketches the returned identity trio (project binding, proxy user, effective roles/permissions).

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?

Labeled sections (When to use / Limitations / Examples / Output shape) make the key routing rule front-loaded and easy to scan. It is slightly padded by the Q&A example and an English/Korean duplicate of the same cold-start point, but no section actively misleads.

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?

For a zero-parameter identity endpoint with annotations and an output schema already supplied, the description covers everything an agent still needs: when to call it, what auth it accepts, what error to expect otherwise, and how to reuse the result. Nothing material is left implicit.

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?

The tool takes zero parameters, so the baseline is 4. The description reinforces this by stating the project-id header is not needed, which prevents an agent from inventing a required argument.

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 definition states a concrete outcome: resolving which project_id the presented API key is bound to, and naming the account/user/roles it returns. Combined with the title 'Get current account and project', an agent can distinguish this identity-resolution call from the data-fetching get_* siblings without opening a schema.

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?

It gives an explicit trigger ('MCP cold-start'), the follow-on action ('use the returned project_id verbatim as the project-id header for every subsequent tool call'), and exclusions with reasons ('Kong key-auth / service-JWT only; Cognito callers have no single project binding and get 400; project-id header not required'). This is precisely when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources