Amazon Neptune · Arazzo Workflow

Amazon Neptune Gremlin Explain then Profile

Version 1.0.0

Inspect a Gremlin query's execution plan, then profile it with runtime statistics.

1 workflow 1 source API 1 provider
View Spec View on GitHub DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQLArazzoWorkflows

Provider

amazon-neptune

Workflows

gremlin-explain-profile
Explain a Gremlin traversal's plan, then profile its real execution.
Retrieves the Gremlin execution plan with explain, then profiles the same traversal so plan and runtime statistics can be compared side by side.
2 steps inputs: gremlin, includeResults outputs: plan, profile
1
explainQuery
executeGremlinExplainQuery
Retrieve the static execution plan for the traversal without running it against the graph data.
2
profileQuery
executeGremlinProfileQuery
Run the same traversal through the profile endpoint to capture the plan together with actual runtime statistics.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Neptune Gremlin Explain then Profile
  summary: Inspect a Gremlin query's execution plan, then profile it with runtime statistics.
  description: >-
    A query-tuning workflow for Gremlin. It first retrieves the static execution
    plan for a traversal via the explain endpoint without touching the data, then
    runs the same traversal through the profile endpoint to capture the plan plus
    actual runtime statistics such as execution time and intermediate result
    counts. Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: neptuneDataApi
  url: ../openapi/amazon-neptune-data-openapi.yml
  type: openapi
workflows:
- workflowId: gremlin-explain-profile
  summary: Explain a Gremlin traversal's plan, then profile its real execution.
  description: >-
    Retrieves the Gremlin execution plan with explain, then profiles the same
    traversal so plan and runtime statistics can be compared side by side.
  inputs:
    type: object
    required:
    - gremlin
    properties:
      gremlin:
        type: string
        description: The Gremlin traversal string to explain and profile.
      includeResults:
        type: boolean
        description: Whether the profile output should include query results.
  steps:
  - stepId: explainQuery
    description: >-
      Retrieve the static execution plan for the traversal without running it
      against the graph data.
    operationId: executeGremlinExplainQuery
    requestBody:
      contentType: application/json
      payload:
        gremlin: $inputs.gremlin
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      plan: $response.body
  - stepId: profileQuery
    description: >-
      Run the same traversal through the profile endpoint to capture the plan
      together with actual runtime statistics.
    operationId: executeGremlinProfileQuery
    requestBody:
      contentType: application/json
      payload:
        gremlin: $inputs.gremlin
        results: $inputs.includeResults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      profile: $response.body
  outputs:
    plan: $steps.explainQuery.outputs.plan
    profile: $steps.profileQuery.outputs.profile

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-neptune-gremlin-explain-profile-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.