Skip to main content
Glama
@omnidim-ai/mcp-server

@omnidim-ai/mcp-server

by Omnidim

createCustomApiIntegration

Save your own HTTP endpoint as an integration so an agent can call it during conversations and use the response in its replies.

Instructions

Save a call to your own HTTP endpoint as an integration.

Attach it to an agent with attachAgentIntegration. The agent calls the endpoint during a call when the conversation needs it, then uses the response in its reply. The agent fills parameters marked isLLMGenerated from the conversation.

(Tags: Integrations)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "url": "<url>",
      "method": "<method>"
    },
    "name": "createCustomApiIntegration"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
nameYesA name for the integration.
methodYes
headersNoFixed headers sent on every request.
body_paramsNoRequest body fields, sent as JSON. A GET request sends no body. Every request with a body also carries the call's `from_number`, `to_number` and `call_sid`.
descriptionNoWhat the endpoint does. The agent reads this to decide when to call it, so say what it returns and when it is useful.
query_paramsNoQuery string parameters.
request_timeoutNoSeconds to wait for your endpoint before the agent moves on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.22.0
    • addedInput schema / properties / body_params
      Added value: +{
      +  "description": "Request body fields, sent as JSON. A GET request sends no\nbody. Every request with a body also carries the call's\n`from_number`, `to_number` and `call_sid`.\n",
      +  "items": {
      +    "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n",
      +    "properties": {
      +      "children": {
      +        "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.",
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "description": {
      +        "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false.",
      +        "type": "string"
      +      },
      +      "isLLMGenerated": {
      +        "default": true,
      +        "description": "Let the agent fill this value from the conversation.",
      +        "type": "boolean"
      +      },
      +      "key": {
      +        "description": "The parameter name your endpoint expects.",
      +        "type": "string"
      +      },
      +      "required": {
      +        "description": "Whether the agent must supply this parameter.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "default": "string",
      +        "enum": [
      +          "string",
      +          "number",
      +          "boolean",
      +          "object",
      +          "array"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "What the endpoint does. The agent reads this to decide\nwhen to call it, so say what it returns and when it is useful.\n",
      +  "type": "string"
      +}
    • addedInput schema / properties / headers
      Added value: +{
      +  "description": "Fixed headers sent on every request.",
      +  "items": {
      +    "properties": {
      +      "key": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / method
      Added value: +{
      +  "enum": [
      +    "GET",
      +    "POST",
      +    "PUT",
      +    "PATCH",
      +    "DELETE"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "A name for the integration.",
      +  "type": "string"
      +}
    • addedInput schema / properties / query_params
      Added value: +{
      +  "description": "Query string parameters.",
      +  "items": {
      +    "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n",
      +    "properties": {
      +      "children": {
      +        "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.",
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "description": {
      +        "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false.",
      +        "type": "string"
      +      },
      +      "isLLMGenerated": {
      +        "default": true,
      +        "description": "Let the agent fill this value from the conversation.",
      +        "type": "boolean"
      +      },
      +      "key": {
      +        "description": "The parameter name your endpoint expects.",
      +        "type": "string"
      +      },
      +      "required": {
      +        "description": "Whether the agent must supply this parameter.",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "default": "string",
      +        "enum": [
      +          "string",
      +          "number",
      +          "boolean",
      +          "object",
      +          "array"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / requestBody
      Removed value: -{
      -  "description": "The JSON request body.",
      -  "properties": {
      -    "body_params": {
      -      "description": "Request body fields, sent as JSON. A GET request sends no\nbody. Every request with a body also carries the call's\n`from_number`, `to_number` and `call_sid`.\n",
      -      "items": {
      -        "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n",
      -        "properties": {
      -          "children": {
      -            "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.",
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "description": {
      -            "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false.",
      -            "type": "string"
      -          },
      -          "isLLMGenerated": {
      -            "default": true,
      -            "description": "Let the agent fill this value from the conversation.",
      -            "type": "boolean"
      -          },
      -          "key": {
      -            "description": "The parameter name your endpoint expects.",
      -            "type": "string"
      -          },
      -          "required": {
      -            "description": "Whether the agent must supply this parameter.",
      -            "type": "boolean"
      -          },
      -          "type": {
      -            "default": "string",
      -            "enum": [
      -              "string",
      -              "number",
      -              "boolean",
      -              "object",
      -              "array"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "key"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "description": {
      -      "description": "What the endpoint does. The agent reads this to decide\nwhen to call it, so say what it returns and when it is useful.\n",
      -      "type": "string"
      -    },
      -    "headers": {
      -      "description": "Fixed headers sent on every request.",
      -      "items": {
      -        "properties": {
      -          "key": {
      -            "type": "string"
      -          },
      -          "value": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "key",
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "method": {
      -      "enum": [
      -        "GET",
      -        "POST",
      -        "PUT",
      -        "PATCH",
      -        "DELETE"
      -      ],
      -      "type": "string"
      -    },
      -    "name": {
      -      "description": "A name for the integration.",
      -      "type": "string"
      -    },
      -    "query_params": {
      -      "description": "Query string parameters.",
      -      "items": {
      -        "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n",
      -        "properties": {
      -          "children": {
      -            "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.",
      -            "items": {
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "description": {
      -            "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false.",
      -            "type": "string"
      -          },
      -          "isLLMGenerated": {
      -            "default": true,
      -            "description": "Let the agent fill this value from the conversation.",
      -            "type": "boolean"
      -          },
      -          "key": {
      -            "description": "The parameter name your endpoint expects.",
      -            "type": "string"
      -          },
      -          "required": {
      -            "description": "Whether the agent must supply this parameter.",
      -            "type": "boolean"
      -          },
      -          "type": {
      -            "default": "string",
      -            "enum": [
      -              "string",
      -              "number",
      -              "boolean",
      -              "object",
      -              "array"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "key"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "request_timeout": {
      -      "default": 10,
      -      "description": "Seconds to wait for your endpoint before the agent moves on.",
      -      "type": "number"
      -    },
      -    "url": {
      -      "format": "uri",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "name",
      -    "url",
      -    "method"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / properties / request_timeout
      Added value: +{
      +  "default": 10,
      +  "description": "Seconds to wait for your endpoint before the agent moves on.",
      +  "type": "number"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "format": "uri",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "requestBody"
      -]New value: +[
      +  "name",
      +  "url",
      +  "method"
      +]
  2. Addedv0.19.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (which only say this is a non-destructive write), the description discloses runtime behavior: the agent calls the endpoint during a live call and consumes the response, that GET sends no body, that every bodied request also carries from_number/to_number/call_sid, and that isLLMGenerated parameters are filled from the conversation. It omits auth/credential handling, whether the endpoint is validated at creation time, and name-uniqueness/overwrite behavior on save.

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

Conciseness5/5

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

Three short paragraphs, front-loaded with the action, then the lifecycle relationship, then the parameter-filling rule. No filler sentences and no repetition of schema content that would waste space.

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

Completeness4/5

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

For an 8-parameter creation tool with no output schema, the definition covers the important mental model: what gets stored, how it is consumed at call time, and how dynamic parameters are populated. It stops short of stating what is returned (integration ID) or how creation fails when the URL is unreachable, which an agent would need for error handling.

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

Parameters4/5

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

With 75% schema coverage the schema already carries most parameter meaning, yet the description adds real semantics: the isLLMGenerated true/false contract, the invisible injected call metadata fields, the no-body rule for GET, and the timeout's effect ('before the agent moves on'). The description field's role in agent routing is reinforced but not new beyond the schema text.

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

Purpose5/5

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

The opening line names a specific verb and resource plus scope: 'Save a call to your own HTTP endpoint as an integration.' It immediately clarifies that this only defines the integration, and points to attachAgentIntegration as the separate step that makes it usable, which separates it from the sibling create* tools.

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

Usage Guidelines4/5

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

It gives clear sequencing context: create here, then attach with attachAgentIntegration, after which the agent invokes the endpoint mid-call when the conversation needs it. It does not state when to prefer this over other automation constructs (workflows, post-call actions) or any prerequisites such as endpoint reachability, so no explicit exclusions.

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

Deploy Server

Other Tools