{
  "service": "callingly",
  "displayName": "Callingly",
  "categories": [
    "Communication",
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Bearer Token",
      "placeholder": "CALLINGLY_BEARER_TOKEN",
      "description": "Callingly bearer token used with the Authorization header. Create it under Settings > API Keys in the Callingly dashboard: https://callingly.com/dashboard/settings/api_keys",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://callingly.com",
  "actions": [
    {
      "id": "callingly.create_call",
      "service": "callingly",
      "name": "create_call",
      "description": "Create a Callingly call from lead details and routing information.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Agency account identifier used when acting on behalf of a client account."
          },
          "team_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly team identifier."
          },
          "first_name": {
            "type": "string",
            "minLength": 1,
            "description": "Lead first name to use for the call."
          },
          "last_name": {
            "type": "string",
            "minLength": 1,
            "description": "Lead last name to use for the call."
          },
          "phone_number": {
            "type": "string",
            "minLength": 1,
            "description": "Lead phone number for the call."
          },
          "email": {
            "type": "string",
            "description": "Lead email address for the call.",
            "format": "email"
          },
          "company": {
            "type": "string",
            "minLength": 1,
            "description": "Lead company name."
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "description": "Lead category name."
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "description": "Lead source label."
          },
          "crm_id": {
            "type": "integer",
            "description": "CRM identifier passed through to Callingly."
          },
          "scheduled_at": {
            "type": "string",
            "minLength": 1,
            "description": "Optional scheduled timestamp for the call."
          }
        },
        "additionalProperties": false,
        "required": [
          "team_id",
          "first_name",
          "last_name",
          "phone_number"
        ],
        "description": "Body fields for creating a Callingly call."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "call": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "minimum": 1,
                "description": "Callingly call identifier."
              },
              "started_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "direction": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_status_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ring_status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retry": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_retry": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "from_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "recording_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "waveform_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error_message": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "human_result": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "user": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Agent summary returned in Callingly call payloads."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "label": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number_formatted": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "crm": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deleted_at": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lead summary returned in Callingly call payloads."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "number": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tag": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "type": "array",
                "items": {
                  "description": "One note entry returned by Callingly."
                },
                "description": "Notes returned with the call."
              },
              "profile": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Team summary returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_voicemail": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_queue": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_team_offline": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "scheduled_call_type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "old_lead_owner_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "transcript": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sales_advice": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_error": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "description": "Call record returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Created Callingly call response."
      }
    },
    {
      "id": "callingly.delete_lead",
      "service": "callingly",
      "name": "delete_lead",
      "description": "Delete a Callingly lead by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly lead identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for deleting one Callingly lead."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the operation succeeded."
          }
        },
        "additionalProperties": false,
        "description": "Deletion acknowledgement returned by Callingly."
      }
    },
    {
      "id": "callingly.get_agent_schedule",
      "service": "callingly",
      "name": "get_agent_schedule",
      "description": "Retrieve the weekly schedule for one Callingly agent.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly agent identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for retrieving one Callingly agent schedule."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "day": {
                  "type": "integer",
                  "description": "Zero-based day index where Sunday is 0."
                },
                "is_available": {
                  "type": "boolean",
                  "description": "Whether the agent is available on this day."
                },
                "times": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "start": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "end": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "One schedule time range returned by Callingly."
                  },
                  "description": "Time ranges for the day."
                }
              },
              "additionalProperties": false,
              "description": "One schedule day returned by Callingly."
            },
            "description": "Schedule day entries returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Agent schedule response returned by Callingly."
      }
    },
    {
      "id": "callingly.get_call",
      "service": "callingly",
      "name": "get_call",
      "description": "Retrieve one Callingly call by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "callId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly call identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for retrieving one Callingly call."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "call": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "minimum": 1,
                "description": "Callingly call identifier."
              },
              "started_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "direction": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_status_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ring_status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "duration": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retry": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_retry": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "time_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "from_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "recording_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "waveform_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error_message": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number_formatted": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "human_result": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "user": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Agent summary returned in Callingly call payloads."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "label": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lname": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number_formatted": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "crm": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deleted_at": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lead summary returned in Callingly call payloads."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "number": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tag": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "type": "array",
                "items": {
                  "description": "One note entry returned by Callingly."
                },
                "description": "Notes returned with the call."
              },
              "profile": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Team summary returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_voicemail": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_queue": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_team_offline": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "scheduled_call_type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "old_lead_owner_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "transcript": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sales_advice": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_error": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "error_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "description": "Call record returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "One Callingly call record."
      }
    },
    {
      "id": "callingly.get_lead",
      "service": "callingly",
      "name": "get_lead",
      "description": "Retrieve one Callingly lead by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly lead identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for retrieving one Callingly lead."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "lead": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "minimum": 1,
                "description": "Callingly lead identifier."
              },
              "account_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_owner_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fname": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lname": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "category": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "team": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Team summary returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "description": "One lead tag entry."
                },
                "description": "Lead tags returned by Callingly."
              },
              "stage": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "calls": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "minimum": 1,
                      "description": "Numeric identifier returned by Callingly."
                    },
                    "source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "seconds": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "direction": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "result": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent_retry": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lead_retry": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "started_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recording_url": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "description": "Lead call summary returned by Callingly."
                },
                "description": "Call summaries attached to the lead."
              },
              "scheduled_call_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_owner": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "custom_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lead owner returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_stopped": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_blocked": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "description": "Lead record returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "One Callingly lead record."
      }
    },
    {
      "id": "callingly.get_team",
      "service": "callingly",
      "name": "get_team",
      "description": "Retrieve one Callingly team by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly team identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for retrieving one Callingly team."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "team": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "minimum": 1,
                "description": "Callingly team identifier."
              },
              "account_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_record": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "call_mode": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "whispertext": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "post_whispertext": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "delay": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_retry": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retries": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retry_schedule": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "description": "One retry delay in minutes."
                },
                "description": "Retry delays for the team in minutes."
              },
              "is_reschedule": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_retry_lead": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_retries": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_retry_schedule": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "description": "One lead retry delay in minutes."
                },
                "description": "Lead retry delays for the team in minutes."
              },
              "is_sms": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sms_body": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "whispertext_voice": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_users_available_for_call": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Nullable boolean field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "description": "Team record returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "One Callingly team record."
      }
    },
    {
      "id": "callingly.list_agents",
      "service": "callingly",
      "name": "list_agents",
      "description": "List Callingly agents for the current account or a specified client account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Agency account identifier used when acting on behalf of a client account."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing Callingly agents."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Callingly agent identifier."
                },
                "account_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fname": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lname": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone_number": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ext": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "donotdisturb": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "priority": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "timezone": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_available": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Nullable boolean field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "Agent record returned by Callingly."
            },
            "description": "Agents returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Agent list response returned by Callingly."
      }
    },
    {
      "id": "callingly.list_calls",
      "service": "callingly",
      "name": "list_calls",
      "description": "List Callingly calls with optional date, team, and pagination filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Calendar date in YYYY-MM-DD format.",
            "format": "date"
          },
          "end": {
            "type": "string",
            "description": "Calendar date in YYYY-MM-DD format.",
            "format": "date"
          },
          "teamId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly team identifier."
          },
          "accountId": {
            "type": "integer",
            "minimum": 1,
            "description": "Agency account identifier used when acting on behalf of a client account."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of records to return."
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "One-based page number to retrieve."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing Callingly calls."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Callingly call identifier."
                },
                "started_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "direction": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status_formatted": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_status_formatted": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ring_status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "seconds": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "duration": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retry": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_retry": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "time_formatted": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "from_formatted": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "recording_url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "waveform_url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error_message": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone_number_formatted": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "human_result": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "user": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Numeric identifier returned by Callingly."
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fname": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lname": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phone_number": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Agent summary returned in Callingly call payloads."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Numeric identifier returned by Callingly."
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "label": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fname": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lname": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phone_number": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phone_number_formatted": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "crm": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "deleted_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Lead summary returned in Callingly call payloads."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "number": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tag": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "notes": {
                  "type": "array",
                  "items": {
                    "description": "One note entry returned by Callingly."
                  },
                  "description": "Notes returned with the call."
                },
                "profile": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Numeric identifier returned by Callingly."
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Team summary returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_voicemail": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_queue": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_team_offline": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "scheduled_call_type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "old_lead_owner_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "transcript": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sales_advice": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_error": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error_code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "Call record returned by Callingly."
            },
            "description": "Calls returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Call list response returned by Callingly."
      }
    },
    {
      "id": "callingly.list_leads",
      "service": "callingly",
      "name": "list_leads",
      "description": "List Callingly leads with optional date or phone number filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Calendar date in YYYY-MM-DD format.",
            "format": "date"
          },
          "end": {
            "type": "string",
            "description": "Calendar date in YYYY-MM-DD format.",
            "format": "date"
          },
          "phone_number": {
            "type": "string",
            "minLength": 1,
            "description": "Lead phone number to filter by."
          },
          "accountId": {
            "type": "integer",
            "minimum": 1,
            "description": "Agency account identifier used when acting on behalf of a client account."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing Callingly leads."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Callingly lead identifier."
                },
                "account_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_owner_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fname": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lname": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone_number": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "company": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "category": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "result": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "team": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Numeric identifier returned by Callingly."
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Team summary returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "description": "One lead tag entry."
                  },
                  "description": "Lead tags returned by Callingly."
                },
                "stage": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "calls": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "description": "Nullable integer field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "direction": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "result": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "agent_retry": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "description": "Nullable integer field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "lead_retry": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "description": "Nullable integer field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "started_at": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "recording_url": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lead call summary returned by Callingly."
                  },
                  "description": "Call summaries attached to the lead."
                },
                "scheduled_call_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_owner": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "phone_number": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "custom_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Nullable text field returned by Callingly."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Lead owner returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_stopped": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_blocked": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "Lead record returned by Callingly."
            },
            "description": "Leads returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Lead list response returned by Callingly."
      }
    },
    {
      "id": "callingly.list_team_agents",
      "service": "callingly",
      "name": "list_team_agents",
      "description": "List agents assigned to one Callingly team.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "teamId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly team identifier."
          }
        },
        "additionalProperties": false,
        "description": "Path parameters for listing agents assigned to one Callingly team."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "agents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Callingly agent identifier."
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "priority": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "cap": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "Agent assignment returned for a Callingly team."
            },
            "description": "Agents assigned to the team."
          }
        },
        "additionalProperties": false,
        "description": "Team agent list response returned by Callingly."
      }
    },
    {
      "id": "callingly.list_teams",
      "service": "callingly",
      "name": "list_teams",
      "description": "List Callingly teams for the current account or a specified client account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "minimum": 1,
            "description": "Agency account identifier used when acting on behalf of a client account."
          }
        },
        "additionalProperties": false,
        "description": "Optional agency-scoped input for listing Callingly teams."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Callingly team identifier."
                },
                "account_id": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_record": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "call_mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "whispertext": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "post_whispertext": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "language": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "delay": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_retry": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retries": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retry_schedule": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "description": "One retry delay in minutes."
                  },
                  "description": "Retry delays for the team in minutes."
                },
                "is_reschedule": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_retry_lead": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_retries": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lead_retry_schedule": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "description": "One lead retry delay in minutes."
                  },
                  "description": "Lead retry delays for the team in minutes."
                },
                "is_sms": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "Nullable integer field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sms_body": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "whispertext_voice": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Nullable text field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_users_available_for_call": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Nullable boolean field returned by Callingly."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "Team record returned by Callingly."
            },
            "description": "Teams returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Team list response returned by Callingly."
      }
    },
    {
      "id": "callingly.update_lead",
      "service": "callingly",
      "name": "update_lead",
      "description": "Update a Callingly lead by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly lead identifier."
          },
          "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Callingly lead identifier."
          },
          "fname": {
            "type": "string",
            "minLength": 1,
            "description": "Lead first name."
          },
          "lname": {
            "type": "string",
            "minLength": 1,
            "description": "Lead last name."
          },
          "email": {
            "type": "string",
            "description": "Lead email address.",
            "format": "email"
          },
          "phone_number": {
            "type": "string",
            "minLength": 1,
            "description": "Lead phone number."
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "description": "Lead source label."
          },
          "company": {
            "type": "string",
            "minLength": 1,
            "description": "Lead company name."
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "description": "Lead status value."
          },
          "result": {
            "anyOf": [
              {
                "type": "string",
                "description": "Lead result value."
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "anyOf": [
              {
                "type": "string",
                "description": "Lead stage value."
              },
              {
                "type": "null"
              }
            ]
          },
          "is_stopped": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "description": "Whether the lead is stopped: 1 for yes, 0 for no."
          },
          "is_blocked": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "description": "Whether the lead is blocked: 1 for yes, 0 for no."
          }
        },
        "additionalProperties": false,
        "required": [
          "leadId"
        ],
        "description": "Body fields for updating a Callingly lead."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "lead": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "minimum": 1,
                "description": "Callingly lead identifier."
              },
              "account_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_owner_id": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fname": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lname": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "category": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "team": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Numeric identifier returned by Callingly."
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Team summary returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "description": "One lead tag entry."
                },
                "description": "Lead tags returned by Callingly."
              },
              "stage": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "calls": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "minimum": 1,
                      "description": "Numeric identifier returned by Callingly."
                    },
                    "source": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "seconds": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "direction": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "result": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agent_retry": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lead_retry": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "description": "Nullable integer field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "started_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recording_url": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "Nullable text field returned by Callingly."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "description": "Lead call summary returned by Callingly."
                },
                "description": "Call summaries attached to the lead."
              },
              "scheduled_call_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Nullable text field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lead_owner": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone_number": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "custom_id": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Nullable text field returned by Callingly."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Lead owner returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_stopped": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_blocked": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Nullable integer field returned by Callingly."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "description": "Lead record returned by Callingly."
          }
        },
        "additionalProperties": false,
        "description": "Updated Callingly lead response."
      }
    }
  ]
}
