Skip to main content
Glama

wordpress_check_user_capability

wordpress_check_user_capability

Verify whether a WordPress user holds a specific capability by providing user ID and capability name. Useful for role-based access control.

Instructions

Check if user has specific capability

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYes
capabilityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It implies a read-only check but does not state that explicitly, nor does it mention side effects, error behavior, or what happens for invalid userId/capability values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant wording. Every word contributes to conveying the core action, making it appropriately concise.

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 two-parameter capability check, the description is minimally adequate, but it lacks any mention of return values or edge cases. Given the absence of an output schema and annotations, the description alone does not fully inform the agent about expected results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no parameter-level detail beyond the schema's names and types. The meaning of 'userId' and 'capability' is fairly obvious, but the tool does not compensate for the low coverage with any specifics.

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 'Check if user has specific capability' uses a clear verb and names the core resource (user capability). It distinguishes itself from capability management tools like wordpress_add_capability and wordpress_remove_capability, though it does not state what result is returned (e.g., boolean).

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?

No guidance is provided on when to use this tool versus alternatives like wordpress_get_capabilities or wordpress_assign_role. There is no mention of prerequisites, exclusions, or typical scenarios.

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