Materials Project · Capability

Materials Project API — Materials Bonds

Materials Project API — Materials Bonds. 1 operations. Lead operation: Get BondingDoc documents. Self-contained Naftiko capability covering one Materials Project business surface.

Run with Naftiko Materials ProjectMaterials Bonds

What You Can Do

GET
Searchmaterialsbondsget — Get BondingDoc documents
/v1/materials/bonds

MCP Tools

get-bondingdoc-documents

Get BondingDoc documents

read-only idempotent

Capability Spec

materials-project-materials-bonds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Materials Project API — Materials Bonds
  description: 'Materials Project API — Materials Bonds. 1 operations. Lead operation: Get BondingDoc documents. Self-contained
    Naftiko capability covering one Materials Project business surface.'
  tags:
  - Materials Project
  - Materials Bonds
  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-bonds
    baseUri: ''
    description: Materials Project API — Materials Bonds business capability. Self-contained, no shared references.
    resources:
    - name: materials-bonds
      path: /materials/bonds/
      operations:
      - name: searchmaterialsbondsget
        method: GET
        description: Get BondingDoc documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: material_ids
          in: query
          type: string
          description: Comma-separated list of material_id values to query on
        - name: max_bond_length_max
          in: query
          type: string
          description: Maximum value for the maximum bond length in the structure.
        - name: max_bond_length_min
          in: query
          type: string
          description: Minimum value for the maximum bond length in the structure.
        - name: min_bond_length_max
          in: query
          type: string
          description: Maximum value for the minimum bond length in the structure.
        - name: min_bond_length_min
          in: query
          type: string
          description: Minimum value for the minimum bond length in the structure.
        - name: mean_bond_length_max
          in: query
          type: string
          description: Maximum value for the mean bond length in the structure.
        - name: mean_bond_length_min
          in: query
          type: string
          description: Minimum value for the mean bond length in the structure.
        - name: coordination_envs
          in: query
          type: string
          description: Query by coordination environments in the material composition as a comma-separated list (e.g. 'Mo-S(6),S-Mo(3)')
        - name: coordination_envs_anonymous
          in: query
          type: string
          description: Query by anonymous coordination environments in the material composition as a comma-separated list
            (e.g. 'A-B(6),A-B(3)')
        - 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: _fields
          in: query
          type: string
          description: 'Fields to project from BondingDoc as a list of comma separated strings.                    Fields
            include: `builder_meta` `nsites` `elements` `nelements` `compo'
        - name: _all_fields
          in: query
          type: boolean
          description: Include all fields.
    authentication:
      type: apikey
      key: X-API-KEY
      value: '{{env.MATERIALS_PROJECT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: materials-project-materials-bonds-rest
    port: 8080
    description: REST adapter for Materials Project API — Materials Bonds. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/materials/bonds
      name: materials-bonds
      description: REST surface for materials-bonds.
      operations:
      - method: GET
        name: searchmaterialsbondsget
        description: Get BondingDoc documents
        call: materials-project-materials-bonds.searchmaterialsbondsget
        with:
          material_ids: rest.material_ids
          max_bond_length_max: rest.max_bond_length_max
          max_bond_length_min: rest.max_bond_length_min
          min_bond_length_max: rest.min_bond_length_max
          min_bond_length_min: rest.min_bond_length_min
          mean_bond_length_max: rest.mean_bond_length_max
          mean_bond_length_min: rest.mean_bond_length_min
          coordination_envs: rest.coordination_envs
          coordination_envs_anonymous: rest.coordination_envs_anonymous
          _page: rest._page
          _per_page: rest._per_page
          _skip: rest._skip
          _limit: rest._limit
          _fields: rest._fields
          _all_fields: rest._all_fields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: materials-project-materials-bonds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Materials Project API — Materials Bonds. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-bondingdoc-documents
      description: Get BondingDoc documents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: materials-project-materials-bonds.searchmaterialsbondsget
      with:
        material_ids: tools.material_ids
        max_bond_length_max: tools.max_bond_length_max
        max_bond_length_min: tools.max_bond_length_min
        min_bond_length_max: tools.min_bond_length_max
        min_bond_length_min: tools.min_bond_length_min
        mean_bond_length_max: tools.mean_bond_length_max
        mean_bond_length_min: tools.mean_bond_length_min
        coordination_envs: tools.coordination_envs
        coordination_envs_anonymous: tools.coordination_envs_anonymous
        _page: tools._page
        _per_page: tools._per_page
        _skip: tools._skip
        _limit: tools._limit
        _fields: tools._fields
        _all_fields: tools._all_fields
      outputParameters:
      - type: object
        mapping: $.