Skip to main content
Glama
Open Instagram API

Open Instagram API

like_post

Likes an Instagram post or reel using its shortcode, or removes the like when unlike is set to true.

Instructions

Like a post or reel, or remove the like (unlike=True).

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": {
      "shortcode": "<shortcode>"
    },
    "name": "like_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
unlikeNo
shortcodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, and destructiveHint=false. The description adds the meaningful detail that the same tool also unlikes when unlike=True, which is not derivable from the annotations. It does not say whether repeated likes are idempotent or what happens if the post is already liked.

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?

A single compact sentence that front-loads the primary action and then the toggle case. Nothing redundant and nothing buried.

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

Completeness3/5

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

For a simple two-parameter tool with annotations and no output schema, the description covers both operating modes adequately. The remaining gap is the unexplained required shortcode and the absence of any return-value hint (e.g., whether the new like state is echoed back).

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 0%, so the description carries real weight: it explains that unlike=True removes the like rather than adding it, which is the key ambiguity in the schema. However, the required shortcode parameter is never explained — an agent must infer that it identifies the target post or reel.

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?

States a specific verb and resource ("Like a post or reel") and covers both directions of the operation. It is clearly distinguishable from siblings like comment_on_post, save_post, and publish_post, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the verb: call it to like something, or with unlike=True to reverse it. There is no explicit guidance on prerequisites (e.g., must the post be public, must the user be logged in) or on when to prefer save_post instead.

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