You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22f096b
Browse filesBrowse the repository at this point in the historyBrowse files
'Lets an agent work in Sim, the AI workspace for building, deploying, and managing AI agents: search the Sim API, then read or change workspaces, workflows and their runs, tables, knowledge bases, files, logs, credentials, and deployments.'
27
+
21
28
constINSTRUCTIONS=`Sim is the AI workspace where teams build, deploy, and manage AI agents. This server exposes the full Sim API: workspaces, workflows and their runs, tables, knowledge bases, files, logs, credentials, deployments, and more.
22
29
23
30
1. Find an operation with search_operations (keywords, optionally a domain).
@@ -43,8 +50,21 @@ const searchInput = z
43
50
.describe(
44
51
'Keywords matched against operation names, summaries, and paths, e.g. "table rows".'
45
52
),
46
-
domain: z.enum(OPERATION_DOMAINS).optional().describe('Only operations in this API area.'),
@@ -111,8 +161,9 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
111
161
{
112
162
title: 'Search operations',
113
163
description:
114
-
'Find Sim API operations by keyword or domain. Returns each operation’s name, HTTP method, path, summary, and the tool that runs it. Call without a query to list a domain.',
164
+
'Find Sim API operations by keyword or domain. Returns how many match and, best match first, each operation’s name, HTTP method, path, summary, and the tool that runs it. Call without a query to list a domain.',
115
165
inputSchema: searchInput,
166
+
outputSchema: searchOperationsOutput,
116
167
annotations: {
117
168
title: 'Search operations',
118
169
readOnlyHint: true,
@@ -121,16 +172,17 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
'Get the JSON Schema of an operation’s path parameters, query, body, and headers. Read it before calling an operation for the first time.',
183
+
'Get what is needed to call one operation: its HTTP method, path, summary, longer description when it has one, the tool that runs it, whether it refuses workspace API keys, and the JSON Schema of its path parameters, query, body, and headers. Read it before calling an operation for the first time.',
133
184
inputSchema: describeInput,
185
+
outputSchema: describeOperationOutput,
134
186
annotations: {
135
187
title: 'Describe operation',
136
188
readOnlyHint: true,
@@ -143,7 +195,7 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
@@ -168,12 +220,12 @@ export function createSimMcpServer(context: Omit<McpDispatchContext, 'signal'>):
168
220
server.registerTool(
169
221
TOOL_NAMES.write,
170
222
{
171
-
title: 'Change Sim',
223
+
title: 'Write to Sim',
172
224
description:
173
-
'Run a Sim API operation that creates, changes, runs, or deletes something, such as createTable, executeWorkflow, or deleteFile.',
225
+
'Run a Sim API operation that needs write access: one that creates, changes, runs, or deletes something, or reaches out to another service, such as createTable, executeWorkflow, or deleteFile. Changes apply immediately, with no preview or undo. A workflow run executes its blocks, which can call external services and use credits, so confirm deletions and runs with the user first.',
0 commit comments