Skip to main content
Glama

HandleHaul

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 1 credit 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.7/5.0
Behavior5/5

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

Goes well beyond the read-only/idempotent annotations: discloses the ordering guarantee and meta.order flag, the ~200-row page size, that Instagram withholds follow dates, that a page can be one row short so a missing row is not an unfollow, the credit cost model (cache, errors, sandbox keys), and the pagination loop contract. That is exactly the operational context annotations cannot carry.

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?

Front-loads identity and ordering, then use cases, then behavioral caveats, then pagination and cost. Every sentence carries non-redundant information despite the density; nothing is padding.

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, the description still surfaces the key response fields (meta.order, pagination.has_more, pagination.next_cursor) and their meaning, plus the credit model and the data-quality caveat. An agent has everything needed to paginate correctly and avoid misreading gaps as unfollows.

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 workflow meaning the schema doesn't: pass pagination.next_cursor back as cursor while pagination.has_more is true, and meta.order signals when ordering is guaranteed (linking to strict_order's purpose). It does not re-explain user/fresh beyond what the schema already says.

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?

States a specific verb and resource ('Accounts that a public Instagram account follows') plus the ordering semantics, making it directly distinguishable from the get_followers sibling by direction. No ambiguity about what the call returns.

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?

Gives concrete usage scenarios ('who did @user recently follow', 'new follows', tracking follows over time), which frames when to reach for it. It does not explicitly contrast itself with get_followers, but the follows-vs-followers direction is stated unambiguously enough that an agent can self-route.

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.