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

admin_get_accounts

Retrieve all linked LinkedIn accounts and pending connection sessions for management and verification.

Instructions

Get all connected LinkedIn accounts and pending connection sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute method that calls admin.accounts.getAll() to retrieve all connected LinkedIn accounts.
    public override async execute({
      admin,
    }: {
      admin: LinkedApiAdmin;
      args: Record<string, never>;
    }): Promise<TAccountsResult> {
      return await admin.accounts.getAll();
    }
  • Input schema (empty object) for admin_get_accounts tool validation.
    protected readonly schema = z.object({});
  • Registration of AdminGetAccountsTool in the adminTools array.
    new AdminGetAccountsTool(),
  • Abstract AdminTool base class that AdminGetAccountsTool extends.
    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>;
    }
  • The getTool method returning tool metadata (name, description, empty inputSchema) for MCP registration.
    public override getTool(): Tool {
      return {
        name: this.name,
        description: 'Get all connected LinkedIn accounts and pending connection sessions.',
        inputSchema: {
          type: 'object',
          properties: {},
        },
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action. It does not disclose that this is a read-only operation, authentication requirements, or any potential rate limits, leaving behavioral traits largely unspecified.

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 with no unnecessary words, achieving maximum conciseness while conveying the core purpose.

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 list operation with no parameters and no output schema, the description is adequate but could be improved by noting that it returns a list of accounts and sessions, or mentioning pagination or count limits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so the schema coverage is 100%. The description adds no additional meaning beyond the empty schema, but per the baseline rule for 0 parameters, a score of 4 is appropriate.

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 verb 'Get' and the specific resources 'connected LinkedIn accounts and pending connection sessions', distinguishing it from sibling tools like admin_connect_account and admin_disconnect_account.

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 such as admin_get_seats or admin_get_limits_usage. It only states what the tool does, without context on prerequisites or when not to use it.

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