prompthub_whoami

Verify the configured PromptHub token and return the authenticated user

Server Prompthub lionelhao/prompthub-mcp
Category Read
Risk class Low
Parameters 00 required

What prompthub_whoami does on Prompthub

AI agents call prompthub_whoami to retrieve information from Prompthub without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why prompthub_whoami needs a policy

This tool only reads and returns identity/authentication information about the current user. It has no side effects, modifies nothing, and simply retrieves who is authenticated. Misuse potential is minimal.

From the tool's definition Verify the configured PromptHub token and return the authenticated user

Questions about prompthub_whoami

What does the prompthub_whoami tool do? +

Verify the configured PromptHub token and return the authenticated user. It is categorised as a Read tool in the Prompthub MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on prompthub_whoami? +

Register the Prompthub MCP server in PolicyLayer and add a rule for prompthub_whoami: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Prompthub. Nothing to install.

What risk level is prompthub_whoami? +

prompthub_whoami is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit prompthub_whoami? +

Yes. Add a rate_limit block to the prompthub_whoami rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block prompthub_whoami completely? +

Set action: deny in the PolicyLayer policy for prompthub_whoami. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides prompthub_whoami? +

prompthub_whoami is provided by the Prompthub MCP server (lionelhao/prompthub-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.