Skip to main content
Glama

Trigger Integration Ingest

trigger_integration_ingest
Idempotent

Trigger an on-demand data ingest for an integration (POST /api/integrations/{integration_id}/ingest/trigger). Kicks off (or re-runs) the ingest job for that integration. Idempotent — re-triggering while a run is in flight is a no-op. Returns { message, status }. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "integration_id": "int-123", "confirm": true } triggers the ingest.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "integration_id": "<integration_id>"
    },
    "name": "trigger_integration_ingest"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
integration_idYesThe id of the integration whose ingest job to trigger (substituted into POST /api/integrations/{integration_id}/ingest/trigger).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations flag this as non-destructive, idempotent, and open-world, but the description goes well beyond them: it names the four concrete preconditions (admin:write scope, org switch on, admin/super_admin role, confirm:true), states that a failed gate changes nothing, and instructs the agent to relay the error rather than retry. It also discloses that read-only cak_ keys can never perform it and that the response is { message, status }.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, endpoint, and return shape, then the gating conditions, then an example — a sensible order for a write tool. The all-caps warning block and the sentence "Missing any one of them it refuses and changes nothing" partially restate the same refusal semantics, costing a little tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description supplies the return shape { message, status }. Combined with the enumerated auth gates, idempotency behavior, and a worked example, an agent has everything needed to either call it correctly or correctly report why it was refused.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the parameter meanings are already documented; the description's added value is the concrete call example with integration_id and confirm:true, which shows the expected shape in one glance. It does not add constraints beyond the schema, so it sits just above the baseline rather than at the top.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Trigger an on-demand data ingest for an integration") and pins it to the exact endpoint POST /api/integrations/{integration_id}/ingest/trigger. The on-demand/re-run framing distinguishes it from read-only siblings like get_integration that never change ingest state.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Kicks off (or re-runs) the ingest job" plus the idempotency note tells the agent when a call is meaningful and when it is a wasted no-op while a run is in flight. It never names an alternative for checking freshness first (e.g. a read sibling), so the when-not case is only partially covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources