MetorialDocs

Set up Ragie in Metorial for Claude, ChatGPT and Cursor

Share Ragie with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 14 tools (8 read-only).

To give your team Ragie in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Ragie integration in a Metorial portal, and each person connects with an API key. Ingest, process, and semantically retrieve documents using RAG (Retrieval Augmented Generation). The integration has 14 tools, 8 read-only, 5 write and 1 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Ragie API key. Obtain from https://secure.ragie.ai/api-keys

Setup settings

Setup also asks for:

  • partition (optional): Default partition to scope operations to. Useful for multi-tenant applications.

Admin: share Ragie 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 Ragie. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

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

Choose who gets it

Add the access groups that should see Ragie. 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 Ragie integration. Once it exists, check which groups have it:

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

Employee: connect Ragie

In the portal

Open Ragie in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (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 ragie
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Ragie 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 ragie
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 8 read-only tools, such as get_document and get_entities, and lose the 5 write tools, such as create_document or update_document, and the destructive tool delete_document.

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 ragie
metorial tools <integration-id>
metorial call <integration-id> list_documents -d '{}'

metorial tools lists the 14 tools, minus any you rejected. list_documents takes no input. It lists documents in Ragie with optional metadata filtering and pagination.

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

Tools

Read-only tools (8)

  • retrieve_documents: Perform semantic search across indexed documents using a natural language query. Needs query.
  • get_entities: Retrieve extracted entities either by instruction (all entities extracted by a specific instruction across documents) or by document (all entities from a specific document across all instructions).
  • get_document: Retrieve detailed information about a specific document including its status, metadata, content, summary, and chunks. Needs documentId.
  • list_documents: List documents in Ragie with optional metadata filtering and pagination.
  • create_response: Generate an AI-powered answer using Ragie's deep-search agentic retrieval. Needs query.
  • list_partitions: Browse partitions in name order with pagination.
  • download_document_source: Prepare the original source file of a document for download.
  • list_document_chunks: Read a page of document chunks in index order, optionally limited to a range of chunk indices.

Write tools (5)

  • update_document: Update an existing document's metadata, content from a URL, or raw text/JSON data. Needs documentId.
  • manage_instructions: Create, list, update, or delete entity extraction instructions. Needs action.
  • create_document: Ingest a new document into Ragie for indexing and retrieval. Needs source.
  • manage_partitions: List, create, inspect, or delete partitions. Needs action.
  • manage_connections: List, inspect, update, enable/disable, sync, or delete data source connections. Needs action.

Destructive tools (1)

  • delete_document: Permanently delete a document from Ragie. Needs documentId.

Triggers

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

  • connection_events: Triggers on connection sync events: sync started, sync progress, sync finished, and connection/partition limit exceeded.
  • document_events: Triggers when document status changes (indexed, keyword_indexed, ready, failed) or when a document is deleted.

Next steps