Skip to main content
Glama

WordPress: Get current user

wordpress_get_current_user
Read-only

Retrieve the authenticated WordPress user’s ID, name, username, email, and roles for a specified site to identify permissions and profile details.

Instructions

[UNIFIED] Get information about the currently authenticated user including ID, name, username, email, and roles.

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": {
      "site": "<site>"
    },
    "name": "wordpress_get_current_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.13.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv3.4.0

TDQS

B3.2/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes this as a safe read, so the bar is lower. The description adds useful context that this returns the caller's own identity rather than an arbitrary user, but it says nothing about authentication requirements, what happens if the connection is unauthenticated, or which site's credentials are used.

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 sentence with no wasted words and the key information front-loaded. The '[UNIFIED]' prefix is noise that adds nothing for an agent, which keeps it from a 5.

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 simple read-only tool with annotations and no output schema, listing the returned fields covers most of what's needed. The unexplained 'site' parameter, which is the sole required input, is the main missing piece.

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?

There is only one parameter, 'site', with 0% schema description coverage, and the description never mentions it or explains what form a site identifier takes. With a single trivial parameter and an otherwise complete list of returned fields, this is a moderate gap rather than a severe one.

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 gives a specific verb ('Get') and resource ('currently authenticated user') and enumerates the returned fields (ID, name, username, email, roles), so an agent knows exactly what comes back. It does not differentiate itself from siblings like wordpress_specialist_wp_user_list, which lists users rather than the authenticated one, so it falls 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 explicit when-to-use or when-not-to-use guidance, and no alternative is named. The only implied guidance is the phrase 'currently authenticated user,' which hints that no user identifier is needed, but an agent must infer that on its own.

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