Skip to main content
Glama

set_user_approval

Approve or revoke a user account to control login access; new accounts cannot sign in until approved, and the user receives an email about the change.

Instructions

[ADMIN] Approve (or revoke) a user account. New accounts cannot log in until approved. ErgoHub emails the user about the change.

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": {
      "username": "<username>",
      "reason": "<reason>"
    },
    "name": "set_user_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in one sentence. ErgoHub requires it and keeps it in the audit log.
approvedNotrue approves the account, false revokes approval.
usernameYesExact ErgoHub username.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world write, so the bar is lower; the description still adds real context by disclosing that ErgoHub emails the user about the change and that unapproved accounts are locked out of login. It does not say what happens to an active session when approval is revoked, which is the main missing side-effect detail.

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?

Two short sentences, with the admin scope and primary action front-loaded and the side effect second. Every clause carries information; there is no filler or repetition of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only three well-documented parameters, an output schema, and annotations covering the safety profile, the description supplies the two behavioral facts an agent most needs: login gating and the notification email. Remaining gaps (session invalidation on revoke, any rate or audit considerations beyond the reason field) are minor for a tool of this size.

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 coverage is 100% and each parameter already carries its own description, so the baseline is 3. The description's 'approve (or revoke)' loosely maps to the `approved` boolean but adds no meaning about its default value or about why `reason` is mandatory beyond what the schema states.

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?

States a specific verb and resource — approve or revoke a user account — with an [ADMIN] scope tag that immediately separates it from self-service siblings like whoami or list_users. It stops short of naming which accounts are eligible, but the action is unambiguous.

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

Usage Guidelines3/5

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

The line 'New accounts cannot log in until approved' implicitly tells the agent when this tool is needed, and the parenthetical '(or revoke)' flags the reverse operation. There is no explicit when-not-to-use guidance, no mention of what to do for already-approved accounts, and no pointer to any alternative.

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