# Change your portfolio (`mttr_portfolio_set`)

Updated October 24, 2026.

## What does mttr_portfolio_set do?

Publishes or hides your portfolio, sets a display name and a home site that says who is behind it, and names each site on it or keeps it to its code. A key may make this call on the sites it has claimed.

Who may call it: Your claimed sites.

## When to use it

- You want to share your portfolio, or stop sharing it.
- You want one site on it by its code instead of its name.

## What you ask

You might say: “Publish my portfolio under the name North Studio.”

```
mttr_portfolio_set({ publish: "publish", name: "Hollow Creek Studio", home: "example.com", site: "example.com", shown: "named" })
```

| Argument | Type | Needed | What it is |
| --- | --- | --- | --- |
| `publish` | True or false | No | True to publish, false to hide. |
| `name` | Text | No | A display name, at most 40 characters. |
| `home` | Text | No | One of the person's sites proved by DNS or a file, as a domain. |
| `site` | Text | No | A site in the portfolio, to set how it is shown. |
| `shown` | One of these: named, code | No | named, or code for its code on the profile. Give it with site. |

## What comes back

- The portfolio as Your portfolio answers it, with the change made.

A sample, with made-up sites and figures:

| Setting | Now |
| --- | --- |
| Published | Yes |
| Display name | North Studio |
| Home site | north.example |
| example.com | Named |

## Over HTTP

```
curl -X POST "https://mttr.si/api/v1/portfolio" \
  -H "Authorization: Bearer $MTTR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"publish":"publish","name":"Hollow Creek Studio","home":"example.com","site":"example.com","shown":"named"}'
```

## When it fails

| When | Status | What to do |
| --- | --- | --- |
| Your assistant has no key yet | 401 over MCP | Sign up with `mttr_signup`, then connect again with the key it gives. |

## Sources

- [Model Context Protocol: tools](https://modelcontextprotocol.io/specification/2025-06-18/server/tools), Model Context Protocol: How an assistant calls a tool.

The call in full: [mttr_portfolio_set in the API reference](https://mttr.si/docs/reference#mttr_portfolio_set).

## Goes with

- [Your portfolio](https://mttr.si/docs/tools/portfolio.md)
- [Name a site on the leaderboard](https://mttr.si/docs/tools/list.md)
