Skip to main content
Glama
osAlhaddad1

instagram-mcp

by osAlhaddad1

instagram_search_gate

Read-onlyIdempotent

Filter an Instagram search pool by privacy, shop status, media count, and follower range to keep only qualified candidates, with drop reasons and next step.

Instructions

Cut the pool down using only data already fetched. Costs nothing.

Run it straight after recall, and again after enrichment - the first pass can only see privacy and handles, while the second can see follower counts and bios. The under-18 floor does not depend on this: it is applied the moment age becomes readable and again at every exit, so no ordering of stages can let a minor through.

Every drop is counted by reason, so a gate that removes too much can be loosened deliberately rather than guessed at.

Args: search_id: The search to filter. exclude_private: Drop private accounts. exclude_shops: Drop apparent businesses. min_media: Minimum post count. follower_min: Follower floor. follower_max: Follower ceiling. max_pool: Maximum candidates to keep.

Returns: kept, dropped, reasons (a count per drop reason) and next_step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_poolNoCap the surviving pool, keeping the best-corroborated candidates.
min_mediaNoMinimum posts an account must have.
search_idYesThe search to filter.
follower_maxNoHighest acceptable follower count. Omit for no ceiling.
follower_minNoLowest acceptable follower count. Omit for no floor.
exclude_shopsNoDrop accounts that look like shops or brands rather than people.
exclude_privateNoDrop private accounts. They cannot be verified, so they are dead weight.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already cover read-only, non-destructive, idempotent behavior. The description adds useful context such as the two-pass visibility stages, the under-18 floor being independent, and that every drop is counted by reason. No contradiction with annotations, and it provides meaningful behavioral nuance beyond the structured hints.

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?

The description is moderately long but every sentence carries meaning, explaining workflow, safety, and return values. It front-loads the purpose and usage, then lists args and returns clearly. It could be slightly trimmed, but the structure is logical and not wasteful.

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?

Given the tool's complexity (7 parameters, output schema, two-stage visibility), the description covers the workflow stages, return values (kept, dropped, reasons, next_step), and the safety invariant. It explains the 'costs nothing' aspect and the reason counting for tunability. Nothing essential is missing for correct invocation.

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 descriptions already cover all parameters (100% coverage), so baseline is 3. The description adds value by explaining which filters are effective at which stage (e.g., follower_min/max only work on the second pass because follower counts aren't visible in the first). This contextual insight helps the agent understand parameter behavior beyond the raw 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?

Clearly states it filters the candidate pool using already-fetched data, naming the verb 'cut the pool down' and the resource (search results). It explicitly distinguishes from search tools by emphasizing no new data is fetched, and the phrase 'Run it straight after recall' positions it within the workflow.

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

Usage Guidelines5/5

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

Gives explicit when-to-use instructions: 'Run it straight after recall, and again after enrichment' and explains that the first pass only sees privacy and handles while the second sees follower counts and bios. Also clarifies when not to rely on it for the under-18 floor and that over-removal can be loosened, providing actionable guidance.

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/osAlhaddad1/instagram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server