Letta · Schema

ToolRunFromSource

Artificial IntelligenceAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen-Source

Properties

Name Type Description
source_code string The source code of the function.
args object The arguments to pass to the tool.
env_vars object The environment variables to pass to the tool.
name object The name of the tool to run.
source_type object The type of the source code.
args_json_schema object The args JSON schema of the function.
json_schema object The JSON schema of the function (auto-generated from source_code if not provided)
pip_requirements object Optional list of pip packages required by this tool.
npm_requirements object Optional list of npm packages required by this tool.
View JSON Schema on GitHub

JSON Schema

letta-toolrunfromsource-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolRunFromSource",
  "title": "ToolRunFromSource",
  "properties": {
    "source_code": {
      "type": "string",
      "title": "Source Code",
      "description": "The source code of the function."
    },
    "args": {
      "additionalProperties": true,
      "type": "object",
      "title": "Args",
      "description": "The arguments to pass to the tool."
    },
    "env_vars": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Env Vars",
      "description": "The environment variables to pass to the tool."
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "The name of the tool to run."
    },
    "source_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Type",
      "description": "The type of the source code."
    },
    "args_json_schema": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Args Json Schema",
      "description": "The args JSON schema of the function."
    },
    "json_schema": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Json Schema",
      "description": "The JSON schema of the function (auto-generated from source_code if not provided)"
    },
    "pip_requirements": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/components/schemas/PipRequirement"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pip Requirements",
      "description": "Optional list of pip packages required by this tool."
    },
    "npm_requirements": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/components/schemas/NpmRequirement"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Npm Requirements",
      "description": "Optional list of npm packages required by this tool."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "source_code",
    "args"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/letta-toolrunfromsource"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.