Skip to main content
Glama

Find or create a person or group

dm.ensure_identity
Idempotent

Idempotently find or create one person or group and return its canonical id with created=true|false. A person is matched by normalized email first (admin humans only), otherwise by exact normalized name or alias; several matches return ambiguous_match with candidate ids instead of choosing one. Requires the delegated human's OAuth grant and a workspace role that permits the change. An identity never creates a workspace member, role, grant or invitation.

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": {
      "display_name": "<display_name>"
    },
    "name": "dm.ensure_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoPerson only; needs a human who may manage workspace members. A person is matched by normalized email first. Without an email, by exact normalized name (or alias).
notesNo
aliasesNo
display_nameYes
identity_typeNoperson

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond annotations (idempotentHint=true, destructiveHint=false), the description discloses matching order (email first, then exact normalized name/alias), ambiguity behavior (returns ambiguous_match with candidate ids), auth prerequisites (delegated human's OAuth grant and workspace role), and explicit non-effects (no workspace member, role, grant, or invitation creation). This is rich context, though it does not cover all failure modes or concurrency behavior.

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?

Four tightly written sentences, front-loaded with the main action and return value, then matching logic, auth requirements, and scope boundary. Every sentence adds necessary information without repetition or waste.

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?

For a mutation tool with no output schema and low schema description coverage, the description covers the core behavior, return values (including ambiguous_match), prerequisites, and explicit non-effects. It is nearly complete, though minor gaps remain around parameter details like notes and alias list limits.

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?

With only 20% schema description coverage, the description compensates partially by explaining the matching semantics of email, display_name, and aliases. However, it does not add meaning for notes or identity_type beyond the enum default, leaving several parameters under-specified.

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 states a specific verb+resource: 'Idempotently find or create one person or group' and the return shape ('canonical id with created=true|false'). It is clear what the tool does, but it does not explicitly differentiate itself from siblings like dm.search_identities or dm.update_identity.

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 description implies usage (when you need to ensure an identity exists) but gives no explicit when-to-use vs alternatives or when-not guidance. It does clarify a boundary ('An identity never creates a workspace member, role, grant or invitation'), which helps scope but is not alternative-tool routing.

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