Skip to main content
Glama
Linked-API
by Linked-API

admin_set_seats

Set the number of subscription seats for your LinkedIn API integration. Specify seat type (core or plus) and billing period. If no active subscription, a checkout link is returned; otherwise, seats update immediately.

Instructions

Set number of subscription seats. Returns checkout link if no active subscription, otherwise updates immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quantityYesNumber of seats (1-1000)
seatTypeYesSeat type. "plus" unlocks Sales Navigator actions.
billingPeriodYesBilling period

Implementation Reference

  • The execute method that calls admin.subscription.setSeats(args) to set subscription seats.
    public override async execute({
      admin,
      args,
    }: {
      admin: LinkedApiAdmin;
      args: TSetSeatsParams;
    }): Promise<TSetSeatsResult> {
      return await admin.subscription.setSeats(args);
    }
  • Zod schema defining input validation for quantity (int 1-1000), seatType (core|plus), and billingPeriod (month|year).
    protected readonly schema = z.object({
      quantity: z.number().int().min(1).max(1000),
      seatType: z.enum(['core', 'plus']),
      billingPeriod: z.enum(['month', 'year']),
    });
  • The AdminSetSeatsTool class definition with name='admin_set_seats'.
    export class AdminSetSeatsTool extends AdminTool<TSetSeatsParams, TSetSeatsResult> {
      public readonly name = 'admin_set_seats';
      protected readonly schema = z.object({
        quantity: z.number().int().min(1).max(1000),
        seatType: z.enum(['core', 'plus']),
        billingPeriod: z.enum(['month', 'year']),
      });
    
      public override async execute({
        admin,
        args,
      }: {
        admin: LinkedApiAdmin;
        args: TSetSeatsParams;
      }): Promise<TSetSeatsResult> {
        return await admin.subscription.setSeats(args);
      }
    
      public override getTool(): Tool {
        return {
          name: this.name,
          description:
            'Set number of subscription seats. Returns checkout link if no active subscription, otherwise updates immediately.',
          inputSchema: {
            type: 'object',
            properties: {
              quantity: {
                type: 'number',
                description: 'Number of seats (1-1000)',
              },
              seatType: {
                type: 'string',
                enum: ['core', 'plus'],
                description: 'Seat type. "plus" unlocks Sales Navigator actions.',
              },
              billingPeriod: {
                type: 'string',
                enum: ['month', 'year'],
                description: 'Billing period',
              },
            },
            required: ['quantity', 'seatType', 'billingPeriod'],
          },
        };
      }
    }
  • Registration of AdminSetSeatsTool in the adminTools array (line 83).
    this.adminTools = [
      new AdminGetSubscriptionStatusTool(),
      new AdminGetSeatsTool(),
      new AdminSetSeatsTool(),
      new AdminGetAccountsTool(),
      new AdminConnectAccountTool(),
      new AdminDisconnectAccountTool(),
      new AdminRegenerateTokenTool(),
      new AdminGetLimitsUsageTool(),
      new AdminSetLimitsTool(),
      new AdminResetLimitsTool(),
    ];
  • Abstract AdminTool base class that AdminSetSeatsTool extends, providing validate() and requiring execute().
    export abstract class AdminTool<TParams, TResult> {
      public abstract readonly name: string;
      protected abstract readonly schema: z.ZodSchema;
    
      public abstract getTool(): Tool;
    
      public validate(args: unknown): TParams {
        return this.schema.parse(args) as TParams;
      }
    
      public abstract execute({
        admin,
        args,
      }: {
        admin: LinkedApiAdmin;
        args: TParams;
      }): Promise<TResult>;
    }
Behavior3/5

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

With no annotations provided, the description must fully disclose behavioral traits. It indicates mutation and conditional behavior (checkout link vs immediate update) but omits details on side effects, permissions, idempotency, or error handling. This is adequate but not comprehensive.

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 sentence that efficiently conveys the core action and conditional behavior. It is well-structured and front-loaded, with no extraneous content.

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?

Given the tool's complexity (3 required parameters, conditional outcome, no output schema), the description provides basic context but lacks details on return value format, error conditions, or operational constraints. It is minimally complete.

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 input schema has 100% description coverage for all three parameters. The description adds no additional meaning beyond the schema, so it meets the baseline score of 3.

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 clearly states the tool's purpose: it sets the number of subscription seats and specifies two distinct outcomes based on subscription status. This effectively distinguishes it from sibling tools like admin_get_seats and admin_get_subscription_status.

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 does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention prerequisites or when not to use it. It only describes the behavioral outcome, leaving the agent to infer appropriate usage context.

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/Linked-API/linkedapi-mcp'

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