Skip to main content
Glama

set_keyword_link

Map a keyword to a destination URL to automate DM replies. When a follower comments or DMs the keyword, the link is sent back automatically, with global or per-post scoping.

Instructions

Map a keyword to a resource/destination link for DM automation. When a follower comments/DMs the keyword, the link is sent back (delivery activates once Instagram messaging access is approved). Re-running with the same keyword + scope updates the link instead of creating a duplicate. Omit media_id for a global rule (fires on any post); set media_id for a single post.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkYesThe destination URL to send (e.g. a resource-hub article).
keywordYesThe trigger word, e.g. 'guide' or 'link'. Case-insensitive.
media_idNoOptional. A specific post/media id to scope the rule to. Omit for a global rule across all posts.
platformNoPlatform this rule applies to. Omit for any connected platform. Only Instagram delivers today.
match_typeNo'contains' (default) fires if the comment includes the keyword; 'exact' requires a full match.
reply_to_commentNoAlso post a public reply to the comment (e.g. 'Check your DMs', wording varies). Defaults to true.
Behavior4/5

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

With no annotations, the description carries the full burden. It transparently discloses delivery activation timing, upsert behavior, and platform limitations ('Only Instagram delivers today'). It doesn't cover auth or rate limits, but the key behavioral traits are well communicated.

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?

The description is three sentences, each earning its place. It front-loads the purpose, then adds essential operational details without fluff or repetition of schema content.

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

Completeness4/5

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

Given the tool's complexity (6 params, no output schema, no annotations), the description covers the most critical aspects: function, update behavior, scope, and platform limitation. It could mention return values or error cases, but overall it's sufficiently complete for an AI agent to invoke correctly.

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?

Although schema coverage is 100%, the description adds semantic value by explaining the media_id field (global vs single post) and the platform limitation. It also highlights the composite scope for the upsert behavior, which is not evident from the schema alone.

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?

The description opens with a clear verb and resource: 'Map a keyword to a resource/destination link for DM automation.' This directly states the tool's function and distinguishes it from sibling tools like list_keyword_links and delete_keyword_link, which are read and delete operations respectively.

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?

The description provides useful context on when to use this tool, including re-running for updates and the distinction between global and per-post rules via media_id. It doesn't explicitly name alternatives, but the sibling tool names make the CRUD role obvious, and the upsert behavior clarifies this is the create/update tool.

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/AI-Product-Allen-Yu/viralspin-mcp'

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