Skip to main content
Glama

dm_block_user

Prevent a specific user from sending you direct messages without blocking them globally on X/Twitter. Provide the user ID to restrict DM access only.

Instructions

Block a user from sending you DMs (does not block them globally).

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": {
      "user_id": "<user_id>"
    },
    "name": "dm_block_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.6
    • removedInput schema / properties / user_id / description
      Removed value: -"The numeric user ID to block in DMs."
    • changedInput schema / properties / user_id / type
      Previous value: -"integer"New value: +"string"
  2. First observedv1.0.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key behavioral trait: the block is scoped to DMs only. It says nothing about idempotency, what happens to existing DM threads, required permissions, or whether the block is reversible — real gaps for a mutation tool. The output schema covers return values, which limits the penalty somewhat.

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 sentence with the scope qualifier placed immediately after the action, so the most decision-relevant nuance is front-loaded. No filler.

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 one-parameter mutation with an output schema, the description covers the essential distinction an agent needs. Only the user_id format and side effects on existing conversations remain unaddressed.

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?

One required parameter with 0% schema description coverage, so the schema gives only 'user_id: string'. The description mentions 'a user' but does not clarify whether the id is a numeric ID, handle, or screen name — the main ambiguity that would cause a failed call.

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?

Names a specific verb (Block) and resource (a user's DMs) and immediately scopes the effect with '(does not block them globally)'. This implicitly separates it from the sibling block_user, though it never names that sibling outright.

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 parenthetical acts as an explicit when-not: use this for DM-only blocking, and by implication use block_user when a global block is wanted. It stops short of naming the alternative, so the agent must infer the sibling from the contrast.

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

Deploy Server

Other Tools