Skip to main content
Glama

Show what this API user may call

lw_whoami
Read-onlyIdempotent

Checks which Liquid Web API methods an authenticated user or API token is permitted to call; pass version-prefixed paths to confirm allowed or denied access.

Instructions

Check which Liquid Web API methods the authenticated user (or API token) may call, via Account/User/permitted on each method's own API version. Pass paths with a version prefix, e.g. ["Network/DNS/Zone/list", "bleed/Network/DNS/Domain/details", "v2/asset/list"]; a path without a prefix is checked on v1. Omit actions to list what the API reports for one version (default v1). Returns path -> allowed (true/false).

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

Input Schema

NameRequiredDescriptionDefault
actionsNoAPI paths to check, with an optional version prefix (v1/, bleed/, v2/, v3/).
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
versionNoVersion to list when actions is omitted (default v1).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely useful mechanics beyond that: the permission check is evaluated on each method's own API version, and the return shape is path -> allowed. It stops short of saying whether failures for unknown paths error or return false, which is the main behavioral unknown for a checker.

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?

Three sentences, front-loaded with purpose, then path syntax with concrete examples, then default behavior and return shape. Dense but every clause carries information; the example array of three prefixed paths is slightly bulky yet directly disambiguates the prefix convention.

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?

With an output schema present and full schema coverage on three optional parameters, the description only needs to cover purpose, path conventions and mode selection — all of which it does. Nothing an agent needs in order to call this correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description exceeds the schema by explaining prefix behavior that the schema only hints at: a path without a prefix is checked on v1, and the version parameter only applies when actions is omitted. That resolves a real ambiguity ('does a bare path default to v1 or the context's version?').

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 opens with a specific verb+resource: 'Check which Liquid Web API methods the authenticated user (or API token) may call.' It also names the underlying mechanism (Account/User/permitted per method's API version), which distinguishes it from lw_raw_call or lw_api_path_details without needing those schemas.

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 states the two operating modes clearly: pass actions to check specific paths, omit actions to list one version's report (default v1). It also points to lw_contexts for the context parameter. It lacks a negative case, e.g. 'use lw_raw_call to actually invoke a method', so the alternative routing is implied rather than explicit.

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