Skip to main content
Glama

add_account

Add an X (Twitter) account to x-use's configuration by validating and saving account settings, importing a local cookie file, and storing persona and target keyword preferences.

Instructions

Add an account to config/accounts.json (validated, backed up, atomic). cookie_file is a path ON THIS MACHINE to an exported x.com cookies JSON; it is validated and copied beside the selected accounts configuration as <account_id>_cookies.json. Cookie values never pass through the tool call. persona is freeform markdown describing the account's voice/engagement style (max 4000 chars).

Input Schema

NameRequiredDescriptionDefault
proxyNo
personaNo
is_activeNo
account_idYes
cookie_fileNo
target_keywordsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds genuinely new behavior: the write is validated, backed up, and atomic, and cookie values are never passed through the tool call. It still omits the failure mode on a duplicate account_id, which matters given idempotentHint=false.

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?

Front-loads the destination file and the validated/backed-up/atomic guarantees in the first clause, then handles the two tricky parameters. Dense but every sentence carries information; 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?

Return values are covered by the output schema, and the description supplies the mutation semantics and the cookie-handling security model. Remaining gaps are the duplicate-account behavior and the unexplained target_keywords semantics.

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 the full burden for 6 parameters and only documents two (cookie_file, persona). It does cover the non-obvious ones well — cookie_file is clarified as an on-machine path that gets validated and copied to <account_id>_cookies.json, and persona has a 4000-char cap — but account_id, proxy, is_active, and especially target_keywords receive no explanation anywhere.

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+resource: 'Add an account to config/accounts.json', naming the concrete persisted artifact. It does not differentiate itself from the nearby update_account / set_account_active siblings, so an agent must infer that this is the create path rather than modify.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: no statement about prerequisites, what happens if the account_id already exists, or when to prefer this over update_account. The verb 'Add' implies creation, but nothing tells the agent when this tool is the right choice versus its siblings.

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