Skip to content
gist.link ↗

MCP tools

GistLink MCP uses a hybrid tool surface:

  • a handful of discovery tools that are always present and can reach every public operation in the suite, and
  • per-operation tools — one typed tool per GraphQL query or mutation — for the apps you opt into in the server URL.

All tools are generated from the same GraphQL schemas as the API reference, so names, arguments, descriptions and required permissions always match it. Internal, service-only and super-admin operations, and the auth service, are never exposed.

Tool Arguments What it does
list_apps — Lists the apps you can use through MCP, with a one-line description of each.
describe_app app Lists an app’s operations with descriptions, arguments and the permission each requires (e.g. support:query:tickets).
call_operation app, operation, arguments Runs any public operation by name with JSON arguments, using the same default selection set as the per-operation tool.
<app>_graphql query, variables Runs an arbitrary GraphQL document against one app (e.g. crm_graphql). Only listed for the apps named in ?apps=.

With no URL options, an assistant typically calls list_apps, then describe_app, then call_operation. That keeps the tool list tiny (good for model context and cost) while still reaching the whole suite.

Options are query parameters on the MCP URL, so you set them once when you add the server to a client:

URL Tools listed
https://mcp.gist.link/mcp Discovery tools only.
https://mcp.gist.link/mcp?apps=crm,support Discovery tools + crm_graphql, support_graphql + every per-operation tool for CRM and Support.
https://mcp.gist.link/mcp?apps=crm&readonly=1 Discovery tools + crm_graphql + CRM query tools only.
https://mcp.gist.link/mcp?readonly=1 Discovery tools; call_operation refuses mutations.
  • apps — comma-separated app keys (as in the API reference), at most five. Pick the apps the assistant actually needs; every extra app adds dozens of tools to the model’s context.
  • readonly=1 — hides every mutation tool, and makes call_operation and <app>_graphql reject mutation documents. Use it for research and reporting assistants.

The same options work locally, e.g. http://localhost:8028/mcp?apps=support.

  • IAM tokens only see tools their grants cover. With ?apps=crm,support, a key holding support:query:* and crm:query:contacts gets the discovery tools, Support’s query tools and crm__contacts — no mutation tools and no other CRM operations. describe_app and call_operation are filtered by the same grants.
  • User (OAuth) tokens see every public operation for the selected apps. The product API still authorizes each call against your roles, so a tool being listed doesn’t mean you may use it — you’ll get a clear permission error instead.

tools/list is paginated: clients follow nextCursor automatically. The list doesn’t change during a session (listChanged: false); edit the URL and reconnect to change it.

<app>__<operationName>

Two underscores separate the app key from the GraphQL field name, for example support__tickets, support__createTicket, crm__contacts. Names contain only [a-zA-Z0-9_-] and are at most 64 characters.

Arguments are mapped from the GraphQL signature to JSON Schema:

GraphQL JSON Schema
String, ID string (IDs are always strings)
Int / Float integer / number
Boolean boolean
Enum string with enum
Input object nested object (up to three levels deep)
[T] array of T
Non-null (!) listed in required

Descriptions come from the schema docstrings. For example, support__tickets is listed as:

{
"name": "support__tickets",
"title": "Support: tickets",
"description": "Tickets visible to the caller. ROLE_SUPPORT_AGENT/ROLE_ADMIN see every ticket in the organization; any other authenticated user only sees tickets where they are the requester (matched by auth_user_id or email).\n\nRequires permission: support:query:tickets",
"inputSchema": {
"type": "object",
"properties": {
"filter": {
"type": "object",
"properties": {
"status": { "type": "string" },
"priority": { "type": "string" },
"assigneeId": { "type": "integer" },
"search": { "type": "string", "description": "Matches subject/description." }
}
},
"sort": {
"type": "object",
"properties": {
"field": { "type": "string" },
"direction": { "type": "string", "description": "One of: ASC, DESC." }
},
"required": ["field", "direction"]
},
"first": { "type": "integer" },
"after": { "type": "string" }
}
},
"annotations": { "readOnlyHint": true }
}

(Trimmed — the real schema lists every filter field.)

Each per-operation tool runs its GraphQL operation with a default selection set: the type’s scalar fields to two levels deep, and for connections edges { node { … } } pageInfo { hasNextPage endCursor }. Need different fields? Use <app>_graphql with your own query.

Results come back as both human/model-readable text and structured data:

{
"content": [
{ "type": "text", "text": "{\n \"tickets\": {\n \"edges\": [ … ],\n \"pageInfo\": { \"hasNextPage\": true, \"endCursor\": \"YXJyYXljb25uZWN0aW9uOjQ=\" }\n }\n}" }
],
"structuredContent": {
"tickets": {
"edges": [ { "node": { "id": 1042, "subject": "Refund not received", "status": "open", "priority": "high" } } ],
"pageInfo": { "hasNextPage": true, "endCursor": "YXJyYXljb25uZWN0aW9uOjQ=" }
}
},
"isError": false
}

To page, call the tool again with after set to endCursor. Responses larger than 256 KB are truncated with a note telling the model to narrow the query or page.

Every tool carries MCP tool annotations so clients can decide what needs your approval:

Operation Annotations
Query readOnlyHint: true
Mutation readOnlyHint: false
Mutation whose name contains delete, remove, cancel, void, revoke, archive, refund, disable or purge readOnlyHint: false, destructiveHint: true

So support__tickets is read-only, support__createTicket is a write, and support__deleteTicket is destructive. Annotations are hints for the client’s approval UI — the product API’s authorization is what actually protects your data. See Security.

A tool that fails returns isError: true with a readable message, so the model can recover or explain:

Cause Message gist
GraphQL errors (validation, business rules) The GraphQL error messages, verbatim.
Upstream 401 / exchange refused Your sign-in or key is no longer valid — reconnect or re-mint.
Upstream 403 / missing permission The permission required, e.g. support:mutation:deleteTicket.
Upstream 429 Rate limited, with the Retry-After seconds. See Security.
Timeout (30 s) The app didn’t answer in time; safe to retry reads.

Protocol problems (bad JSON-RPC, unknown tool, invalid arguments) are returned as JSON-RPC errors instead.

You don’t need this to use a client, but it’s handy for debugging or building your own. Every message is a POST to /mcp; responses are application/json. Batches (JSON arrays) are accepted.

1. Initialize

Terminal window
curl https://mcp.gist.link/mcp \
-H "Authorization: Bearer $GISTLINK_MCP_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "1.0.0" }
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-06-18",
"capabilities": { "tools": { "listChanged": false } },
"serverInfo": { "name": "gistlink", "title": "GistLink", "version": "1.0.0" },
"instructions": "Tools for the GistLink suite. Call list_apps, then describe_app, then call_operation…"
}
}

Then acknowledge (no response body; HTTP 202) and send MCP-Protocol-Version: 2025-06-18 on every later request:

{ "jsonrpc": "2.0", "method": "notifications/initialized" }

2. List tools (here with ?apps=support)

Terminal window
curl "https://mcp.gist.link/mcp?apps=support" \
-H "Authorization: Bearer $GISTLINK_MCP_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/list" }'
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{ "name": "list_apps", "description": "List the GistLink apps available to you…", "inputSchema": { "type": "object", "properties": {} }, "annotations": { "readOnlyHint": true } },
{ "name": "describe_app", "…": "…" },
{ "name": "call_operation", "…": "…" },
{ "name": "support_graphql", "…": "…" },
{ "name": "support__tickets", "…": "…" },
{ "name": "support__createTicket", "…": "…" }
],
"nextCursor": "eyJvZmZzZXQiOjUwfQ"
}
}

3. Call a tool

Terminal window
curl "https://mcp.gist.link/mcp?apps=support" \
-H "Authorization: Bearer $GISTLINK_MCP_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "support__tickets",
"arguments": { "filter": { "status": "open" }, "first": 5 }
}
}'
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [{ "type": "text", "text": "{\n \"tickets\": { … }\n}" }],
"structuredContent": { "tickets": { "edges": [ … ], "pageInfo": { "hasNextPage": true, "endCursor": "…" } } },
"isError": false
}
}

The same call through the discovery tools, without ?apps=:

{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "call_operation",
"arguments": {
"app": "support",
"operation": "tickets",
"arguments": { "filter": { "status": "open" }, "first": 5 }
}
}
}