Skip to main content
Glama

Create AccountReferralCode

accountreferralcode_create

Creates AccountReferralCode with your own account permissions, the same as the site. Without confirm it shows a preview and saves nothing.

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": "accountreferralcode_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
kindNo
nameNo
confirmNoSaves the change. Omitted: shows a preview and saves nothing.
branch_urlNo
creative_idNo
partner_codeNo
reward_amountNo
reward_currencyNo
consumer_user_idNoAct on this seat (own seat, account owner or admin, or staff). Same checks as the site.
partner_reward_kindNo
partner_reward_valueNo
partner_reward_currencyNo
partner_consumer_user_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / partner_code
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / partner_consumer_user_id
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / partner_reward_currency
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / partner_reward_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / partner_reward_value
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / reward_amount
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / reward_currency
      Added value: +{
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / consumer_user_id / description
      Added value: +"Act on this seat (own seat, account owner or admin, or staff). Same checks as the site."
  3. Added

TDQS

C2.9/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: operations run under the caller's own account permissions and default to a no-op preview unless confirm is supplied. It is silent, however, on what a preview returns, whether repeated calls create duplicates (relevant given idempotentHint=false), and what errors occur on permission failure. This is solid but not rich disclosure, so a 3 against an already-declared safety 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?

Two compact sentences with the entity and the preview default front-loaded; nothing is padded. The phrase 'the same as the site' is vague filler that could be replaced with an actual permission rule, but the size is appropriate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 14-parameter mutation tool with almost no schema documentation, no output schema and no annotations explaining outcomes. An agent still cannot tell which fields are meaningful (are reward_* required for a valid code?), what the preview returns, or how seat scoping interacts with the rest of the payload.

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?

Fourteen parameters with only 14% schema coverage, so the description must compensate and largely does not. The one behavior it explains (confirm as save-switch) merely restates the schema's own description of confirm, while code, kind, reward_* and partner_* fields get no meaning from the description or the schema.

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 and resource ('Creates AccountReferralCode'), which cleanly separates it from the read-only siblings accountreferralcode_get and accountreferralcode_list. It does not clarify what a referral code actually is (link? code? reward config?), but the create action is unambiguous.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as update_campaign_code or create_campaign_code. The only implicit usage cue is that omitting confirm produces a preview, which describes a mode rather than telling the agent when to pick this tool.

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.