Skip to main content
Glama
subzeroid

HikerAPI — Instagram MCP

get_v2_media_info_by_url

Read-only

Fetches an Instagram post or reel by link and returns the media object; returns 404 for deleted or unavailable posts and 400 for non-post URLs.

Instructions

Get an Instagram post or reel by its link (instagram.com/p/... or /reel/...). Use get_v2_media_info_by_code for a bare shortcode. Returns the media object, 404 for deleted or unavailable posts and 400 for links that are not posts: use get_v2_story_by_url for story links and get_v1_share_by_url for /s/ share links. Promoted (ad) posts may also return 404. Live request to Instagram, billed per call. (GET /v2/media/info/by/url)

Input Schema

NameRequiredDescriptionDefault
urlYes
safe_intNoConvert all big integers to strings

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.1
    • addedInput schema / properties / safe_int
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Convert all big integers to strings",
      +  "title": "Safe Int"
      +}
  2. First observedv1.0.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description adds rich behavioral context the annotations cannot convey: 404 for deleted/unavailable/promoted posts, 400 for non-post links, and that it is a live Instagram request billed per call. This is exactly the extra context annotations don't supply.

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-loaded with the core purpose, then routing alternatives, then error/billing semantics, then the HTTP endpoint. Dense but every clause earns its place with no filler.

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?

Although there is no output schema, the description states what is returned ('the media object') and enumerates the error conditions (404 deleted/unavailable/promoted, 400 non-post). For a 2-param read tool this is complete.

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

Parameters3/5

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

Schema description coverage is 50% – url is self-evident and safe_int is documented in the schema. The description adds the accepted URL formats for url, but does not explain safe_int or its default. Baseline 3 is appropriate when the schema carries most of the load.

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 ('Get an Instagram post or reel by its link'), gives the exact URL forms it accepts, and explicitly routes bare shortcodes to the sibling get_v2_media_info_by_code. It is unmistakably distinct from the sibling tools.

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?

Explicit when-to-use rules: use get_v2_media_info_by_code for bare shortcodes, get_v2_story_by_url for story links, get_v1_share_by_url for /s/ share links, and the accepted URL patterns (instagram.com/p/..., /reel/...). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.