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

# Get MCP call logs

> Returns a paginated log of the MCP tool calls your organization has made,
newest first, with who made each.

<Note>
Free. This call does not consume credits.
</Note>

## What you need

Nothing beyond your API key. Available from 2026-12-01.

## Behavior

- A member's personal key lists only the calls that member made. An admin's
personal key, your organization key and the team key list every call.

- Each entry has a `caller` with the `user_id` that
[Get organization members](/api-reference/account/get-organization-members)
returns, the user's `name` and `kind`, and the `key_id` and `key_name` of the
API key used. `key_id` and `key_name` are null for a call made through OAuth.
No email is returned.

- Narrow the log to one user with `called_by`. An id you may not read, or
that matches no user, returns an empty page.

- Ordered newest first. Page through with `page` and `limit`, and filter by
time window with `from` / `to` (ISO 8601 datetime, minute granularity).

- The response carries an `X-Total-Count` header and RFC 5988 `Link`
pagination links.

## What you do next

- **Chase a specific call.** Quote an entry's `request_id` when contacting
API support to point them at that exact call.



## OpenAPI

````yaml /api-ref/openapi.json get /logs-mcp
openapi: 3.1.0
info:
  title: Specter API
  termsOfService: https://tryspecter.com/terms/
  contact:
    name: API support
    email: api-support@tryspecter.com
  version: 1.0.0
servers:
  - url: https://app.tryspecter.com/api/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Enrich
    description: >-
      Look up a company, person, or investor and, if Specter does not already
      hold it, fetch it on demand. Includes email-based person enrichment.
  - name: Search
    description: Find records across every product from a single plain-English query.
  - name: Agent
    description: >-
      Start a conversation with the Specter Agent, send it messages, answer what
      it asks, and read or cancel its turns.
  - name: Companies
    description: >-
      Company profiles, funding, headcount, traction, the per-company signals
      and sub-resources attached to a single company, and identifier resolution.
  - name: People
    description: >-
      Specter people records: profile data, contact details, and per-person
      lookups for a known person ID.
  - name: Investors
    description: >-
      Specter investor records: profile, activity, targeting, funds, portfolio
      companies, and the funding rounds they have participated in.
  - name: Transactions
    description: 'Transaction detail by ID: funding rounds, acquisitions, and IPOs.'
  - name: Revenue Signals
    description: >-
      Revenue and profitability signals: by ID, by date, and for a saved list or
      company search.
  - name: Talent Signals
    description: 'Talent signals: by ID and in bulk by ID.'
  - name: Investor Interest Signals
    description: 'Investor interest signals: by ID and in bulk by ID.'
  - name: Company Lists
    description: Create, query, and maintain lists of companies, including their results.
  - name: Investor Lists
    description: Create, query, and maintain lists of investors, including their results.
  - name: People Lists
    description: Create, query, and maintain lists of people, including their results.
  - name: Saved Searches
    description: List and delete searches saved via tryspecter.com.
  - name: Company Saved Searches
    description: Details and results for saved company searches.
  - name: People Saved Searches
    description: Details and results for saved people searches.
  - name: Investor Saved Searches
    description: Details and results for saved investor searches.
  - name: Talent Signals Saved Searches
    description: Details and results for saved Talent Signals searches.
  - name: Investor Interest Saved Searches
    description: Details and results for saved Investor Interest Signals searches.
  - name: Funding Rounds Saved Searches
    description: Details and results for saved funding-round searches.
  - name: Acquisitions Saved Searches
    description: Details and results for saved acquisition searches.
  - name: IPOs Saved Searches
    description: Details and results for saved IPO searches.
  - name: Network
    description: >-
      Your team's LinkedIn network: the people and companies your teammates are
      connected to, and your reach into a given company.
  - name: Account
    description: >-
      Organisation-level resources: your team's members, API call logs, and
      credit balance.
paths:
  /logs-mcp:
    get:
      tags:
        - Account
      summary: Get MCP call logs
      description: >-
        Returns a paginated log of the MCP tool calls your organization has
        made,

        newest first, with who made each.


        <Note>

        Free. This call does not consume credits.

        </Note>


        ## What you need


        Nothing beyond your API key. Available from 2026-12-01.


        ## Behavior


        - A member's personal key lists only the calls that member made. An
        admin's

        personal key, your organization key and the team key list every call.


        - Each entry has a `caller` with the `user_id` that

        [Get organization
        members](/api-reference/account/get-organization-members)

        returns, the user's `name` and `kind`, and the `key_id` and `key_name`
        of the

        API key used. `key_id` and `key_name` are null for a call made through
        OAuth.

        No email is returned.


        - Narrow the log to one user with `called_by`. An id you may not read,
        or

        that matches no user, returns an empty page.


        - Ordered newest first. Page through with `page` and `limit`, and filter
        by

        time window with `from` / `to` (ISO 8601 datetime, minute granularity).


        - The response carries an `X-Total-Count` header and RFC 5988 `Link`

        pagination links.


        ## What you do next


        - **Chase a specific call.** Quote an entry's `request_id` when
        contacting

        API support to point them at that exact call.
      operationId: listMcpLogs
      parameters:
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: >-
              Filter calls at or after this datetime (ISO 8601, e.g.
              `2026-12-01T00:00:00Z`). Granularity up to the minute.
            title: From
          description: >-
            Filter calls at or after this datetime (ISO 8601, e.g.
            `2026-12-01T00:00:00Z`). Granularity up to the minute.
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: >-
              Filter calls before or at this datetime (ISO 8601, e.g.
              `2026-12-31T23:59:00Z`). Granularity up to the minute.
            title: To
          description: >-
            Filter calls before or at this datetime (ISO 8601, e.g.
            `2026-12-31T23:59:00Z`). Granularity up to the minute.
        - name: called_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^user_[A-Za-z0-9]{1,64}$
              - type: 'null'
            description: >-
              Only calls made by this user. Use an id from [Get organization
              members](/api-reference/account/get-organization-members).
            examples:
              - user_2abc123
            title: Called By
          description: >-
            Only calls made by this user. Use an id from [Get organization
            members](/api-reference/account/get-organization-members).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 5000
            minimum: 1
            description: >-
              The number of results to return per page (minimum 1, maximum 5000,
              default 50).
            default: 50
            title: Limit
          description: >-
            The number of results to return per page (minimum 1, maximum 5000,
            default 50).
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: The page number of results to return, base 0, default is 0.
            default: 0
            title: Page
          description: The page number of results to return, base 0, default is 0.
      responses:
        '200':
          description: A paginated list of MCP tool calls.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpLogsResponse'
          headers:
            X-Total-Count:
              description: Total number of tool calls you may see.
              schema:
                type: integer
            Link:
              description: RFC 5988 pagination links (next, prev, first, last).
              schema:
                type: string
        '401':
          $ref: '#/components/responses/ApiKeyMissingOrApiKeyNotValid'
        '403':
          $ref: '#/components/responses/NotPermitted'
        '422':
          $ref: '#/components/responses/ValidationFailed422'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/KeyVerificationUnavailable'
components:
  schemas:
    McpLogsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/McpLogEntry'
          type: array
          title: Items
          description: The tool calls for this page.
        total:
          type: integer
          title: Total
          description: Total number of tool calls you may see.
      type: object
      required:
        - items
        - total
      title: McpLogsResponse
    McpLogEntry:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: UTC timestamp of the tool call.
          examples:
            - '2026-12-02T09:15:30.123456Z'
        tool_name:
          type: string
          title: Tool Name
          description: The MCP tool called.
          examples:
            - get_company_profile
        status:
          type: string
          title: Status
          description: >-
            `SUCCESS`, `CANCELLED`, or the type of the error the call ended
            with.
          examples:
            - SUCCESS
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
          description: How long the call took, in milliseconds.
          examples:
            - 420
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
          description: The error the call ended with. Null when it succeeded.
        credits_consumed:
          type: integer
          title: Credits Consumed
          description: Credits the call consumed. 0 when it was not billed.
        request_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Request Id
          description: The call's request id, to quote when contacting support.
        caller:
          anyOf:
            - $ref: '#/components/schemas/ApiLogCaller'
            - type: 'null'
          description: Who made the call. Null when no user made it.
      type: object
      required:
        - timestamp
        - tool_name
        - status
        - duration_ms
        - error_message
        - credits_consumed
        - request_id
        - caller
      title: McpLogEntry
    ApiKeyMissing:
      properties:
        errorCode:
          type: string
          const: API_KEY_MISSING
          title: Errorcode
        message:
          type: string
          title: Message
          examples:
            - No API Key was presented on the header X-API-KEY
      type: object
      required:
        - errorCode
        - message
      title: ApiKeyMissing
    ApiKeyNotValid:
      properties:
        errorCode:
          type: string
          enum:
            - API_KEY_NOT_VALID
            - key_from_another_org
          title: Errorcode
          description: >-
            `key_from_another_org` when an `ak_` key was issued for an
            organization its owner no longer belongs to.
        message:
          type: string
          title: Message
          examples:
            - API key present, but not valid
      type: object
      required:
        - errorCode
        - message
      title: ApiKeyNotValid
    NotPermitted:
      properties:
        errorCode:
          type: string
          enum:
            - NOT_PERMITTED
            - user_suspended
            - api_access_not_granted
            - org_key_disabled
            - member_keys_disabled
            - member_keys_admins_only
          title: Errorcode
          description: >-
            `NOT_PERMITTED` for a team key; the other codes are the reasons an
            `ak_` key is refused.
        message:
          type: string
          title: Message
          examples:
            - API key present, but you are not permitted
      type: object
      required:
        - errorCode
        - message
      title: NotPermitted
    ValidationFailed:
      properties:
        errorCode:
          type: string
          const: VALIDATION_ERROR
          title: Errorcode
        message:
          type: string
          title: Message
          description: >-
            Why the request was rejected: each invalid field, with the path to
            it.
          examples:
            - Field required (body.name)
      type: object
      required:
        - errorCode
        - message
      title: ValidationFailed
    RateLimited:
      properties:
        errorCode:
          type: string
          const: RATE_LIMITED
          title: Errorcode
        message:
          type: string
          title: Message
          examples:
            - You have been rate-limited
      type: object
      required:
        - errorCode
        - message
      title: RateLimited
    KeyVerificationUnavailable:
      properties:
        errorCode:
          type: string
          const: clerk_unavailable
          title: Errorcode
        message:
          type: string
          title: Message
          examples:
            - Key verification is temporarily unavailable
      type: object
      required:
        - errorCode
        - message
      title: KeyVerificationUnavailable
    ApiLogCaller:
      properties:
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: >-
            The Specter user id, the same one [Get organization
            members](/api-reference/account/get-organization-members) returns.
            Null when the user no longer exists.
          examples:
            - user_2abc123
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: The user's display name, when set.
          examples:
            - Jane Doe
        kind:
          anyOf:
            - $ref: '#/components/schemas/UserKind'
            - type: 'null'
          description: >-
            `person`, or `service_account` for your organization's service
            account. Null when the user no longer exists.
          examples:
            - person
        key_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Id
          description: >-
            The id of the API key used. Null for a call made with the legacy
            team key.
          examples:
            - ak_2abc123
        key_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Name
          description: >-
            The API key's name. Null for the legacy team key, and when the name
            is not available.
          examples:
            - Warehouse sync
      type: object
      required:
        - user_id
        - name
        - kind
        - key_id
        - key_name
      title: ApiLogCaller
      description: |-
        Who made a logged call: the user it is attributed to and the key it was
        made with. No email is included.
    UserKind:
      type: string
      enum:
        - person
        - service_account
      title: UserKind
      description: >-
        What a ``specter_users`` row is. A service account is the one account
        per

        organization its shared API keys act as.
  responses:
    ApiKeyMissingOrApiKeyNotValid:
      description: Unauthorized
      content:
        application/json:
          schema:
            anyOf:
              - $ref: '#/components/schemas/ApiKeyMissing'
              - $ref: '#/components/schemas/ApiKeyNotValid'
    NotPermitted:
      description: Forbidden - There is no permissions to use the endpoint
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotPermitted'
    ValidationFailed422:
      description: Validation Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationFailed'
    RateLimited:
      description: Too Many Requests - API Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          description: The total rate limit allowed for this endpoint
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: The number of requests remaining
          schema:
            type: integer
        X-RateLimit-Reset:
          description: The number of seconds until the rate limit resets
          schema:
            type: number
            format: float
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimited'
    KeyVerificationUnavailable:
      description: >-
        Key verification is temporarily unavailable, so an `ak_` key could not
        be checked. Retry after the interval in `Retry-After`.
      headers:
        Retry-After:
          description: The number of seconds to wait before retrying
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/KeyVerificationUnavailable'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.