Materials Project · Capability

Materials Project API — Materials Tasks

Materials Project API — Materials Tasks. 4 operations. Lead operation: Get TaskDoc documents. Self-contained Naftiko capability covering one Materials Project business surface.

Run with Naftiko Materials ProjectMaterials Tasks

What You Can Do

GET
Searchmaterialstasksget — Get TaskDoc documents
/v1/materials/tasks
GET
Searchmaterialstasksdeprecationget — Get DeprecationDoc documents
/v1/materials/tasks/deprecation
GET
Searchmaterialstasksentriesget — Get EntryDoc documents
/v1/materials/tasks/entries
GET
Searchmaterialstaskstrajectoryget — Get TrajectoryDoc documents
/v1/materials/tasks/trajectory

MCP Tools

get-taskdoc-documents

Get TaskDoc documents

read-only idempotent
get-deprecationdoc-documents

Get DeprecationDoc documents

read-only idempotent
get-entrydoc-documents

Get EntryDoc documents

read-only idempotent
get-trajectorydoc-documents

Get TrajectoryDoc documents

read-only idempotent

Capability Spec

materials-project-materials-tasks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Materials Project API — Materials Tasks
  description: 'Materials Project API — Materials Tasks. 4 operations. Lead operation: Get TaskDoc documents. Self-contained
    Naftiko capability covering one Materials Project business surface.'
  tags:
  - Materials Project
  - Materials Tasks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MATERIALS_PROJECT_API_KEY: MATERIALS_PROJECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: materials-project-materials-tasks
    baseUri: ''
    description: Materials Project API — Materials Tasks business capability. Self-contained, no shared references.
    resources:
    - name: materials-tasks
      path: /materials/tasks/
      operations:
      - name: searchmaterialstasksget
        method: GET
        description: Get TaskDoc documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: batch_id
          in: query
          type: string
          description: Query by batch identifier
        - name: batch_id_not_eq
          in: query
          type: string
          description: Exclude batch identifier
        - name: batch_id_eq_any
          in: query
          type: string
          description: Query by a comma-separated list of batch identifiers
        - name: batch_id_neq_any
          in: query
          type: string
          description: Exclude a comma-separated list of batch identifiers
        - name: formula
          in: query
          type: string
          description: Query by formula including anonymized formula or by including wild cards. A comma delimited string
            list of anonymous formulas or regular formulas can also be pr
        - name: elements
          in: query
          type: string
          description: Query by elements in the material composition as a comma-separated list
        - name: exclude_elements
          in: query
          type: string
          description: Query by excluded elements in the material composition as a comma-separated list
        - name: task_ids
          in: query
          type: string
          description: Comma-separated list of task_ids to query on
        - name: last_updated_min
          in: query
          type: string
          description: Minimum last updated UTC datetime
        - name: last_updated_max
          in: query
          type: string
          description: Maximum last updated UTC datetime
        - name: _forward
          in: query
          type: boolean
          description: Whether to page forward (True) or backward (False) in the search results.
        - name: _pagination_token
          in: query
          type: string
          description: Pagination token for the next set of results.
        - name: _skip
          in: query
          type: integer
          description: Number of entries to skip in the search.
        - name: _limit
          in: query
          type: integer
          description: Max number of entries to return in a single query. Limited to 1000.
        - name: _fields
          in: query
          type: string
          description: 'Fields to project from TaskDoc as a list of comma separated strings.                    Fields include:
            `nsites` `elements` `nelements` `composition` `compositi'
        - name: _all_fields
          in: query
          type: boolean
          description: Include all fields.
    - name: materials-tasks-deprecation
      path: /materials/tasks/deprecation/
      operations:
      - name: searchmaterialstasksdeprecationget
        method: GET
        description: Get DeprecationDoc documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_ids
          in: query
          type: string
          description: Comma-separated list of task_ids to query on
          required: true
        - name: _page
          in: query
          type: integer
          description: Page number to request (takes precedent over _limit and _skip).
        - name: _per_page
          in: query
          type: integer
          description: Number of entries to show per page (takes precedent over _limit and _skip). Limited to 1000.
        - name: _skip
          in: query
          type: integer
          description: Number of entries to skip in the search.
        - name: _limit
          in: query
          type: integer
          description: Max number of entries to return in a single query. Limited to 1000.
    - name: materials-tasks-entries
      path: /materials/tasks/entries/
      operations:
      - name: searchmaterialstasksentriesget
        method: GET
        description: Get EntryDoc documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_ids
          in: query
          type: string
          description: Comma-separated list of task_ids to query on
        - name: _page
          in: query
          type: integer
          description: Page number to request (takes precedent over _limit and _skip).
        - name: _per_page
          in: query
          type: integer
          description: Number of entries to show per page (takes precedent over _limit and _skip). Limited to 1000.
        - name: _skip
          in: query
          type: integer
          description: Number of entries to skip in the search.
        - name: _limit
          in: query
          type: integer
          description: Max number of entries to return in a single query. Limited to 1000.
    - name: materials-tasks-trajectory
      path: /materials/tasks/trajectory/
      operations:
      - name: searchmaterialstaskstrajectoryget
        method: GET
        description: Get TrajectoryDoc documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_ids
          in: query
          type: string
          description: Comma-separated list of task_ids to query on
        - name: _page
          in: query
          type: integer
          description: Page number to request (takes precedent over _limit and _skip).
        - name: _per_page
          in: query
          type: integer
          description: Number of entries to show per page (takes precedent over _limit and _skip). Limited to 1000.
        - name: _skip
          in: query
          type: integer
          description: Number of entries to skip in the search.
        - name: _limit
          in: query
          type: integer
          description: Max number of entries to return in a single query. Limited to 1000.
    authentication:
      type: apikey
      key: X-API-KEY
      value: '{{env.MATERIALS_PROJECT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: materials-project-materials-tasks-rest
    port: 8080
    description: REST adapter for Materials Project API — Materials Tasks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/materials/tasks
      name: materials-tasks
      description: REST surface for materials-tasks.
      operations:
      - method: GET
        name: searchmaterialstasksget
        description: Get TaskDoc documents
        call: materials-project-materials-tasks.searchmaterialstasksget
        with:
          batch_id: rest.batch_id
          batch_id_not_eq: rest.batch_id_not_eq
          batch_id_eq_any: rest.batch_id_eq_any
          batch_id_neq_any: rest.batch_id_neq_any
          formula: rest.formula
          elements: rest.elements
          exclude_elements: rest.exclude_elements
          task_ids: rest.task_ids
          last_updated_min: rest.last_updated_min
          last_updated_max: rest.last_updated_max
          _forward: rest._forward
          _pagination_token: rest._pagination_token
          _skip: rest._skip
          _limit: rest._limit
          _fields: rest._fields
          _all_fields: rest._all_fields
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/materials/tasks/deprecation
      name: materials-tasks-deprecation
      description: REST surface for materials-tasks-deprecation.
      operations:
      - method: GET
        name: searchmaterialstasksdeprecationget
        description: Get DeprecationDoc documents
        call: materials-project-materials-tasks.searchmaterialstasksdeprecationget
        with:
          task_ids: rest.task_ids
          _page: rest._page
          _per_page: rest._per_page
          _skip: rest._skip
          _limit: rest._limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/materials/tasks/entries
      name: materials-tasks-entries
      description: REST surface for materials-tasks-entries.
      operations:
      - method: GET
        name: searchmaterialstasksentriesget
        description: Get EntryDoc documents
        call: materials-project-materials-tasks.searchmaterialstasksentriesget
        with:
          task_ids: rest.task_ids
          _page: rest._page
          _per_page: rest._per_page
          _skip: rest._skip
          _limit: rest._limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/materials/tasks/trajectory
      name: materials-tasks-trajectory
      description: REST surface for materials-tasks-trajectory.
      operations:
      - method: GET
        name: searchmaterialstaskstrajectoryget
        description: Get TrajectoryDoc documents
        call: materials-project-materials-tasks.searchmaterialstaskstrajectoryget
        with:
          task_ids: rest.task_ids
          _page: rest._page
          _per_page: rest._per_page
          _skip: rest._skip
          _limit: rest._limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: materials-project-materials-tasks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Materials Project API — Materials Tasks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-taskdoc-documents
      description: Get TaskDoc documents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: materials-project-materials-tasks.searchmaterialstasksget
      with:
        batch_id: tools.batch_id
        batch_id_not_eq: tools.batch_id_not_eq
        batch_id_eq_any: tools.batch_id_eq_any
        batch_id_neq_any: tools.batch_id_neq_any
        formula: tools.formula
        elements: tools.elements
        exclude_elements: tools.exclude_elements
        task_ids: tools.task_ids
        last_updated_min: tools.last_updated_min
        last_updated_max: tools.last_updated_max
        _forward: tools._forward
        _pagination_token: tools._pagination_token
        _skip: tools._skip
        _limit: tools._limit
        _fields: tools._fields
        _all_fields: tools._all_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: get-deprecationdoc-documents
      description: Get DeprecationDoc documents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: materials-project-materials-tasks.searchmaterialstasksdeprecationget
      with:
        task_ids: tools.task_ids
        _page: tools._page
        _per_page: tools._per_page
        _skip: tools._skip
        _limit: tools._limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-entrydoc-documents
      description: Get EntryDoc documents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: materials-project-materials-tasks.searchmaterialstasksentriesget
      with:
        task_ids: tools.task_ids
        _page: tools._page
        _per_page: tools._per_page
        _skip: tools._skip
        _limit: tools._limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-trajectorydoc-documents
      description: Get TrajectoryDoc documents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: materials-project-materials-tasks.searchmaterialstaskstrajectoryget
      with:
        task_ids: tools.task_ids
        _page: tools._page
        _per_page: tools._per_page
        _skip: tools._skip
        _limit: tools._limit
      outputParameters:
      - type: object
        mapping: $.