Skip to main content
Glama

set_primary_profile

Destructive

Deprecated: use set_primary_sub_account

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous 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"
      -    },
      -    "channels_complete": {
      -      "description": "The owner's statement that the channels listed are all of theirs.",
      -      "type": "boolean"
      -    },
      -    "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"
      -    },
      -    "name_headline": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "brand": {
      -              "type": "string"
      -            },
      -            "field": {
      -              "type": "string"
      -            },
      -            "match_kind": {
      -              "type": "string"
      -            },
      -            "state": {
      -              "type": "string"
      -            },
      -            "tier": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "state",
      -            "tier",
      -            "brand",
      -            "match_kind",
      -            "field"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Why a published name may not lead the page (it carries a protected brand word); it leads only when an OV/EV certificate names it. Null when not demoted."
      -    },
      -    "name_review": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "brand": {
      -              "type": "string"
      -            },
      -            "field": {
      -              "type": "string"
      -            },
      -            "reason": {
      -              "type": "string"
      -            },
      -            "state": {
      -              "type": "string"
      -            },
      -            "unlocks_with": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "state",
      -            "reason",
      -            "brand",
      -            "field",
      -            "unlocks_with"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Why a typed name is left out of the public reads: it reads as a protected brand's own, until a domain of that brand is checked. Null when nothing is held."
      -    },
      -    "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"
      -      ]
      -    },
      -    "username_is_default": {
      -      "description": "The username was given automatically (from the domain the profile shows, else its short id); the owner may replace it once with a name of their choice.",
      -      "type": "boolean"
      -    },
      -    "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",
      -    "channels_complete",
      -    "name_review",
      -    "name_headline",
      -    "support_email",
      -    "email_theme",
      -    "view_count",
      -    "created_at",
      -    "updated_at"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed5 schema fields changed
    • addedOutput schema / properties / channels_complete
      Added value: +{
      +  "description": "The owner's statement that the channels listed are all of theirs.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / name_headline
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "brand": {
      +          "type": "string"
      +        },
      +        "field": {
      +          "type": "string"
      +        },
      +        "match_kind": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "type": "string"
      +        },
      +        "tier": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "tier",
      +        "brand",
      +        "match_kind",
      +        "field"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Why a published name may not lead the page (it carries a protected brand word); it leads only when an OV/EV certificate names it. Null when not demoted."
      +}
    • addedOutput schema / properties / name_review
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "brand": {
      +          "type": "string"
      +        },
      +        "field": {
      +          "type": "string"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "type": "string"
      +        },
      +        "unlocks_with": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "reason",
      +        "brand",
      +        "field",
      +        "unlocks_with"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Why a typed name is left out of the public reads: it reads as a protected brand's own, until a domain of that brand is checked. Null when nothing is held."
      +}
    • addedOutput schema / properties / username_is_default
      Added value: +{
      +  "description": "The username was given automatically (from the domain the profile shows, else its short id); the owner may replace it once with a name of their choice.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "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"
      -]New value: +[
      +  "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",
      +  "channels_complete",
      +  "name_review",
      +  "name_headline",
      +  "support_email",
      +  "email_theme",
      +  "view_count",
      +  "created_at",
      +  "updated_at"
      +]
  3. 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"
      +}
  4. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  5. First observed

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already flag this as non-read-only and destructive, so the agent knows it mutates state, but the description adds nothing beyond the deprecation notice. It doesn't explain what is replaced or demoted when a primary profile changes, nor any effect on the previously primary profile.

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 short sentence with zero padding, and the most important fact (deprecation) is front-loaded. Nothing extraneous is included.

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?

For a deprecated alias this is close to sufficient: the replacement is named and the single parameter is fully documented in the schema. It falls short of complete because it never says what the tool actually does or whether calls to it still succeed.

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?

There is a single required profile_id parameter with 100% schema description coverage, so the schema already conveys its meaning. The description adds no further semantics about the parameter, which is acceptable given full schema coverage.

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

Purpose2/5

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

The description never states what the tool does with the profile; it only declares deprecation status. An agent must infer 'sets a primary profile' from the tool name alone rather than from the description text.

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?

It names a concrete replacement (set_primary_sub_account), which is useful routing guidance. However, it doesn't say whether this tool still works, whether existing callers should migrate, or what happens if it is invoked anyway.

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.