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

# Scan Mcp Manifest

> Scan an MCP server's tool list for poisoned descriptions and pin it.

Finds instructions injected into tool descriptions and parameter docs,
invisible or look-alike Unicode, and tool names that shadow another of the
agent's servers. Returns the list's pin, and a rug-pull finding when it no
longer matches the `pin` sent. Counts one request against the plan.

Guide: [MCP Manifest Scan](https://docs.promptguard.co/api-reference/mcp-manifest-scan)



## OpenAPI

````yaml /api-reference/openapi-developer.json post /api/v1/mcp/manifest-scan
openapi: 3.1.0
info:
  title: PromptGuard Developer API
  description: >-
    Public API for developers to integrate PromptGuard security into their
    applications
  version: 1.0.0
servers:
  - url: https://api.promptguard.co
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/mcp/manifest-scan:
    post:
      tags:
        - mcp
      summary: Scan Mcp Manifest
      description: >-
        Scan an MCP server's tool list for poisoned descriptions and pin it.


        Finds instructions injected into tool descriptions and parameter docs,

        invisible or look-alike Unicode, and tool names that shadow another of
        the

        agent's servers. Returns the list's pin, and a rug-pull finding when it
        no

        longer matches the `pin` sent. Counts one request against the plan.


        Guide: [MCP Manifest
        Scan](https://docs.promptguard.co/api-reference/mcp-manifest-scan)
      operationId: scan_mcp_manifest_api_v1_mcp_manifest_scan_post
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManifestScanRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManifestScanResponse'
              example:
                sha256: >-
                  a944108a1eb7543cdb444258fd860d47458b13b8f602fa7ca411edd2fe17cc4d
                ok: true
                findings: []
                tools:
                  - name: read_file
                    sha256: >-
                      a551cafd9109a07662db185ccbf019a43f3bd384da856c11554c923c7ce3b151
                incomplete: false
                unscanned_tools: []
        '401':
          description: Missing, malformed, unknown, disabled or expired API key
          content:
            application/json:
              examples:
                missing_api_key:
                  summary: No X-API-Key header
                  value:
                    error:
                      message: >-
                        PromptGuard API key required. Please provide via
                        X-API-Key header.
                      type: authentication_error
                      code: missing_api_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#missing_api_key
                malformed_api_key:
                  summary: Not a pg_live_ key
                  value:
                    error:
                      message: Invalid API key format
                      type: authentication_error
                      code: invalid_api_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#invalid_api_key
                unknown_api_key:
                  summary: No such key
                  value:
                    error:
                      message: Invalid API key
                      type: authentication_error
                      code: invalid_api_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#invalid_api_key
                disabled_api_key:
                  summary: Key disabled
                  value:
                    error:
                      message: API key is disabled
                      type: authentication_error
                      code: disabled_api_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#disabled_api_key
                expired_api_key:
                  summary: Key expired
                  value:
                    error:
                      message: API key has expired
                      type: authentication_error
                      code: expired_api_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#expired_api_key
              schema:
                $ref: '#/components/schemas/AuthErrorEnvelope'
        '403':
          description: >-
            Refused by the key's scopes or the IP allowlist, or by a project
            access list
          content:
            application/json:
              examples:
                scope_denied:
                  summary: The key's scopes exclude this endpoint
                  value:
                    error:
                      message: >-
                        This endpoint needs the `scan:write` scope, which this
                        API key does not hold. Create a key that includes it, or
                        use an unrestricted key.
                      type: insufficient_scope
                      code: scope_denied
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#scope_denied
                scan_only_credential:
                  summary: A scan-only device credential
                  value:
                    error:
                      message: This credential is scan-only; endpoint not permitted.
                      type: insufficient_scope
                      code: scope_denied
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#scope_denied
                read_only_key:
                  summary: A SIEM export key
                  value:
                    error:
                      message: >-
                        This is a read-only export key. It may only GET
                        /api/v1/alerts, /api/v1/audit-events,
                        /api/v1/audit-events/stream, /api/v1/interactions and
                        /api/v1/interactions/stream.
                      type: insufficient_scope
                      code: read_only_key
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#read_only_key
                ip_not_allowed:
                  summary: Caller IP outside the allowlist
                  value:
                    error:
                      message: Request IP is not in the organization's allowlist
                      type: permission_error
                      code: ip_not_allowed
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#ip_not_allowed
                ip_allowlist_error:
                  summary: Allowlist could not be checked
                  value:
                    error:
                      message: IP allowlist validation failed
                      type: permission_error
                      code: ip_allowlist_error
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#ip_allowlist_error
                access_list_block:
                  summary: access_list_block
                  value:
                    error:
                      message: Blocked by access list (ip=203.0.113.7)
                      type: access_denied
                      code: access_list_block
                      rule_id: 5b0c9a7e-2f1d-4c3b-9a8e-6d7f1e2a3b4c
                      target_type: ip
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#access_list_block
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorEnvelope'
        '429':
          description: >-
            Rate limit, monthly quota, the key's own monthly cap, spending
            limit, or an inactive subscription (branch on `error.code`)
          content:
            application/json:
              examples:
                rate_limit_exceeded:
                  summary: Per-minute limit reached
                  value:
                    error:
                      message: >-
                        Rate limit exceeded: your plan allows 60 requests per
                        minute. Please retry later.
                      type: rate_limit_exceeded
                      code: rate_limit_exceeded
                      retry_after: 42
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#rate_limit_exceeded
                api_key_request_cap_exceeded:
                  summary: This key's own monthly request cap reached
                  value:
                    error:
                      message: >-
                        This API key's monthly cap of 10,000 requests is
                        reached. It resets on December 1 (UTC). Raise or remove
                        the cap in the dashboard, or use another key.
                      type: quota_exceeded
                      code: api_key_request_cap_exceeded
                      requests_limit: 10000
                      resets_at: '2026-12-01T00:00:00+00:00'
                      retry_after: 1209600
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#api_key_request_cap_exceeded
                monthly_quota_exceeded:
                  summary: Monthly request quota spent
                  value:
                    error:
                      message: Monthly quota of 100,000 requests exceeded.
                      type: quota_exceeded
                      code: monthly_quota_exceeded
                      current_plan: pro
                      requests_used: 100000
                      requests_limit: 100000
                      upgrade_url: https://app.promptguard.co/dashboard/billing
                      retry_after: 1209600
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#monthly_quota_exceeded
                spending_limit_exceeded:
                  summary: Monthly spending limit reached
                  value:
                    error:
                      message: Monthly spending limit of $500.00 exceeded.
                      type: spending_limit_exceeded
                      code: spending_limit_exceeded
                      current_plan: scale
                      current_spending: 500.12
                      spending_limit: 500
                      settings_url: https://app.promptguard.co/dashboard/spending
                      retry_after: 1209600
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#spending_limit_exceeded
                subscription_inactive:
                  summary: Subscription not active; never retry
                  value:
                    error:
                      message: 'Your pro subscription is not active (status: past_due).'
                      type: subscription_inactive
                      code: subscription_inactive
                      current_plan: pro
                      subscription_status: past_due
                      reactivate_url: https://app.promptguard.co/dashboard/billing
                      doc_url: >-
                        https://docs.promptguard.co/production/error-handling#subscription_inactive
              schema:
                anyOf:
                  - $ref: '#/components/schemas/RateLimitErrorEnvelope'
                  - $ref: '#/components/schemas/QuotaErrorEnvelope'
                  - $ref: '#/components/schemas/KeyRequestCapErrorEnvelope'
                  - $ref: '#/components/schemas/SubscriptionInactiveErrorEnvelope'
                title: Response 429 Scan Mcp Manifest Api V1 Mcp Manifest Scan Post
      externalDocs:
        description: 'Guide: MCP Manifest Scan'
        url: https://docs.promptguard.co/api-reference/mcp-manifest-scan
components:
  schemas:
    ManifestScanRequest:
      properties:
        tools:
          items:
            $ref: '#/components/schemas/McpTool'
          type: array
          maxItems: 500
          title: Tools
          description: >-
            The server's `tools/list` result: the `tools` array, sent as the
            server returned it. At most 500 tools, and 131072 characters of
            canonical JSON together with every name in `other_servers`.
        pin:
          anyOf:
            - type: string
              pattern: ^[0-9a-f]{64}$
            - type: 'null'
          title: Pin
          description: >-
            The `sha256` an earlier scan of this server returned. Omit it the
            first time; when it differs from this list's `sha256`, the response
            carries a `E301` finding.
        other_servers:
          items:
            $ref: '#/components/schemas/McpOtherServer'
          type: array
          maxItems: 50
          title: Other Servers
          description: >-
            The agent's other MCP servers, for shadowing: a tool here whose name
            one of them already has is a `E002` finding. Only their tool names
            are read, and they are not scanned themselves.
      type: object
      required:
        - tools
      title: ManifestScanRequest
    ManifestScanResponse:
      properties:
        sha256:
          type: string
          title: Sha256
          description: >-
            This tool list's pin: send it as `pin` on the next scan of this
            server. Treat it as opaque.
        ok:
          type: boolean
          title: Ok
          description: >-
            False when any finding's severity is `high`, or the scan is
            incomplete
        findings:
          items:
            $ref: '#/components/schemas/ManifestFinding'
          type: array
          title: Findings
        tools:
          items:
            $ref: '#/components/schemas/ToolHash'
          type: array
          title: Tools
          description: >-
            Each tool's own hash, in the order sent, so a caller that keeps them
            can tell which tool changed. Not part of `sha256`. Opaque, like it.
        incomplete:
          type: boolean
          title: Incomplete
          description: >-
            True when the scan ran out of its detection budget before its last
            tool. The tools it did not reach are in `unscanned_tools`; `sha256`
            and the rug-pull comparison are still complete.
        unscanned_tools:
          items:
            type: string
          type: array
          title: Unscanned Tools
          description: Names of the tools not scanned, in the order sent
      type: object
      required:
        - sha256
        - ok
        - findings
        - tools
        - incomplete
        - unscanned_tools
      title: ManifestScanResponse
    AuthErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          examples:
            - code: missing_api_key
              message: >-
                PromptGuard API key required. Please provide via X-API-Key
                header.
              type: authentication_error
      type: object
      required:
        - error
      title: AuthErrorEnvelope
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorEnvelope
    ValidationErrorEnvelope:
      description: The developer API's 422 (`shared/infrastructure/framework_errors.py`).
      properties:
        error:
          $ref: '#/components/schemas/ValidationErrorDetail'
        detail:
          deprecated: true
          description: >-
            The same list as `error.details`, in FastAPI's old shape. Removed on
            2027-02-11; read `error.details`
          items:
            $ref: '#/components/schemas/ValidationErrorField'
          title: Detail
          type: array
      required:
        - error
        - detail
      title: ValidationErrorEnvelope
      type: object
      example:
        error:
          message: 'The request is invalid: body.messages: Field required'
          type: invalid_request_error
          code: invalid_request
          details:
            - type: missing
              loc:
                - body
                - messages
              msg: Field required
              input:
                direction: input
          error_id: 3f0b8c1e-6a0e-4d52-9a57-0c2a9a7f5b11
          doc_url: >-
            https://docs.promptguard.co/production/error-handling#invalid_request
        detail:
          - type: missing
            loc:
              - body
              - messages
            msg: Field required
            input:
              direction: input
    RateLimitErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/RateLimitErrorDetail'
      type: object
      required:
        - error
      title: RateLimitErrorEnvelope
    QuotaErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/QuotaErrorDetail'
      type: object
      required:
        - error
      title: QuotaErrorEnvelope
    KeyRequestCapErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/KeyRequestCapErrorDetail'
      type: object
      required:
        - error
      title: KeyRequestCapErrorEnvelope
    SubscriptionInactiveErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/SubscriptionInactiveErrorDetail'
      type: object
      required:
        - error
      title: SubscriptionInactiveErrorEnvelope
    McpTool:
      properties:
        name:
          type: string
          maxLength: 256
          minLength: 1
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        inputSchema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Inputschema
          description: >-
            The tool's JSON Schema for its arguments. `input_schema` is accepted
            too.
      type: object
      required:
        - name
      title: McpTool
      description: One entry of an MCP ``tools/list`` result. Other keys are ignored.
    McpOtherServer:
      properties:
        name:
          type: string
          maxLength: 256
          minLength: 1
          title: Name
          description: Named in a shadowing finding
        tools:
          items:
            $ref: '#/components/schemas/McpToolName'
          type: array
          maxItems: 1000
          title: Tools
      type: object
      required:
        - name
        - tools
      title: McpOtherServer
    ManifestFinding:
      properties:
        code:
          type: string
          title: Code
          description: >-
            `E001` instructions injected into a description or parameter doc;
            `W021` invisible or look-alike characters; `E002` a name or
            reference that shadows another server's tool; `E003` an ATR
            community rule matched (advisory); `W022` two tools share a name,
            ignoring case; `E301` the list changed since `pin`; `E900` one tool
            could not be scanned, and was not.
        tool:
          type: string
          title: Tool
          description: The tool's name, or `*` for the list as a whole
        severity:
          type: string
          title: Severity
          description: '`high`, `medium` or `info`'
        reason:
          type: string
          title: Reason
        details:
          additionalProperties: true
          type: object
          title: Details
      type: object
      required:
        - code
        - tool
        - severity
        - reason
      title: ManifestFinding
    ToolHash:
      properties:
        name:
          type: string
          title: Name
        sha256:
          type: string
          title: Sha256
      type: object
      required:
        - name
        - sha256
      title: ToolHash
    ErrorDetail:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable error description
        type:
          type: string
          title: Type
          description: Error category, e.g. 'authentication_error'
        code:
          type: string
          title: Code
          description: Machine-readable error code
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
      type: object
      required:
        - message
        - type
        - code
      title: ErrorDetail
    ValidationErrorDetail:
      properties:
        message:
          description: The failed fields, one line
          title: Message
          type: string
        type:
          description: '''invalid_request_error'''
          title: Type
          type: string
        code:
          description: '''invalid_request'''
          title: Code
          type: string
        details:
          description: Each field that failed
          items:
            $ref: '#/components/schemas/ValidationErrorField'
          title: Details
          type: array
        error_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Equals the X-Request-ID header
          title: Error Id
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
          title: Doc Url
      required:
        - message
        - type
        - code
        - details
      title: ValidationErrorDetail
      type: object
    ValidationErrorField:
      description: One field that failed validation, as FastAPI reports it.
      properties:
        loc:
          description: The field's path, e.g. ['body', 'messages']
          items:
            anyOf:
              - type: string
              - type: integer
          title: Loc
          type: array
        msg:
          description: What is wrong with it
          title: Msg
          type: string
        type:
          description: The kind of failure, e.g. 'missing'
          title: Type
          type: string
        input:
          default: null
          description: The value that was sent
          title: Input
        ctx:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          description: The limit it broke, where there is one
          title: Ctx
      required:
        - loc
        - msg
        - type
      title: ValidationErrorField
      type: object
    RateLimitErrorDetail:
      properties:
        message:
          type: string
          title: Message
        type:
          type: string
          title: Type
          description: '''rate_limit_exceeded'''
        code:
          type: string
          title: Code
          description: '''rate_limit_exceeded'''
        retry_after:
          type: integer
          title: Retry After
          description: Seconds until the window resets; also `Retry-After`
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
      type: object
      required:
        - message
        - type
        - code
        - retry_after
      title: RateLimitErrorDetail
    QuotaErrorDetail:
      properties:
        message:
          type: string
          title: Message
        type:
          type: string
          title: Type
          description: '''quota_exceeded'' or ''spending_limit_exceeded'''
        code:
          type: string
          title: Code
          description: '''monthly_quota_exceeded'' or ''spending_limit_exceeded'''
        current_plan:
          type: string
          title: Current Plan
        requests_used:
          type: integer
          title: Requests Used
        requests_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Requests Limit
          description: >-
            The month's Request allowance; null on a Plan sold in usage credit
            (ADR-0041), which reports `credit_*` instead
        credit_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Credit Usd
          description: The month's usage credit at list prices, in US dollars
        credit_used_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Credit Used Usd
          description: What this month's Requests cost at list prices, in US dollars
        credit_remaining_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Credit Remaining Usd
          description: The month's usage credit not yet spent, in US dollars
        upgrade_url:
          type: string
          title: Upgrade Url
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
      type: object
      required:
        - message
        - type
        - code
        - current_plan
        - requests_used
        - requests_limit
        - upgrade_url
      title: QuotaErrorDetail
    KeyRequestCapErrorDetail:
      properties:
        message:
          type: string
          title: Message
        type:
          type: string
          title: Type
          description: '''quota_exceeded'''
        code:
          type: string
          title: Code
          description: '''api_key_request_cap_exceeded'''
        requests_limit:
          type: integer
          title: Requests Limit
          description: The key's monthly Request cap
        resets_at:
          type: string
          title: Resets At
          description: 'When the cap resets: the first of next month, UTC'
        retry_after:
          type: integer
          title: Retry After
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
      type: object
      required:
        - message
        - type
        - code
        - requests_limit
        - resets_at
        - retry_after
      title: KeyRequestCapErrorDetail
      description: >-
        One key past its own monthly Request cap (#1111), not the account's
        quota.


        Deliberately not ``QuotaErrorDetail``: nothing about the Plan was
        exceeded,

        so it names no Plan and offers no upgrade. The account's other keys are

        still served.
    SubscriptionInactiveErrorDetail:
      properties:
        message:
          type: string
          title: Message
        type:
          type: string
          title: Type
          description: '''subscription_inactive'''
        code:
          type: string
          title: Code
          description: '''subscription_inactive'''
        current_plan:
          type: string
          title: Current Plan
        subscription_status:
          type: string
          title: Subscription Status
          description: >-
            e.g. 'cancelled', 'past_due', 'paused'; 'none' where no plan covers
            the key's organization at all
        reactivate_url:
          type: string
          title: Reactivate Url
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: >-
            The error catalogue's entry for `code` (cause and fix); present when
            the catalogue documents the code
      type: object
      required:
        - message
        - type
        - code
        - current_plan
        - subscription_status
        - reactivate_url
      title: SubscriptionInactiveErrorDetail
      description: >-
        A refusal for the subscription's state, not for a spent quota.


        Deliberately not ``QuotaErrorDetail``: it carries no ``requests_used`` /

        ``requests_limit`` (nothing was exceeded -- reporting them beside this

        message is the contradiction #565 was filed for), no ``retry_after``

        (waiting does not fix it), and no ``on_demand_url`` (pay-as-you-go on a
        dead

        subscription is refused by design). One door, and it works.
    McpToolName:
      properties:
        name:
          type: string
          maxLength: 256
          minLength: 1
          title: Name
      type: object
      required:
        - name
      title: McpToolName
      description: 'A tool on another server: only its name is read. Other keys are ignored.'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        PromptGuard API key for developer endpoints. Keys start with pg_live_
        and are created in the dashboard.

````

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