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

admin_disconnect_account

Permanently disconnect a LinkedIn account. Provide the account UUID to remove access; reconnection requires starting from scratch.

Instructions

Disconnect a LinkedIn account. This action is irreversible — the account must be reconnected from scratch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYesUUID of the account to disconnect

Implementation Reference

  • Handler that executes the disconnect logic by calling admin.accounts.disconnect(args)
    public override async execute({
      admin,
      args,
    }: {
      admin: LinkedApiAdmin;
      args: TDisconnectParams;
    }): Promise<void> {
      await admin.accounts.disconnect(args);
    }
  • Zod schema validating the input requires a single 'accountId' string field
    protected readonly schema = z.object({
      accountId: z.string(),
    });
  • MCP Tool definition with name, description, and input schema (JSON Schema format)
    public override getTool(): Tool {
      return {
        name: this.name,
        description:
          'Disconnect a LinkedIn account. This action is irreversible — the account must be reconnected from scratch.',
        inputSchema: {
          type: 'object',
          properties: {
            accountId: {
              type: 'string',
              description: 'UUID of the account to disconnect',
            },
          },
          required: ['accountId'],
        },
      };
  • Registration of AdminDisconnectAccountTool in the adminTools array
    this.adminTools = [
      new AdminGetSubscriptionStatusTool(),
      new AdminGetSeatsTool(),
      new AdminSetSeatsTool(),
      new AdminGetAccountsTool(),
      new AdminConnectAccountTool(),
      new AdminDisconnectAccountTool(),
      new AdminRegenerateTokenTool(),
      new AdminGetLimitsUsageTool(),
      new AdminSetLimitsTool(),
      new AdminResetLimitsTool(),
    ];
  • Abstract base class AdminTool that provides the validate method and defines the contract for execute and getTool
    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>;
    }
Behavior4/5

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

The description explicitly states the irreversible nature of the action and the need to reconnect from scratch, which is a key behavioral trait. Without annotations, this warning adds value.

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 extremely concise with two sentences that directly convey the action and its irreversibility. No wasted words.

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 simple tool with one parameter and no output schema, the description is adequate but lacks details about potential error conditions, side effects, or response format, which would be helpful for an agent.

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 already covers the parameter (accountId) with a description. The tool description adds no extra meaning beyond what the schema provides, so baseline score of 3 is appropriate.

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 'Disconnect' and resource 'LinkedIn account', distinguishing it from sibling tools like admin_connect_account. However, it could be more specific about the scope of the disconnection.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., admin_get_accounts or admin_set_limits). There is no context about prerequisites or scenarios where disconnection is appropriate.

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