Skip to main content
Glama

Follow an account on X

follow_on_x
DestructiveIdempotent

Follow an account (targetUserId) from a connected X account, or unfollow with undo: true. Following is PUBLIC: confirm with the user first.

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": {
      "accountId": "<accountId>",
      "targetUserId": "<targetUserId>"
    },
    "name": "follow_on_x"
  }
}

Input Schema

NameRequiredDescriptionDefault
undoNotrue undoes the action.
accountIdYesConnected X account.
targetUserIdYesId of the X account to follow.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the mutation and retry profile is covered structurally. The description adds genuinely new context not present in annotations: the action is publicly visible on the target profile and therefore requires user confirmation, and it clarifies the semantics of the destructive path (unfollow). It does not describe error conditions or what happens to existing relationship state on unfollow.

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?

Two sentences with no filler. The primary action and its parameter come first, the inverse follows, and the confirmation requirement is placed last for emphasis without burying the core operation.

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?

For a four-parameter mutation tool with full schema coverage and no output schema, the description covers the essentials: what it does, the inverse mode, visibility consequences, and the confirm-first rule. Remaining omissions are modest, such as rate-limit behavior or what happens when already following the target.

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 description coverage is 100%, so a baseline of 3 applies, but the description earns above that by mapping 'undo: true' explicitly onto a distinct business operation (unfollow) rather than leaving it as a generic inversion flag. It also anchors targetUserId as the account being followed, adding meaning beside the schema's 'Id of the X account to follow'.

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 names a specific verb and resource ('Follow an account (targetUserId)') and immediately clarifies the inverse operation ('unfollow with undo: true'), so an agent knows exactly what state change it produces. The title and annotation set corroborate the action rather than being restated verbatim.

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?

It gives an actionable prerequisite unique to this operation: 'Following is PUBLIC: confirm with the user first', which tells the agent to seek user confirmation before calling. It does not compare against adjacent assets like bookmark_on_x or retweet_on_x, but those are different actions rather than real alternatives, so the gap is minor.

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.

Resources