Skip to main content
Glama

Schedchie Social Media Scheduler

Count posts affected by a disconnect

get_affected_post_count
Read-only

How many still-pending, future-scheduled posts target this account: what disconnect_account or delete_account_group would affect. Returns {count, account:{accountId, platform, username, groupId, groupName}}. The account echo names the account the id resolved to, for the user to recognise: accountIds are opaque and look nothing alike across platforms (a Pinterest accountId is the handle, a Bluesky one is a did:plc:...), so a wrong id is easy to pass and impossible to spot from a count alone. A 404 'Account not found' is the opposite of an all-clear: the id matched no account in this workspace at all (typo, wrong platform, already disconnected), so nothing was counted and nothing was ruled out, and list_accounts has the real ids. A 403 is not an all-clear either: the account exists but sits outside the groups this member may touch. Only count:0 together with an account echo the user recognises means nothing is at stake.

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>"
    },
    "name": "get_affected_post_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYesThe account's accountId (see list_accounts)
workspaceNoAct in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description goes further by decoding failure modes: a 404 means the id matched no account (typo, wrong platform, already disconnected) and rules nothing out, while a 403 means the account exists outside the member's group scope. That is genuine behavioral context beyond the annotations. It stops short of describing pagination or any scoping/rate limits, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Core purpose is front-loaded in the first clause, followed by return shape and then error semantics in a logical order. It is dense and slightly repetitive in the parallel 'A 404 ... A 403 is not an all-clear either' construction, but no sentence is 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?

No output schema exists, and the description compensates by spelling out the exact return shape {count, account:{...}} and why the account echo matters for verification. Combined with the 404/403 interpretation rules, an agent has everything needed to call this and interpret every outcome 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning about accountId: ids are opaque and platform-specific (a Pinterest id is the handle, a Bluesky id is a did:plc:...), so an incorrect id is easy to pass and invisible from a count alone. The workspace parameter is left entirely to the schema, which prevents a higher score.

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: counts still-pending, future-scheduled posts targeting an account, and frames it as the pre-flight check for disconnect_account and delete_account_group, naming both siblings explicitly. An agent can distinguish this from pending_count or list_posts without opening a schema.

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?

Explicitly frames when to call it (before a disconnect or group deletion), and provides a decision rule: only count:0 plus a recognised account echo means nothing is at stake. It also routes to list_accounts when ids are wrong, giving an alternative with the condition that selects it.

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.