Built by Metorial, the integration platform for agentic AI.

Learn More

Tools

Text Completion

Generate text from a single prompt using Writer's Palmyra models. Unlike chat completion, this takes a plain text prompt and returns a text continuation. Best for single-turn text generation tasks like summarization, rewriting, or content creation.

Download File

DEPRECATED — use `download_original_file` instead. Download the content of a file by its ID as text.

Delete File

Permanently delete a file discovered with list_files. The file will be disassociated from all Knowledge Graphs. This action cannot be undone.

Get Agent Details

Retrieve details of a no-code agent discovered with list_agents, including its required inputs, configuration, and capabilities. Use this to understand what inputs are needed before invoking an agent.

List Files

List files uploaded to Writer. Returns file metadata including ID, name, status, and associated Knowledge Graph IDs. Supports pagination and ordering.

Add File to Knowledge Graph

Add an uploaded file to a Knowledge Graph. Call list_knowledge_graphs and list_files to discover IDs. Upload the file with upload_file and wait for get_file to report completed before adding it.

Query Knowledge Graph

Ask a question to one or more Knowledge Graphs discovered with list_knowledge_graphs and get an AI-generated answer grounded in your uploaded data. Returns the answer, source references, and optional inline citations. Supports subquery decomposition for complex questions.

Invoke No Code Agent

Run a deployed no-code agent (application) as a microservice by providing its required inputs. Returns the generated output. Use **List Agents** first to find the agent ID and required input fields.

Get Knowledge Graph

Retrieve details and file ingestion status for a Knowledge Graph. Call list_knowledge_graphs to discover IDs.

List Knowledge Graphs

List a page of accessible Knowledge Graphs in your Writer account. Returns the ID, name, description, and creation date of each graph.

Create Knowledge Graph

Create a new Knowledge Graph in Writer. A Knowledge Graph is a collection of files used for RAG-based question answering. After creation, add files to it using add_file_to_graph.

Chat Completion

Generate AI responses from conversation history using Writer's Palmyra models. Supports multi-turn conversations with system, user, and assistant messages. Can leverage **tool calling** with custom functions, Knowledge Graph queries, and web search. Use **response format** to get structured JSON output (compatible models).

List Agents

List deployed no-code agents (applications) in your Writer account. Returns agent metadata including IDs, names, and types. Use this to discover available agents and their application IDs before invoking them.

List Models

List available Palmyra and configured external models in your Writer account. Returns model IDs and names. Use this to discover which models are available for text generation and chat completions.

Delete Knowledge Graph

Permanently delete a Knowledge Graph and disassociate all its files. Call list_knowledge_graphs to discover IDs. This action cannot be undone.

Remove File from Knowledge Graph

Remove a file from a Knowledge Graph. Call list_knowledge_graphs and list_files to discover IDs. The file can be re-added later or used with other graphs.

Update Knowledge Graph

Update the name and/or description of an existing Knowledge Graph. Call list_knowledge_graphs to discover IDs.

Get File

Retrieve metadata for a file discovered with list_files, including the file name, processing status, and associated Knowledge Graphs.

Download Original File

Prepare an uploaded Writer file discovered with list_files for download, preserving the original binary content.

Upload File

Upload a text or binary file to Writer for Knowledge Graphs or agent inputs. Optionally associate it with a graph. Retrieve the file afterward to confirm the graph association.