Skip to main content
Glama
Vapi MCP Server

Vapi MCP Server

Official
by VapiAI

create_tool

Create a new Vapi tool to define functions, API requests, SMS sending, or call transfers for AI voice agents.

Instructions

Creates a new Vapi tool

Input Schema

NameRequiredDescriptionDefault
smsNoSMS tool configuration - to send text messages
nameNoName of the function/tool
typeYesType of the tool to create
functionNoCustom function tool configuration - for custom server-side functions
apiRequestNoAPI Request tool configuration - for HTTP API integration
descriptionNoDescription of what the function/tool does
transferCallNoTransfer call tool configuration - to transfer calls to destinations
additionalFieldsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed64 schema fields changedv0.1.0
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "type": {
      +          "const": "apiRequest"
      +        }
      +      },
      +      "required": [
      +        "type"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "apiRequest"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "anyOf": [
      +        {
      +          "required": [
      +            "function"
      +          ]
      +        },
      +        {
      +          "properties": {
      +            "description": {
      +              "minLength": 1
      +            }
      +          },
      +          "required": [
      +            "description"
      +          ]
      +        }
      +      ],
      +      "properties": {
      +        "type": {
      +          "const": "function"
      +        }
      +      },
      +      "required": [
      +        "type"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "name"
      +      ]
      +    }
      +  }
      +]
    • addedInput schema / properties / additionalFields
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / apiRequest / additionalProperties
      Removed value: -false
    • removedInput schema / properties / apiRequest / properties / backoffPlan / additionalProperties
      Removed value: -false
    • addedInput schema / properties / apiRequest / properties / backoffPlan / properties / baseDelaySeconds / maximum
      Added value: +10
    • addedInput schema / properties / apiRequest / properties / backoffPlan / properties / baseDelaySeconds / minimum
      Added value: +0
    • addedInput schema / properties / apiRequest / properties / backoffPlan / properties / maxRetries / maximum
      Added value: +10
    • addedInput schema / properties / apiRequest / properties / backoffPlan / properties / maxRetries / minimum
      Added value: +0
    • addedInput schema / properties / apiRequest / properties / backoffPlan / properties / type / description
      Added value: +"This is the type of backoff plan to use. Defaults to fixed.\n\n@default fixed"
    • removedInput schema / properties / apiRequest / properties / body / additionalProperties
      Removed value: -false
    • addedInput schema / properties / apiRequest / properties / body / properties / description
      Added value: +{
      +  "description": "This is the description to help the model understand what it needs to output.",
      +  "type": "string"
      +}
    • addedInput schema / properties / apiRequest / properties / body / properties / enum
      Added value: +{
      +  "description": "This array specifies the allowed values that can be used to restrict the output of the model.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / apiRequest / properties / body / properties / format
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / apiRequest / properties / body / properties / items
      Added value: +{}
    • addedInput schema / properties / apiRequest / properties / body / properties / pattern
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / apiRequest / properties / body / properties / properties / $ref
      Removed value: -"#/properties/function/properties/parameters/properties/properties"
    • addedInput schema / properties / apiRequest / properties / body / properties / properties / additionalProperties
      Added value: +{
      +  "allOf": [
      +    {}
      +  ]
      +}
    • addedInput schema / properties / apiRequest / properties / body / properties / properties / description
      Added value: +"This is required if the type is \"object\". This specifies the properties of the object. This is a map of property names to JsonSchema objects."
    • addedInput schema / properties / apiRequest / properties / body / properties / properties / properties
      Added value: +{}
    • addedInput schema / properties / apiRequest / properties / body / properties / properties / type
      Added value: +"object"
    • removedInput schema / properties / apiRequest / properties / body / properties / required / $ref
      Removed value: -"#/properties/function/properties/parameters/properties/required"
    • addedInput schema / properties / apiRequest / properties / body / properties / required / description
      Added value: +"This is a list of properties that are required.\n\nThis only makes sense if the type is \"object\"."
    • addedInput schema / properties / apiRequest / properties / body / properties / required / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / apiRequest / properties / body / properties / required / type
      Added value: +"array"
    • addedInput schema / properties / apiRequest / properties / body / properties / title
      Added value: +{
      +  "description": "This is the title of the schema.",
      +  "type": "string"
      +}
    • removedInput schema / properties / apiRequest / properties / body / properties / type / $ref
      Removed value: -"#/properties/function/properties/parameters/properties/type"
    • addedInput schema / properties / apiRequest / properties / body / properties / type / enum
      Added value: +[
      +  "string",
      +  "number",
      +  "integer",
      +  "boolean",
      +  "array",
      +  "object"
      +]
    • addedInput schema / properties / apiRequest / properties / body / properties / type / type
      Added value: +"string"
    • changedInput schema / properties / apiRequest / properties / body / required
      Previous value: -[
      -  "type",
      -  "properties"
      -]New value: +[
      +  "type"
      +]
    • addedInput schema / properties / apiRequest / properties / headers / properties
      Added value: +{}
    • changedInput schema / properties / apiRequest / properties / method / enum
      Previous value: -[
      -  "GET",
      -  "POST"
      -]New value: +[
      +  "POST",
      +  "GET",
      +  "PUT",
      +  "PATCH",
      +  "DELETE"
      +]
    • addedInput schema / properties / apiRequest / properties / timeoutSeconds / maximum
      Added value: +300
    • addedInput schema / properties / apiRequest / properties / timeoutSeconds / minimum
      Added value: +1
    • removedInput schema / properties / function / additionalProperties
      Removed value: -false
    • removedInput schema / properties / function / properties / parameters / additionalProperties
      Removed value: -false
    • removedInput schema / properties / function / properties / parameters / properties / properties / additionalProperties / additionalProperties
      Removed value: -false
    • removedInput schema / properties / function / properties / parameters / properties / properties / additionalProperties / properties
      Removed value: -{
      -  "description": {
      -    "type": "string"
      -  },
      -  "enum": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "items": {},
      -  "properties": {
      -    "additionalProperties": {},
      -    "type": "object"
      -  },
      -  "required": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "type": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / function / properties / parameters / properties / properties / additionalProperties / required
      Removed value: -[
      -  "type"
      -]
    • removedInput schema / properties / function / properties / parameters / properties / properties / additionalProperties / type
      Removed value: -"object"
    • addedInput schema / properties / function / properties / parameters / properties / properties / properties
      Added value: +{}
    • addedInput schema / properties / function / properties / parameters / properties / required / description
      Added value: +"This specifies the properties that are required by the function."
    • addedInput schema / properties / function / properties / parameters / properties / type / description
      Added value: +"This must be set to 'object'. It instructs the model to return a JSON object containing the function call properties."
    • removedInput schema / properties / function / properties / server / additionalProperties
      Removed value: -false
    • addedInput schema / properties / function / properties / server / properties / headers / properties
      Added value: +{}
    • addedInput schema / properties / name / maxLength
      Added value: +64
    • addedInput schema / properties / name / pattern
      Added value: +"^[a-zA-Z0-9_-]{1,64}$"
    • removedInput schema / properties / sms / additionalProperties
      Removed value: -false
    • removedInput schema / properties / sms / properties / metadata / additionalProperties
      Removed value: -false
    • removedInput schema / properties / transferCall / additionalProperties
      Removed value: -false
    • changedInput schema / properties / transferCall / properties / destinations / items / additionalProperties
      Previous value: -falseNew value: +{}
    • addedInput schema / properties / transferCall / properties / destinations / items / description
      Added value: +"Transfer destination. Other TransferDestinationNumber fields, such as transferPlan and message, are sent as given (see get_api_schema)."
    • removedInput schema / properties / transferCall / properties / destinations / items / properties / callerId / description
      Removed value: -"Caller ID to use for the transfer"
    • addedInput schema / properties / transferCall / properties / destinations / items / properties / callerId / maxLength
      Added value: +40
    • changedInput schema / properties / transferCall / properties / destinations / items / properties / description / description
      Previous value: -"Description of the transfer destination"New value: +"This is the description of the destination, used by the AI to choose when and how to transfer the call."
    • changedInput schema / properties / transferCall / properties / destinations / items / properties / extension / description
      Previous value: -"Extension number if applicable"New value: +"This is the extension to dial after transferring the call to the `number`."
    • addedInput schema / properties / transferCall / properties / destinations / items / properties / extension / maxLength
      Added value: +10
    • addedInput schema / properties / transferCall / properties / destinations / items / properties / extension / minLength
      Added value: +1
    • changedInput schema / properties / transferCall / properties / destinations / items / properties / number / description
      Previous value: -"Phone number to transfer to (e.g., \"+16054440129\"). It can be any phone number in E.164 format."New value: +"This is the phone number to transfer the call to."
    • addedInput schema / properties / transferCall / properties / destinations / items / properties / number / maxLength
      Added value: +40
    • addedInput schema / properties / transferCall / properties / destinations / items / properties / number / minLength
      Added value: +3
    • addedInput schema / properties / type / anyOf
      Added value: +[
      +  {
      +    "const": "sms",
      +    "description": "The type of tool. \"sms\" for Twilio SMS sending tool.",
      +    "type": "string"
      +  },
      +  {
      +    "const": "transferCall",
      +    "type": "string"
      +  },
      +  {
      +    "const": "function",
      +    "description": "The type of tool. \"function\" for Function tool.",
      +    "type": "string"
      +  },
      +  {
      +    "const": "apiRequest",
      +    "description": "The type of tool. \"apiRequest\" for API request tool.",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / type / enum
      Removed value: -[
      -  "sms",
      -  "transferCall",
      -  "function",
      -  "apiRequest"
      -]
    • removedInput schema / properties / type / type
      Removed value: -"string"
  2. Addedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states that the tool creates a Vapi tool, without mentioning mutation effects, required type-specific fields, permissions, error behavior, or how the polymorphic type parameter controls valid configuration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is concise and front-loaded, with no wasted wording. However, for an eight-parameter polymorphic creation tool, this level of brevity leaves the description under-specified rather than optimally structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a complex schema with nested objects, multiple tool type variants, no annotations, and no output schema. The description does not explain the type variants, required type-dependent fields, or creation workflow, leaving significant context gaps for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high at 88%, so the schema already documents most parameters, including type-specific nested fields. The description adds no additional parameter meaning beyond the generic 'Vapi tool' framing, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Creates a new Vapi tool.' This clearly distinguishes creation from sibling operations like update_tool, get_tool, and list_tools. However, it does not explain the polymorphic tool types or what kinds of tools can be created.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus update_tool or get_api_schema, nor any prerequisites or exclusions. The only implied usage is that it is for creation rather than update or retrieval.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.