# Hosted MCP tools

These are the tools your AI tool can call on Unspar's hosted MCP server. They are grouped by the permission you approve when you connect, and each tool lists its arguments.

Web version: https://www.unspar.com/docs/mcp/tools/

Each group below matches a permission group on the approval page that opens when Claude Code or Codex connects (see [What do you approve?](https://www.unspar.com/docs/mcp/#what-do-you-approve) for a walkthrough of that page). **Team identity** is always included. Its single tool, `unspar_whoami`, tells the agent which team and connection it is using, when the connection was last used, and when it expires.

A connection receives the tools for the groups you check, and that list stays fixed. If Unspar adds a new tool later, reconnect your AI tool to get it. When you choose **Only these projects**, the connection never gets `unspar_project_create` or the tools for destinations and authoring assets. You can see which tools a connection has on the **MCP connections** page: open the **API tokens** screen from [Settings](https://app.unspar.com/settings) and replace `/api-tokens` at the end of the URL with `/mcp-connections`.

Arguments ending in `_id` expect Unspar IDs. Most are 26-character codes like `01JX9Q3M4N5P6R7S8T9V0W1X2Y`, while built-in templates and voices use readable IDs like `template:builtin:general_guide` or `voice:builtin:friendly_explainer`.

`unspar_article_content` returns the article as Markdown. Passing `html` as the format value returns an error.

The hosted server has no publishing tool. Although the app's tool list at [app.unspar.com/llms.txt](https://app.unspar.com/llms.txt) still mentions `unspar_article_publish`, no connection can see or call it. To publish from an agent, use the local server or the [CLI](https://www.unspar.com/docs/cli/).

## How do the local tools differ?

The local server built into the unspar CLI comes with its own set of tools, listed in [Local MCP server](https://www.unspar.com/docs/cli/local-mcp/). Only the local server can publish articles (`unspar_article_publish`) or approve an article waiting for human review (`unspar_article_approve`). On the other hand, it does not include price estimates, idea runs, or `unspar_article_queue`.

A few tools also use different argument names on the two servers, so make sure you match the server you are calling.

| Tool                    | Hosted server                            | Local server                    |
| ----------------------- | ---------------------------------------- | ------------------------------- |
| `unspar_article_create` | `project_id`, `template_id`, `outlet_id` | `project`, `template`, `outlet` |
| `unspar_article_list`   | `project_id`, `q`                        | `project`, `search`             |

## Tool reference

### Team identity

Always granted and cannot be unticked. It only lets the client identify the approved team and connection (unspar_whoami) and spends no credits.

- `unspar_whoami`: Show the authenticated team and OAuth connection without exposing secrets.

### Read workspace data

Lists and reads projects, articles, status, finished text, revisions, artifacts, publish attempts, credits, outlets, templates, image presets, voices and idea runs in the approved projects. Read-only and spends no credits; it needs at least one project in scope.

- `unspar_project_list`: List projects visible to the hosted MCP connection.
  - `status` (active,paused,archived): 
  - `search` (string): 
  - `sort` (created_at,-created_at,updated_at,-updated_at,name,-name,status,-status): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_project_show`: Show one project by opaque project id.
  - `project_id` (string, required): 
- `unspar_project_visual_identity_show`: Show the current look and latest options. Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `project_id` (string, required): 
- `unspar_credits_balance`: Show the team's credit balance.
- `unspar_credits_transactions`: List credit transactions for the authenticated team.
  - `type` (credit_added,credit_spent,debt,adjustment,other): 
  - `since` (string): Second-precision RFC3339 timestamp.
  - `until` (string): Second-precision RFC3339 timestamp.
  - `sort` (created_at,-created_at): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_article_list`: List articles in the selected projects. Filter by project_id or status (draft, queued, processing, completed, failed, cancelled). Returns summaries with opaque article ids.
  - `project_id` (string): 
  - `status` (string): 
  - `q` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_article_show`: Show one article by opaque article id, including its markdown content once generation completed.
  - `article_id` (string, required): 
- `unspar_article_status`: Show generation and publishing status for an article. Poll this after unspar_article_create until status is completed, failed or cancelled.
  - `article_id` (string, required): 
- `unspar_article_publish_attempts`: List publish attempt state for one article without provider credentials or remote payloads.
  - `article_id` (string, required): 
- `unspar_article_content`: Return the final article text. Use format markdown (default) or html. Only available once generation completed.
  - `article_id` (string, required): 
  - `format` (markdown,html): 
- `unspar_article_revisions`: Revision state of a finished article: whether changes can be requested now (can_request, blocked_reason), what the next round costs (price_credits), and every round so far, newest first, with what changed and what was not done. Poll it after unspar_article_revise until the round is completed or failed, then read the new text with unspar_article_content.
  - `article_id` (string, required): 
- `unspar_article_artifacts`: List generated artifacts for one article.
  - `article_id` (string, required): 
  - `kind` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_outlet_list`: List publishing outlets (WordPress sites, email targets and others) of the team with their opaque ids.
  - `q` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_template_list`: List article templates available to the team with their opaque ids. The brief is the topic. Use the project's default template, or the built-in that fits the format, unchanged. Put site and audience into the project context. If a built-in truly can't do it, duplicate the closest template and change only the fields that need it. Never write a template from scratch.
  - `status` (active,archived,all): 
  - `q` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_template_compare`: Compare a saved variant with its recorded source and the current source. Shows variant changes separately from later source changes. Does not change settings or spend credits.
  - `template_id` (string, required): 
- `unspar_template_recommend`: Recommend tested templates for a topic or brief without creating content or spending credits. The project default is preferred when available. Tested means reviewed for its recorded use case. Experimental means it has not passed that review.
  - `topic` (string): 
  - `brief` (string): 
  - `project` (string): 
- `unspar_image_preset_list`: List image presets available to template authoring with their opaque ids and placements.
  - `q` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
  - `origin` (string): 
- `unspar_voice_list`: List writing voices available to the team with their opaque ids.
  - `q` (string): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_idea_run_list`: List idea discovery runs for one selected project, newest first. Returns opaque run ids, state, counts, and timestamps.
  - `project_id` (string, required): 
  - `page` (integer): 
  - `per_page` (integer): 
- `unspar_idea_run_show`: Show one idea discovery run by opaque run id, including public diagnostics and failure state.
  - `run_id` (string, required): 
- `unspar_idea_appearance_list`: List the public idea appearances produced by one idea run, including decision state and article queue status.
  - `run_id` (string, required): 
  - `page` (integer): 
  - `per_page` (integer): 

### Create and manage articles and ideas

Creating, queuing, retrying and deriving articles, paid revision rounds (the first round per article is free), and starting, expanding, refreshing or queuing idea runs spend credits. Estimates, cancel, unqueue, restoring an earlier version and idea decisions don't.

- `unspar_article_estimate`: Estimate the credit reservation for an article brief without creating an article, reserving credits, or spending credits.
  - `project_id` (string, required): 
  - `brief` (string, required): 
  - `title` (string): 
  - `language` (string): 
  - `template_id` (string): 
  - `outlet_id` (string): 
  - `scheduled_at` (string): 
  - `queue` (boolean): 
  - `client_reference` (string): 
  - `additional_context` (string): 
  - `economy` (boolean): Economy mode: cheaper models and lighter research. It costs the same credits as a normal article. Off by default.
  - `voice` (string): Writing voice for this article: a built-in voice id such as voice:builtin:friendly_explainer or a team voice id from unspar_voice_list. Omit it to use the template or project default voice.
  - `fact_check` (boolean): Price the optional fact-check add-on: 1 credit (Short text, Article), 3 (In-depth) or 6 (Report), charged only when the check completes. Omit it to follow the template; false turns a template's check off.
- `unspar_article_derive`: Create one short post from a completed article using its frozen text only. Spends the normal text price, normally 1 credit. No research, fact-check or media. Humanizer and Simplifier run. The response includes parent_published_url beside the link-free post. Poll the child article until completed.
  - `article_id` (string, required): 
  - `format` (linkedin_post,long_linkedin_post,x_post,newsletter_note, required): 
- `unspar_article_revise`: Ask for changes to a completed article that is not approved, scheduled or published. An editor applies the feedback to the existing text and keeps everything else word for word; it does not write a new article and adds no new facts, links or images. Write the feedback like a note to an editor (what to change, where). The first round per article is free; later rounds normally cost 1 credit, charged only when the round succeeds. One round at a time, at most 10 per article. A round takes about a minute: poll unspar_article_revisions. Earlier versions can come back with unspar_article_revision_restore. If a call's result is lost, read unspar_article_revisions before calling again.
  - `article_id` (string, required): 
  - `feedback` (string, required): 
- `unspar_article_revision_restore`: Bring back the text from before a completed revision round (revision_id from unspar_article_revisions, where can_restore is true). Free and instant. The restore is itself a new entry in the history, so it can be undone the same way. If a call's result is lost, read unspar_article_revisions before calling again.
  - `article_id` (string, required): 
  - `revision_id` (string, required): 
- `unspar_article_create`: Create an article from a brief in one of the selected projects and start generation (spends credits). Returns the article with its opaque id; poll unspar_article_status until completed, then fetch unspar_article_content. Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `project_id` (string, required): 
  - `brief` (string, required): Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `title` (string): 
  - `language` (string): 
  - `template_id` (string): 
  - `outlet_id` (string): 
  - `scheduled_at` (string): 
  - `queue` (boolean): 
  - `client_reference` (string): 
  - `additional_context` (string): 
  - `economy` (boolean): Economy mode: cheaper models and lighter research. It costs the same credits as a normal article. Off by default.
  - `voice` (string): Writing voice for this article: a built-in voice id such as voice:builtin:friendly_explainer or a team voice id from unspar_voice_list. Omit it to use the template or project default voice.
  - `fact_check` (boolean): Optional fact-check for this new article: checks the finished text against its research and the web, fixes clear errors with a source and lists claims to check. Adds 1 credit (Short text, Article), 3 (In-depth) or 6 (Report), charged only when the check completes. Omit it to follow the template; false turns a template's check off.
- `unspar_article_queue`: Queue a draft article for generation.
  - `article_id` (string, required): 
- `unspar_article_cancel`: Cancel a queued or running article generation.
  - `article_id` (string, required): 
- `unspar_article_retry`: Retry a failed article generation. Spends credits again.
  - `article_id` (string, required): 
- `unspar_article_unqueue`: Move an idea-created queued article back to draft when generation has not started.
  - `article_id` (string, required): 
  - `idempotency_key` (string): 
- `unspar_idea_run_start`: Start an idea discovery run for a selected project. Ideas the project already covers (its articles, its site pages, open or dismissed ideas) are left out, and the run reports how many in counts.left_out.
  - `project_id` (string, required): 
  - `workflow_type` (string, required): analyze_site, competitor_gaps, research_topic, refresh_content or plan_series. Send only the fields this type uses; a filled field it does not use is rejected with a message naming the field.
  - `project_url` (string): analyze_site only. Defaults to the project website.
  - `competitor_url` (string): competitor_gaps only, required there.
  - `topic` (string): research_topic only, required there.
  - `focus_area` (string): refresh_content only. For research_topic, put the focus into topic or audience.
  - `series_brief` (string): plan_series only, required there.
  - `series_length` (integer): plan_series only.
  - `audience` (string): research_topic and plan_series only.
  - `idempotency_key` (string): 
- `unspar_idea_run_find_more`: Start an expansion pass for an ordinary completed idea run.
  - `run_id` (string, required): 
  - `idempotency_key` (string): 
- `unspar_idea_run_refresh`: Start a lineage-preserving refresh from an idea run stored input.
  - `run_id` (string, required): 
  - `idempotency_key` (string): 
- `unspar_idea_decide`: Set an idea appearance decision to new, shortlisted, or dismissed.
  - `appearance_id` (string, required): 
  - `decision` (new,shortlisted,dismissed, required): 
- `unspar_idea_queue`: Queue one idea appearance as an article generation draft.
  - `appearance_id` (string, required): 
  - `confirm_media_spend` (boolean): 
  - `idempotency_key` (string): 

### Create and edit projects

Creates projects and updates projects in scope, including their context and visual identity. Spends no credits (visual identity options are free, with daily limits); creating projects needs the connection to cover all projects.

- `unspar_project_create`: Create a project for the approved team. context sets the site context (background: two to four plain sentences on who the site is for, its scope and its limits, no writing-style instructions), the form of address and the default length; writing and research both use it, and an article's own context is added to it.
  - `name` (string, required): 
  - `description` (string): 
  - `url` (string): 
  - `status` (active,paused,archived): 
  - `timezone` (UTC,America/New_York,America/Los_Angeles,Europe/London,Europe/Berlin,Asia/Tokyo): 
  - `language` (en-US,en-GB,en-AU,en-CA,de-DE,de-AT,de-CH,es-ES,es-MX,es-AR,fr-FR,fr-CA,fr-BE,fr-CH): 
  - `limit` (integer): 
  - `automate` (boolean): 
  - `context` (object): Project context that every new article uses; omitted keys keep their values.
- `unspar_project_update`: Update fields on one project visible to the hosted MCP connection. context sets the site context (background: two to four plain sentences on who the site is for, its scope and its limits, no writing-style instructions), the form of address and the default length; writing and research both use it, and an article's own context is added to it. Omitted context keys keep their values; null or "" clears background.
  - `project_id` (string, required): 
  - `name` (string): 
  - `description` (string): 
  - `url` (string): 
  - `status` (active,paused,archived): 
  - `timezone` (UTC,America/New_York,America/Los_Angeles,Europe/London,Europe/Berlin,Asia/Tokyo): 
  - `language` (en-US,en-GB,en-AU,en-CA,de-DE,de-AT,de-CH,es-ES,es-MX,es-AR,fr-FR,fr-CA,fr-BE,fr-CH): 
  - `limit` (integer): 
  - `automate` (boolean): 
  - `context` (object): Project context that every new article uses; omitted keys keep their values.
- `unspar_project_visual_identity_generate`: Show three free options for a project. Daily limits apply. Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `project_id` (string, required): 
  - `preset` (string): Public image preset id from the image preset list.
  - `palette` (array): 
  - `notes` (string): 
- `unspar_project_visual_identity_approve`: Approve the named round and option, or update only colors and notes without round and candidate. Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `project_id` (string, required): 
  - `round` (string): Exact round public id returned by generate or show. Required with candidate.
  - `candidate` (integer): 
  - `palette` (array): 
  - `notes` (string): 
- `unspar_project_visual_identity_clear`: Turn off the look for future images. Images: set each project's look once with its visual identity (show three options, pick one). New illustrations, or new photos if the look is a photo style, then follow it. Do not describe image styles or colors in briefs.
  - `project_id` (string, required): 

### Manage destinations

Creates, updates, deletes, detects and tests outlets (publishing destinations) and stores their credentials write-only. Spends no credits and does not publish; these tools only appear when the connection covers all projects.

- `unspar_outlet_create`: Create a publishing destination for the team. Credentials are accepted write-only and are never returned.
  - `name` (string, required): 
  - `type` (string, required): 
  - `connection` (object): GitHub: owner, repo, branch, directory on github.com. Create-only Markdown files. Use credentials.api_key for a fine-grained token with Contents read/write. Webhook: connection.api_url is a public HTTPS endpoint; credentials.api_key is the signing secret. Sends signed article.publish_requested JSON once, with up to three short delivery tries.
  - `credentials` (object): api_key is the GitHub token or webhook signing secret. Encrypted and write-only. Omit on update to keep the saved credential.
  - `selection` (object): 
  - `defaults` (object): 
- `unspar_outlet_update`: Update a publishing destination. Omitted credentials are preserved; clear_credentials explicitly removes stored secrets.
  - `outlet_id` (string, required): 
  - `name` (string): 
  - `connection` (object): GitHub: owner, repo, branch, directory on github.com. Create-only Markdown files. Use credentials.api_key for a fine-grained token with Contents read/write. Webhook: connection.api_url is a public HTTPS endpoint; credentials.api_key is the signing secret. Sends signed article.publish_requested JSON once, with up to three short delivery tries.
  - `credentials` (object): api_key is the GitHub token or webhook signing secret. Encrypted and write-only. Omit on update to keep the saved credential.
  - `selection` (object): 
  - `defaults` (object): 
  - `clear_credentials` (object): 
- `unspar_outlet_delete`: Delete a publishing destination when it is not referenced by articles or required by Project Auto publishing.
  - `outlet_id` (string, required): 
- `unspar_outlet_detect`: Detect a publishing provider and setup hints from a public URL without saving an outlet.
  - `input` (string, required): 
- `unspar_outlet_test`: Run and persist a sanitized connection test for a publishing destination.
  - `outlet_id` (string, required): 

### Manage authoring assets

Creates, updates, duplicates and deletes team templates and manages writing voices. Voice extraction and its retry spend credits and can fetch source URLs; the rest is free. These tools only appear when the connection covers all projects.

- `unspar_template_create`: Create a variant with based_on and sparse settings plus a one-line reason. Prefer duplicating an existing template unchanged. Creation without a source requires the team owner to enable the expert setting.
  - `name` (string, required): 
  - `description` (string): 
  - `language` (string): 
  - `mode_scope` (string): 
  - `based_on` (string): 
  - `reason` (string): 
  - `article_depth` (string): 
  - `configuration` (object): 
- `unspar_template_update`: Update a team template. Revision is required for configuration changes or rebase_on_source and checked when supplied for other edits. Omitted fields survive; nested maps merge and lists replace, including empty lists. Give a one-line reason when changing source settings. Set rebase_on_source=true to refresh the source snapshot while keeping template values; an unavailable source returns 422. A stale revision returns a conflict; reload and reapply explicitly.
  - `template_id` (string, required): 
  - `revision` (integer): 
  - `rebase_on_source` (boolean): Refresh the source snapshot and recompute overrides, keeping the template values. Requires revision; unavailable sources return 422.
  - `reason` (string): 
  - `status` (active,archived): 
  - `name` (string): 
  - `description` (string): 
  - `language` (string): 
  - `mode_scope` (string): 
  - `article_depth` (string): 
  - `configuration` (object): 
- `unspar_template_duplicate`: Duplicate a built-in or team template into the team library. This is the way to adapt a template: duplicate the closest built-in, then change only the fields the requirement needs and keep its writing instructions.
  - `template_id` (string, required): 
- `unspar_template_delete`: Delete a team template when it is not referenced by enabled Project Auto settings.
  - `template_id` (string, required): 
- `unspar_voice_create`: Create a draft writing voice for the team.
  - `name` (string, required): 
  - `description` (string): 
  - `profile` (object, required): 
  - `brief` (string, required): 
  - `preservation_brief` (string, required): 
- `unspar_voice_update`: Partially update a team writing voice. Omitted fields keep their current values.
  - `voice_id` (string, required): 
  - `name` (string): 
  - `description` (string): 
  - `profile` (object): 
  - `brief` (string): 
  - `preservation_brief` (string): 
- `unspar_voice_activate`: Activate a draft team voice so it becomes selectable.
  - `voice_id` (string, required): 
- `unspar_voice_archive`: Archive a draft or active team voice and report projects that used it as the default.
  - `voice_id` (string, required): 
- `unspar_voice_duplicate`: Duplicate a team voice or built-in voice into a new draft. Provide exactly one of voice_id or built_in_key.
  - `voice_id` (string): 
  - `built_in_key` (string): 
- `unspar_voice_extract`: Create a queued voice extraction attempt from pasted samples and optional discovered source candidate ids. Spends credits.
  - `samples` (string): 
  - `name` (string, required): 
  - `description` (string): 
  - `source_candidate_ids` (array): 
  - `idempotency_key` (string): 
- `unspar_voice_extraction_status`: Show one voice extraction attempt by public attempt id.
  - `attempt_id` (string, required): 
- `unspar_voice_extraction_retry`: Retry a failed or cancelled voice extraction with fresh samples. Spends credits again.
  - `attempt_id` (string, required): 
  - `samples` (string, required): 
  - `name` (string): 
  - `description` (string): 
  - `idempotency_key` (string): 
- `unspar_voice_sources_discover`: Discover reusable voice source candidates from URLs and optional pasted samples.
  - `inputs` (array): 
  - `pasted_samples` (string): 
- `unspar_voice_manage_list`: List team voices across draft, active, and archived states.
  - `q` (string): 
  - `status` (string): 
  - `sort` (string): 
  - `page` (integer): 
  - `per_page` (integer): 

### Manage automation

Turns Project Auto on, changes or off, deletes projects and updates or deletes articles. The tools charge nothing themselves, but Project Auto then generates articles on its own schedule, which spends credits.

- `unspar_project_auto_show`: Show Project Auto configuration for one project visible to the hosted MCP connection.
  - `project_id` (string, required): 
- `unspar_project_auto_set`: Enable or update Project Auto for one project visible to the hosted MCP connection.
  - `project_id` (string, required): 
  - `enabled` (boolean, required): 
  - `daily_article_goal` (integer): 
  - `template_reference` (string): 
  - `stop_condition` (until_turned_off,until_date,after_article_count): 
  - `stop_at` (string): 
  - `stop_article_goal` (integer): 
  - `confirm_media_spend` (boolean): 
- `unspar_project_auto_disable`: Disable Project Auto for one project visible to the hosted MCP connection.
  - `project_id` (string, required): 
- `unspar_project_delete`: Delete one project visible to the hosted MCP connection.
  - `project_id` (string, required): 
- `unspar_article_update`: Update the working title, brief, or additional context for a draft or failed article.
  - `article_id` (string, required): 
  - `title` (string): 
  - `brief` (string): 
  - `additional_context` (string): 
- `unspar_article_delete`: Delete a draft, failed, completed, queued, or cancelled article when no completed-article repair fence is active.
  - `article_id` (string, required):
