> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assetinfinity.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# What the MCP server says it was asked, answered and refused — with the person each call was

> made for. Refusals are the interesting rows: with no tenant tool list and no second ceiling above
the asker, a refusal is a person asking for something their own permissions do not cover, which is
the only thing it can now mean. Requires admin.integration.view.



## OpenAPI

````yaml /api-reference/openapi.json get /mcp_calls
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. Reads are security_invoker views; writes
    are SECURITY DEFINER functions. Rebuilt wholesale on every deploy — it holds
    no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /mcp_calls:
    get:
      tags:
        - Mcp
      summary: >-
        What the MCP server says it was asked, answered and refused — with the
        person each call was
      description: >-
        made for. Refusals are the interesting rows: with no tenant tool list
        and no second ceiling above

        the asker, a refusal is a person asking for something their own
        permissions do not cover, which is

        the only thing it can now mean. Requires admin.integration.view.
      parameters:
        - $ref: '#/components/parameters/rowFilter.mcp_calls.id'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.created_at'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.tool'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.outcome'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.error_code'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.message'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.arguments'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.rows_returned'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.duration_ms'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.session_id'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.on_behalf_of'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.on_behalf_of_name'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.on_behalf_of_email'
        - $ref: '#/components/parameters/rowFilter.mcp_calls.acted_as_the_machine'
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/mcp_calls'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/mcp_calls'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/mcp_calls'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/mcp_calls'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.mcp_calls.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.created_at:
      in: query
      name: created_at
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.tool:
      in: query
      name: tool
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.outcome:
      in: query
      name: outcome
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.error_code:
      in: query
      name: error_code
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.message:
      in: query
      name: message
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.arguments:
      in: query
      name: arguments
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.rows_returned:
      in: query
      name: rows_returned
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.duration_ms:
      in: query
      name: duration_ms
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.session_id:
      in: query
      name: session_id
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.on_behalf_of:
      in: query
      name: on_behalf_of
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.on_behalf_of_name:
      in: query
      name: on_behalf_of_name
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.on_behalf_of_email:
      in: query
      name: on_behalf_of_email
      required: false
      schema:
        type: string
    rowFilter.mcp_calls.acted_as_the_machine:
      in: query
      name: acted_as_the_machine
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    mcp_calls:
      description: >-
        What the MCP server says it was asked, answered and refused — with the
        person each call was

        made for. Refusals are the interesting rows: with no tenant tool list
        and no second ceiling above

        the asker, a refusal is a person asking for something their own
        permissions do not cover, which is

        the only thing it can now mean. Requires admin.integration.view.
      properties:
        acted_as_the_machine:
          format: boolean
          type: boolean
        arguments:
          format: jsonb
        created_at:
          format: timestamp with time zone
          type: string
        duration_ms:
          format: integer
          type: integer
        error_code:
          format: character varying
          maxLength: 60
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        message:
          format: character varying
          maxLength: 500
          type: string
        on_behalf_of:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        on_behalf_of_email:
          format: public.citext
          type: string
        on_behalf_of_name:
          format: character varying
          maxLength: 200
          type: string
        outcome:
          format: character varying
          maxLength: 20
          type: string
        rows_returned:
          format: integer
          type: integer
        session_id:
          format: character varying
          maxLength: 80
          type: string
        tool:
          format: character varying
          maxLength: 120
          type: string
      type: object

````