Skip to content
Docs

GraphQL Operation Pack

GraphQL Operation Pack turns several queries and mutations from one imported GraphQL schema into tools an Agent can call. You select the operations once; the agent decides which to call, fills in the variables, and reads the answer. You find it on the node picker’s API & integrations shelf.

The node has one input handle and one output handle. To offer its tools to an agent, connect its output to the Agent node’s Tools handle. As a plain step in a flow it does nothing of its own: it passes the previous node’s output through unchanged.

credential is the only way a pack authenticates: a Connection attaches its resolved headers, a Secret is sent as the Authorization header, and the same credential covers every operation in the pack. The agent never sees it — the credential is attached after the agent has chosen the variables.

The GraphQL Operation Pack node's settings form, with the fields described below
The GraphQL Operation Pack node's settings form, with the fields described below
FieldTypeDefaultDescription
Schema (schemaId)string ✦ (required) — The imported GraphQL schema whose operations this node exposes to the agent.
Operations (operations)key-value map (optional) — The queries and mutations from the schema to expose as agent tools.
Endpoint (endpoint)string ✦ (optional) — Overrides the endpoint for every operation in this pack.
Headers (headers)header rows ✦ (optional) — Extra HTTP headers sent with every call in this pack, as name/value pairs.
Credential (credential)string ✦ (optional) — The credential that authenticates every call in this pack — a Connection or a Secret.
Param overrides (paramOverrides)key-value map (optional) — Per-operation, per-variable rules for how each variable is filled.
Approval (requiresApproval)one of inherit, always, never (optional) — Whether a human must approve this before it runs. “Follow the agent’s approval mode” is almost always right.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

Each selected operation records whether it is a query or a mutation, so this pack knows which of its tools read and which write. A query tool does not inherit the approval a mutation needs, and an agent in a read-only posture keeps its queries.

That is the difference between this pack and the single GraphQL Operation node. There the document you write is opaque — a query and a mutation are indistinguishable without reading it — so every call is treated as a write.

paramOverrides decides, per operation and per variable, who supplies a value:

  • Fixed (fixed) pins a constant the agent cannot change or see.
  • From expression (from-expression) resolves the value from flow data through an expression, so it comes from upstream rather than from the agent.
  • From AI (from-AI) lets the agent choose the value per call.

The outer key is the operation’s own id:

{
"<operation id>": {
"tenantId": { "mode": "from-expression", "expressionPath": "{{ $start->tenantId }}" },
"limit": { "mode": "fixed", "fixedValue": 50 }
}
}

Pin anything that identifies who the agent is acting for. A tenant or account variable left on From AI is one the model can change between calls.

Each selected operation becomes its own tool, named after the schema and the operation, and described by the description in your schema. Clear descriptions there are what guide the agent to the right operation.

  1. Import the GraphQL schema and select it as Schema.
  2. In Operations, select the queries and mutations the agent may run.
  3. Pin the identifying variables under Parameter overrides.
  4. Set Credential, and connect the pack to the Agent node’s Tools handle.
  • One credential and one endpoint apply to the whole pack.
  • A large pack is a large tool list. Put a Search Tools node in front of it to let the agent search its tools rather than reading all of them.
  • A tool call that fails is returned to the agent as an error rather than failing the run, so the agent can try something else.