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

# Observe Manifest

> Record an MCP server's tool manifest, and return what moved.

**Who may call it:** an API key, or any role other than auditor.



## OpenAPI

````yaml /api/openapi.json post /v1/mcp/observe
openapi: 3.1.0
info:
  title: RotaGrant API
  version: 0.1.0
  description: >-
    The HTTP API of a RotaGrant deployment, made from the product's own route
    definitions at the commit named in `x-rotascale-source`. Nothing here is
    written by hand.


    There is no shared endpoint. RotaGrant runs in your environment, and your
    deployment serves its own copy of this description at `/api/docs`. That copy
    is the authority on what your version has and which features are switched
    on; this one is the reference for one commit of the main line. The version
    is 0.1.0: routes and shapes can still change.


    Every route says who may call it. Most need a bearer token from the identity
    provider your deployment uses, held by a person with the role named. The
    routes an SDK calls also accept a workspace API key. A few are open, and say
    why.
servers:
  - url: https://{deployment}
    description: Your own deployment. There is no shared endpoint.
    variables:
      deployment:
        default: rotagrant.internal.example
        description: The host your deployment answers on.
security: []
paths:
  /v1/mcp/observe:
    post:
      tags:
        - MCP servers
      summary: Observe Manifest
      description: |-
        Record an MCP server's tool manifest, and return what moved.

        **Who may call it:** an API key, or any role other than auditor.
      operationId: observe_manifest_v1_mcp_observe_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObserveIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObserveOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
        - apiKey: []
components:
  schemas:
    ObserveIn:
      properties:
        server:
          type: string
          maxLength: 200
          minLength: 1
          title: Server
        transport:
          anyOf:
            - type: string
              maxLength: 16
            - type: 'null'
          title: Transport
        endpoint:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint
        tools:
          items:
            $ref: '#/components/schemas/ToolIn'
          type: array
          title: Tools
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
        trajectory_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Trajectory Id
      type: object
      required:
        - server
        - tools
      title: ObserveIn
    ObserveOut:
      properties:
        server_id:
          type: string
          title: Server Id
        discovered:
          type: boolean
          title: Discovered
          description: true if this call created the server
        tool_count:
          type: integer
          title: Tool Count
        changes:
          items:
            $ref: '#/components/schemas/ChangeOut'
          type: array
          title: Changes
        injection_risk:
          type: boolean
          title: Injection Risk
          description: >-
            a description moved while its schema did not — the signature of tool
            poisoning rather than a version bump
        first_sight:
          items:
            $ref: '#/components/schemas/FirstSightOut'
          type: array
          title: First Sight
      type: object
      required:
        - server_id
        - discovered
        - tool_count
        - changes
        - injection_risk
      title: ObserveOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ToolIn:
      properties:
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
        description_hash:
          type: string
          maxLength: 64
          minLength: 64
          title: Description Hash
        schema_hash:
          type: string
          maxLength: 64
          minLength: 64
          title: Schema Hash
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - name
        - description_hash
        - schema_hash
      title: ToolIn
    ChangeOut:
      properties:
        id:
          type: string
          title: Id
        tool_name:
          type: string
          title: Tool Name
        kind:
          type: string
          title: Kind
        previous_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Hash
        current_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Hash
        observed_at:
          type: string
          format: date-time
          title: Observed At
      type: object
      required:
        - id
        - tool_name
        - kind
        - previous_hash
        - current_hash
        - observed_at
      title: ChangeOut
    FirstSightOut:
      properties:
        code:
          type: string
          title: Code
        detail:
          type: string
          title: Detail
        subject:
          type: string
          title: Subject
      type: object
      required:
        - code
        - detail
        - subject
      title: FirstSightOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A token from the identity provider your deployment federates with. It
        identifies a person; their roles in the workspace decide what they may
        do.
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        A workspace API key (`rsk_...`), issued in the console and shown once.
        It identifies a service, not a person, and is accepted only on the
        routes an SDK calls. It may also be sent as `Authorization: Bearer
        rsk_...`.

````

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