Skip to main content
Glama

user_update

Modify user account information, product access, or usage data in the Pickaxe platform to maintain accurate user management.

Instructions

Update an existing user's details, products, or usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
studioNoStudio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION
emailYesThe user's email address
nameNoUpdated display name
productsNoUpdated array of product IDs
currentUsesNoSet current usage count
extraUsesNoAdd extra usage allowance
isEmailVerifiedNoUpdate email verification status

Implementation Reference

  • Handler function for the 'user_update' tool. Constructs update data from arguments and sends a PATCH request to the Pickaxe API endpoint `/studio/user/{email}`.
    case "user_update": {
      const data: Record<string, unknown> = {};
      if (args.name !== undefined) data.name = args.name;
      if (args.products !== undefined) data.products = args.products;
      if (args.currentUses !== undefined) data.currentUses = args.currentUses;
      if (args.extraUses !== undefined) data.extraUses = args.extraUses;
      if (args.isEmailVerified !== undefined) data.isEmailVerified = args.isEmailVerified;
    
      const result = await pickaxeRequest(
        `/studio/user/${encodeURIComponent(args.email as string)}`,
        "PATCH",
        { data },
        studio
      );
      return JSON.stringify(result, null, 2);
    }
  • Input schema definition for the 'user_update' tool, specifying parameters like email (required), name, products, usage counts, and email verification status.
    inputSchema: {
      type: "object",
      properties: {
        studio: studioParam,
        email: {
          type: "string",
          description: "The user's email address",
        },
        name: {
          type: "string",
          description: "Updated display name",
        },
        products: {
          type: "array",
          items: { type: "string" },
          description: "Updated array of product IDs",
        },
        currentUses: {
          type: "number",
          description: "Set current usage count",
        },
        extraUses: {
          type: "number",
          description: "Add extra usage allowance",
        },
        isEmailVerified: {
          type: "boolean",
          description: "Update email verification status",
        },
      },
      required: ["email"],
    },
  • src/index.ts:325-360 (registration)
    Tool registration in the tools array, including name, description, and inputSchema. This array is returned by the ListTools handler.
    {
      name: "user_update",
      description: "Update an existing user's details, products, or usage.",
      inputSchema: {
        type: "object",
        properties: {
          studio: studioParam,
          email: {
            type: "string",
            description: "The user's email address",
          },
          name: {
            type: "string",
            description: "Updated display name",
          },
          products: {
            type: "array",
            items: { type: "string" },
            description: "Updated array of product IDs",
          },
          currentUses: {
            type: "number",
            description: "Set current usage count",
          },
          extraUses: {
            type: "number",
            description: "Add extra usage allowance",
          },
          isEmailVerified: {
            type: "boolean",
            description: "Update email verification status",
          },
        },
        required: ["email"],
      },
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it's an update operation but doesn't cover critical aspects like required permissions, whether changes are reversible, rate limits, or what the response looks like (since there's no output schema). This is a significant gap for a mutation tool with multiple parameters.

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?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the complexity (a mutation tool with 7 parameters, no annotations, and no output schema), the description is incomplete. It lacks behavioral context, usage guidelines, and details on return values, which are essential for an agent to use this tool effectively without trial and error.

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?

The schema description coverage is 100%, so parameters are well-documented in the schema itself. The description adds minimal value beyond implying that 'details, products, or usage' correspond to the parameters, but it doesn't provide additional context like parameter interactions or default behaviors. This meets the baseline for high schema coverage.

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 clearly states the verb ('Update') and resource ('existing user's details, products, or usage'), making the purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'user_create' or 'user_get', which would require mentioning it's for modifying existing users rather than creating new ones or retrieving data.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., user must exist), exclusions (e.g., not for creating users), or comparisons to siblings like 'user_create' or 'user_get', leaving the agent to infer usage from context alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aplaceforallmystuff/mcp-pickaxe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server