Amazon Neptune · Arazzo Workflow

Amazon Neptune Gremlin Add and Count Vertices

Version 1.0.0

Add a labeled vertex over the Gremlin HTTP endpoint, then count vertices to confirm the write landed.

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

Provider

amazon-neptune

Workflows

gremlin-add-and-count-vertices
Add a vertex via Gremlin HTTP, then count all vertices.
Adds a labeled vertex with a name property, then counts vertices to confirm the write.
2 steps inputs: label, name outputs: count, requestId
1
addVertex
Add a vertex with the supplied label and name property over the Gremlin HTTP endpoint.
2
countVertices
Run a vertex count traversal to confirm the new vertex was committed.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Neptune Gremlin Add and Count Vertices
  summary: Add a labeled vertex over the Gremlin HTTP endpoint, then count vertices to confirm the write landed.
  description: >-
    A write-then-verify pattern over the Neptune Gremlin HTTP REST endpoint. The
    workflow adds a vertex with the supplied label and name property, then runs a
    vertex count traversal so a caller can confirm the mutation was committed.
    Both traversals are submitted as JSON bodies to the same /gremlin endpoint.
    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: queryApi
  url: ../openapi/amazon-neptune-query-api-openapi.yml
  type: openapi
workflows:
- workflowId: gremlin-add-and-count-vertices
  summary: Add a vertex via Gremlin HTTP, then count all vertices.
  description: >-
    Adds a labeled vertex with a name property, then counts vertices to confirm
    the write.
  inputs:
    type: object
    required:
    - label
    - name
    properties:
      label:
        type: string
        description: The label to assign to the new vertex (e.g. person).
      name:
        type: string
        description: The value for the new vertex's name property.
  steps:
  - stepId: addVertex
    description: >-
      Add a vertex with the supplied label and name property over the Gremlin
      HTTP endpoint.
    operationId: executeGremlinTraversal
    requestBody:
      contentType: application/json
      payload:
        gremlin: "g.addV('$inputs.label').property('name','$inputs.name')"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestId: $response.body#/requestId
      addResult: $response.body#/result/data
  - stepId: countVertices
    description: >-
      Run a vertex count traversal to confirm the new vertex was committed.
    operationId: executeGremlinTraversal
    requestBody:
      contentType: application/json
      payload:
        gremlin: g.V().count()
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      count: $response.body#/result/data
  outputs:
    requestId: $steps.addVertex.outputs.requestId
    count: $steps.countVertices.outputs.count

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-add-and-count-vertices-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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