Skip to main content
Glama

Klupt Instagram API

Following, newest first

get_following
Read-onlyIdempotent

Accounts that a public Instagram account follows, in Instagram's real newest-first order: position 1 is the account they followed most recently. Use this for "who did @user recently follow", "new follows" or tracking follows over time. Up to about 200 accounts per page; meta.order is "newest_first" when the order is guaranteed. Instagram does not share follow dates, and a page can occasionally be one row short, so never treat a missing row as an unfollow. Paginate by passing pagination.next_cursor back as cursor while pagination.has_more is true. Costs 2 credits per page (nothing from cache, on errors or with a kd_test_ sandbox key).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "user": "<user>"
    },
    "name": "get_following"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesNumeric user id (cheapest, e.g. "25025320") or Instagram username (e.g. "instagram"). All digits = an id; write "@12345" for a username made only of digits. A username we have not seen in 7 days may cost 1 extra credit for the lookup (see meta.lookup_credits); a numeric id never does.
freshNotrue skips the cache and fetches live data (full price). Default false.
cursorNopagination.next_cursor from the previous page. Leave out for the first page.
strict_orderNotrue: fail with order_unavailable (free) instead of returning a page that is not newest first. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses page size (~200), the meaning of meta.order, the absence of follow dates, possible short pages, and the exact credit model (2 per page, free from cache/on errors/with test keys). This is unusually rich operational context that the annotations do not carry.

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

Conciseness4/5

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

Front-loaded with the identity of the resource and its ordering, then use cases, then caveats and cost. It is a single dense paragraph with many parenthetical asides, which is efficient but slightly harder to scan than a segmented layout.

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

Completeness5/5

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

With no output schema and no annotation coverage of return shape, the description still explains the ordering guarantee, meta.order, the next_cursor/has_more loop, and the short-page caveat. An agent has everything needed to call this correctly and interpret results.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning on top: it explains the cursor loop (feed pagination.next_cursor back while pagination.has_more) and the meta.order guarantee. It leaves 'fresh' and 'strict_order' to the schema, which handles them adequately.

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 gives a concrete verb+resource: 'Accounts that a public Instagram account follows', and pins the ordering ('position 1 is the account they followed most recently'). That is far more specific than the name alone. It never explicitly contrasts with the sibling get_followers, relying on the reader to infer the following/followers distinction from the name.

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 names concrete use cases ('who did @user recently follow', 'new follows', tracking follows over time) and gives a pagination procedure plus a caution about not treating missing rows as unfollows. There is no explicit when-not guidance or named alternative tool, which keeps it below a 5.

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.

Resources