Skip to main content
Glama

set_primary_profile

Destructive

Set a profile as the primary profile. The previous primary profile becomes secondary.

ACCESS: needs a Proof account. Authenticate this client (Claude Code: /mcp → Authenticate), then call this tool again. start_login does NOT open this tool.

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": {
      "profile_id": "<profile_id>"
    },
    "name": "set_primary_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_idYesProfile ID to set as primary

Output Schema

NameRequiredDescriptionDefault
idYesMongoDB ObjectId
bioNo
themeYesProfile theme customization
usernameNoAbsent until a username is claimed
is_publicYes
avatar_urlNoA URL or a data URI; null once cleared
created_atYes
is_primaryYes
profile_idYesThe public id used in profile URLs
updated_atYes
view_countYes
email_themeYesTheme of this sub-account's emails; null when unset (read as `dark`).
is_businessYes
proof_orderYesWho decided the order of a profile's proofs. `default`: domain, social account, Telegram bot, email, phone, wallet, then each proof's `display_order`. `owner`: the owner's `display_order` alone — send it when the owner reorders. The first shown proof that is not hidden leads the profile's preview card, share tags and badge. Omitted on an update, the profile keeps its current setting.
custom_linksYes
display_nameNo
business_nameNo
public_proofsYesThe shown proofs, in the order the public profile shows them
support_emailYesSupport address shown in this sub-account's messages; null when unset.
show_delegationsYes
verification_levelYesAlways 'basic'; no levels are computed; removed in the next major.
show_proof_channelsYes
show_verification_datesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "A sub-account as its owner sees it",
      +  "properties": {
      +    "avatar_url": {
      +      "description": "A URL or a data URI; null once cleared",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "bio": {
      +      "type": "string"
      +    },
      +    "business_name": {
      +      "type": "string"
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "custom_links": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "_id": {
      +            "type": "string"
      +          },
      +          "display_order": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "icon": {
      +            "type": "string"
      +          },
      +          "is_visible": {
      +            "type": "boolean"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "_id",
      +          "title",
      +          "url",
      +          "is_visible",
      +          "display_order"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "display_name": {
      +      "type": "string"
      +    },
      +    "email_theme": {
      +      "description": "Theme of this sub-account's emails; null when unset (read as `dark`).",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "id": {
      +      "description": "MongoDB ObjectId",
      +      "type": "string"
      +    },
      +    "is_business": {
      +      "type": "boolean"
      +    },
      +    "is_primary": {
      +      "type": "boolean"
      +    },
      +    "is_public": {
      +      "type": "boolean"
      +    },
      +    "profile_id": {
      +      "description": "The public id used in profile URLs",
      +      "type": "string"
      +    },
      +    "proof_order": {
      +      "description": "Who decided the order of a profile's proofs. `default`: domain, social account, Telegram bot, email, phone, wallet, then each proof's `display_order`. `owner`: the owner's `display_order` alone — send it when the owner reorders. The first shown proof that is not hidden leads the profile's preview card, share tags and badge. Omitted on an update, the profile keeps its current setting.",
      +      "type": "string"
      +    },
      +    "public_proofs": {
      +      "description": "The shown proofs, in the order the public profile shows them",
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "asset_id": {
      +            "type": "string"
      +          },
      +          "channel": {
      +            "type": "string"
      +          },
      +          "delegate_type": {
      +            "type": "string"
      +          },
      +          "delegation_id": {
      +            "type": "string"
      +          },
      +          "display_order": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "display_value": {
      +            "type": "string"
      +          },
      +          "is_revoked": {
      +            "type": "boolean"
      +          },
      +          "is_visible": {
      +            "type": "boolean"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "mask_level": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          },
      +          "verified_at": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "asset_id",
      +          "type",
      +          "display_value",
      +          "verified_at",
      +          "is_visible",
      +          "display_order",
      +          "mask_level"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "show_delegations": {
      +      "type": "boolean"
      +    },
      +    "show_proof_channels": {
      +      "type": "boolean"
      +    },
      +    "show_verification_dates": {
      +      "type": "boolean"
      +    },
      +    "support_email": {
      +      "description": "Support address shown in this sub-account's messages; null when unset.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "theme": {
      +      "additionalProperties": {},
      +      "description": "Profile theme customization",
      +      "properties": {
      +        "background_color": {
      +          "type": "string"
      +        },
      +        "background_type": {
      +          "type": "string"
      +        },
      +        "font_style": {
      +          "type": "string"
      +        },
      +        "gradient_end": {
      +          "type": "string"
      +        },
      +        "gradient_start": {
      +          "type": "string"
      +        },
      +        "primary_color": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "updated_at": {
      +      "type": "string"
      +    },
      +    "username": {
      +      "description": "Absent until a username is claimed",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "verification_level": {
      +      "description": "Always 'basic'; no levels are computed; removed in the next major.",
      +      "type": "string"
      +    },
      +    "view_count": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "profile_id",
      +    "is_primary",
      +    "verification_level",
      +    "is_business",
      +    "public_proofs",
      +    "proof_order",
      +    "custom_links",
      +    "theme",
      +    "is_public",
      +    "show_verification_dates",
      +    "show_proof_channels",
      +    "show_delegations",
      +    "support_email",
      +    "email_theme",
      +    "view_count",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description earns that by naming the exact consequence: the previous primary becomes secondary. It also discloses the authentication requirement and the start_login dead end, which annotations cannot convey. It stops short of saying what happens if the profile doesn't exist or whether the demotion is reversible.

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?

The core behavior and its side effect are front-loaded in two tight sentences. The auth block is boilerplate repeated across this server's tools but is genuinely actionable, so it mostly earns its space.

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?

An output schema exists, so return values need no explanation, and the mutation's side effect plus the auth gate are both covered. The remaining gap is the undisclosed source of a valid profile_id, which matters for a one-required-param mutation.

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 the single parameter already carries a description ('Profile ID to set as primary'), so the baseline applies. The description adds no guidance on where to source the profile_id (e.g., list_profiles, get_my_profile), which would have been the one useful addition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Set a profile as the primary profile') and immediately clarifies the resulting state change. It is clearly distinguishable from the many sibling setters (set_primary_email, set_primary_phone) by naming the profile resource explicitly.

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

Usage Guidelines4/5

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

It provides a concrete prerequisite (needs a Proof account), a step-by-step auth path, and explicitly rules out a tempting but wrong alternative — 'start_login does NOT open this tool.' It does not, however, compare this against related siblings like update_profile or list_profiles, so there's no full when-to-use framing.

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.