Skip to main content
Glama

AI-ERP Business Connector

mcp.self.whoami

查询当前连接身份、绑定系统用户、权限与组织上下文(排障用,不泄露令牌)。

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": "mcp.self.whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault
authorizationNo
workbuddy_user_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add genuinely useful context by stating that no tokens are leaked, which reassures the agent that returning identity data is safe, and the read-only nature is implied by 'query'. But it does not state permission requirements for the authorization parameter or what happens when identity cannot be resolved.

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 compact sentence that front-loads the resource list and puts the troubleshooting/scoping caveat in a trailing parenthetical. No wasted words, though the brevity contributes to the parameter coverage gap.

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?

An output schema exists, so describing return values is not required and the summary of what is returned (identity, bound user, permissions, org context) is adequate. The remaining gap is total silence on the two input parameters, which is the main incompleteness for a diagnostic tool.

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% for two parameters: authorization and workbuddy_user_id. The description adds no meaning for either, leaving the agent to guess whether authorization is a bearer token to pass through or a value to describe, and whether workbuddy_user_id is an input filter or an output field reference.

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 (查询/query) and a precise set of resources: connection identity, bound system user, permissions, and organization context. This is clear and distinguishes it from sibling self/capabilities tools by focusing on identity and org context rather than capability listing, though it never names any sibling explicitly.

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 parenthetical '排障用' (for troubleshooting) gives a real usage cue that narrows when to reach for this tool. However, it offers no when-not-to-use guidance and does not point to any alternative sibling (for example mcp.self.capabilities) for non-troubleshooting lookups.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources