MetorialDocs

Set up TinyURL in Metorial for Claude, ChatGPT and Cursor

Share TinyURL with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 8 tools (4 read-only).

To give your team TinyURL in Claude, ChatGPT, Cursor and other AI clients, an admin shares the TinyURL integration in a Metorial portal, and each person connects with an API token. Agents can create, manage, and analyze shortened URLs with custom aliases and branded domains. The integration has 8 tools, 4 read-only, 3 write and 1 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares TinyURL in a portal and how each person connects
  • What TinyURL asks for when you connect, and where to find it
  • How to keep the 4 read-only tools and reject the other 4

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenAPI tokentoken

API Token

To connect, a person enters:

  • token: TinyURL API token from https://tinyurl.com/app/dev

Admin: share TinyURL in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose TinyURL. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from TinyURL.

Choose who gets it

Add the access groups that should see TinyURL. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user TinyURL integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search tinyurl

Employee: connect TinyURL

In the portal

Open TinyURL in the catalog

Sign in to your portal and open TinyURL. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search tinyurl
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your TinyURL connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list tinyurl
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_tinyurl and get_analytics, and lose the 3 write tools, such as create_tinyurl or update_tinyurl, and the destructive tool delete_tinyurl.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list tinyurl
metorial tools <integration-id>
metorial call <integration-id> get_analytics -d '{"type":"timeline"}'

metorial tools lists the 8 tools, minus any you rejected. get_analytics needs type, so replace the placeholders. It retrieves analytics for TinyURL links.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (4)

  • get_tinyurl: Retrieve details about an existing TinyURL including its destination URL, hit count, tags, expiration, and analytics settings. Needs alias.
  • get_analytics: Retrieve analytics for TinyURL links. Needs type.
  • list_tinyurls: List TinyURLs on your account.
  • count_tinyurls: Count available or archived TinyURLs on your account, optionally filtered by creation date, alias, or tag.

Write tools (3)

  • create_tinyurl: Create a shortened URL from a long URL. Needs url.
  • archive_tinyurl: Toggle the archive status of a TinyURL. Needs alias.
  • update_tinyurl: Update an existing TinyURL's properties. Needs alias.

Destructive tools (1)

  • delete_tinyurl: Permanently delete an existing TinyURL. Needs alias.

Triggers

TinyURL has 2 triggers, which fire on events in TinyURL:

  • inbound_webhook
  • new_tinyurl: Triggers when a new TinyURL is created on your account.

Next steps