medidata · Capability

Medidata Rave EDC REST API — Audit

Medidata Rave EDC REST API — Audit. 1 operations. Lead operation: Get audit trail records. Self-contained Naftiko capability covering one Medidata business surface.

Run with Naftiko MedidataAudit

What You Can Do

GET
Getauditrecords — Get audit trail records
/v1/{studyoid}/auditrecords

MCP Tools

get-audit-trail-records

Get audit trail records

read-only idempotent

Capability Spec

rave-audit.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Medidata Rave EDC REST API — Audit
  description: 'Medidata Rave EDC REST API — Audit. 1 operations. Lead operation: Get audit trail records. Self-contained
    Naftiko capability covering one Medidata business surface.'
  tags:
  - Medidata
  - Audit
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEDIDATA_API_KEY: MEDIDATA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rave-audit
    baseUri: https://{tenant}.medidata.com/RaveWebServices/studies
    description: Medidata Rave EDC REST API — Audit business capability. Self-contained, no shared references.
    resources:
    - name: studyOID-AuditRecords
      path: /{studyOID}/AuditRecords
      operations:
      - name: getauditrecords
        method: GET
        description: Get audit trail records
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: studyOID
          in: path
          type: string
          required: true
        - name: SubjectKey
          in: query
          type: string
        - name: SiteID
          in: query
          type: string
        - name: StartDate
          in: query
          type: string
        - name: EndDate
          in: query
          type: string
        - name: PageSize
          in: query
          type: integer
    authentication:
      type: bearer
      token: '{{env.MEDIDATA_API_KEY}}'
  exposes:
  - type: rest
    namespace: rave-audit-rest
    port: 8080
    description: REST adapter for Medidata Rave EDC REST API — Audit. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{studyoid}/auditrecords
      name: studyoid-auditrecords
      description: REST surface for studyOID-AuditRecords.
      operations:
      - method: GET
        name: getauditrecords
        description: Get audit trail records
        call: rave-audit.getauditrecords
        with:
          studyOID: rest.studyOID
          SubjectKey: rest.SubjectKey
          SiteID: rest.SiteID
          StartDate: rest.StartDate
          EndDate: rest.EndDate
          PageSize: rest.PageSize
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rave-audit-mcp
    port: 9090
    transport: http
    description: MCP adapter for Medidata Rave EDC REST API — Audit. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-audit-trail-records
      description: Get audit trail records
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rave-audit.getauditrecords
      with:
        studyOID: tools.studyOID
        SubjectKey: tools.SubjectKey
        SiteID: tools.SiteID
        StartDate: tools.StartDate
        EndDate: tools.EndDate
        PageSize: tools.PageSize
      outputParameters:
      - type: object
        mapping: $.