Skip to main content
Glama

LinkedIn: Get profile from URL

linkedin_get_profile_from_url
Read-onlyIdempotent

Resolve a full LinkedIn person profile URL into the real LinkedIn profile and stable system user ID required by downstream actions. Example: https://www.linkedin.com/in/john-doe-123/?trk=foo -> extract ONLY 'john-doe-123' from the /in/{public_identifier}/ pathname, ignore query parameters/fragments/trailing slash, call Get User Profile, and return the profile including result.id. Use result.id for connection requests, new conversations and other actions requiring user_id. Never pass the full URL to those action tools. LinkedIn system user ID: Stable LinkedIn/Unipile user id, commonly ACo... for Classic profiles. Obtain with: linkedin_get_profile_from_url(profile_url) -> result.id; linkedin_get_profile(user_id_or_public_identifier) -> result.id; linkedin_search_people(...) -> selected result.id Never pass: full linkedin.com/in/... URL, person name, company ID. LinkedIn public identifier: Slug after /in/ in a LinkedIn profile URL. Example https://www.linkedin.com/in/john-doe/?trk=x -> john-doe. Obtain with: extract only pathname segment immediately after /in/; ignore query string, fragment and trailing slash Never pass: full URL, ACo system ID when a public identifier is specifically required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoOptional Nilyo connection ID (unipile_account_id from list_connected_accounts). Omit when the user has one account for this provider. When several exist, Nilyo never guesses: list them (display name, identifier, provider user ID), choose the one the user named or ask, and pass its ID here.
profile_urlYesFull linkedin.com/in/... person profile URL. Query parameters are ignored.
with_sectionsNoOptional LinkedIn Classic profile sections such as linkedin_experience, linkedin_education or linkedin_skills.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond readOnly/openWorld/idempotent annotations, the description discloses parsing behavior (ignore query params/fragments/trailing slash, extract only the slug), the call to Get User Profile, and that the response includes result.id. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is an effective front-loaded purpose statement, but the description is long and repeats the path extraction rule and 'Never pass' guidance in separate sections. Most content is useful, but it could be trimmed without loss.

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

Completeness4/5

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

There is no output schema, so the description rightly explains that the result includes result.id and how that ID should be used downstream. It also covers the account/public identifier distinction and alternatives. It is complete for an agent deciding to call this tool and use its result correctly.

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?

Input schema coverage is 100%, so the baseline is 3. The description adds value for profile_url by explaining exactly how it is normalized and why result.id matters, although it does not add semantics for account_id or with_sections beyond the schema.

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 states a specific operation: resolve a full LinkedIn profile URL into the real profile and stable system user ID via extraction of the /in/{public_identifier}/ path segment. It is clearly distinguished from linkedin_get_profile by the URL-to-profile behavior and by explaining that result.id is needed downstream. The example makes the input/output relationship unambiguous.

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

Usage Guidelines4/5

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

It explicitly gives three routes to obtain result.id (linkedin_get_profile_from_url, linkedin_get_profile, linkedin_search_people) and warns never to pass full URLs, person names, or company IDs downstream. It does not explicitly state 'use this when you have a full URL and not a user ID,' but that condition is strongly implied by the purpose and examples.

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.