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

# Call a tool for a user

> Run one tool on one of your users' memory.



## OpenAPI

````yaml POST /platform/v1/users/{uid}/tools/{name}
openapi: 3.1.0
info:
  title: Constella API
  version: v1
  description: Cloud memory for your own AI tools and for apps with many users.
servers:
  - url: https://api.constella.app
security: []
tags:
  - name: Your memory
  - name: Your app's users
  - name: Connected apps
paths:
  /platform/v1/users/{uid}/tools/{name}:
    post:
      tags:
        - Your app's users
      summary: Call User Tool
      description: >-
        Call one tool for the app's own user. A tool that saves makes the user
        if needed; a read for a user that

        does not exist yet is a 404.
      operationId: call_user_tool_platform_v1_users__uid__tools__name__post
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            title: Name
            example: memory_add
          description: The tool to call, for example memory_add. See the Tools pages.
        - name: uid
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Uid
            example: u_123
          description: >-
            Your own id for this user, like your database id (not an email).
            1-128 characters, no spaces or slashes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallIn'
            examples:
              save:
                summary: Save a memory (memory_add)
                value:
                  arguments:
                    text: We ship on Fridays.
                    id: team:ship-day
              recall:
                summary: Recall (memory_recall)
                value:
                  arguments:
                    query: when do we ship?
                    limit: 5
              approved:
                summary: A tool that asks first, after the person said yes (notes_add)
                value:
                  arguments:
                    title: Ship day
                    content: We ship on Fridays.
                  approved: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Call User Tool Platform V1 Users  Uid  Tools  Name 
                  Post
        '401':
          description: The key is wrong, revoked or replaced (`bad_key`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: This key may not do this (`not_allowed`, `missing_scope`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such tool, user or item.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            This tool asks the person first (`needs_approval`). Ask them, then
            send the same call with "approved": true.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests (`rate_limited`). Wait and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - appKey: []
components:
  schemas:
    CallIn:
      properties:
        arguments:
          additionalProperties: true
          type: object
          title: Arguments
        approved:
          type: boolean
          title: Approved
          default: false
      type: object
      title: CallIn
    Error:
      type: object
      properties:
        detail:
          type: object
          properties:
            code:
              type: string
              example: bad_key
            message:
              type: string
              example: This key is wrong, revoked or replaced.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    appKey:
      type: http
      scheme: bearer
      description: A project key (cak_live_...). From your server only.

````

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