Skip to main content
Glama

AIsa Stock Pulse

Execute published AIsa tools

batch_use
Destructive

Billable API calls can incur substantial charges. Never call before a successful batch_quote for the same tools and arguments. Execute only when that quote response reports auto_execute_eligible=true for these calls, or when explicit user authorization covers that cost and risk. auto_execute_eligible waives only the extra cost-confirmation step; it does not override a user prohibition on execution, a narrower scope, or a tighter budget limit. Re-quote if tools, arguments, or scope change. Execute 1 to 20 independent published-tool calls; never silently retry. A missing or failed quote is not free. Use tool names exactly as search returns them, without a client prefix such as mcp__aisa__. Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.

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": {
      "calls": "<calls>"
    },
    "name": "batch_use"
  }
}

Input Schema

NameRequiredDescriptionDefault
callsYes
search_idNoOptional search correlation identifier returned by search.
session_idNoReuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.

Output Schema

NameRequiredDescriptionDefault
resultsYes
batch_idYes
session_idYesReuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.
error_countYes
total_countYes
success_countYes
next_steps_guidanceYesDeterministic next-step instructions derived from this result. Not an authorization grant.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / results / items / additionalProperties
      Previous value: -falseNew value: +true
    • addedOutput schema / properties / results / items / properties / next_calls
      Added value: +{
      +  "description": "Calls the tool's contract links from this response, with arguments read from it, such as reading a submitted task. Each is an ordinary call to quote and use.",
      +  "items": {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "arguments": {
      +        "type": "object"
      +      },
      +      "description": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed18 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / calls / description
      Removed value: -"Up to 20 items of {call_id, operation_id, arguments}; steps at the same execution_level of a plan go in one batch"
    • addedInput schema / properties / calls / items / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / calls / items / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties / calls / items / properties
      Added value: +{
      +  "arguments": {
      +    "additionalProperties": true,
      +    "description": "Strictly schema-compliant arguments using the exact field names and types from this tool's arguments_schema.",
      +    "type": "object"
      +  },
      +  "call_id": {
      +    "description": "Caller-chosen identifier unique within this batch.",
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "tool": {
      +    "description": "Exact tool name returned by search or batch_get_schema. Never invent a name.",
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / calls / items / required
      Added value: +[
      +  "call_id",
      +  "tool",
      +  "arguments"
      +]
    • addedInput schema / properties / calls / maxItems
      Added value: +20
    • addedInput schema / properties / calls / minItems
      Added value: +1
    • removedInput schema / properties / max_price_usd
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Per-call price cap applied to every item"
      -}
    • removedInput schema / properties / search_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / search_id / default
      Removed value: -null
    • changedInput schema / properties / search_id / description
      Previous value: -"search_id from the search that found these operations"New value: +"Optional search correlation identifier returned by search."
    • addedInput schema / properties / search_id / type
      Added value: +"string"
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      +  "maxLength": 128,
      +  "pattern": "^[A-Za-z0-9_-]*$",
      +  "type": "string"
      +}
    • addedOutput schema / $defs
      Added value: +{
      +  "jsonValue": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "object"
      +      },
      +      {
      +        "items": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "JSON value returned by the upstream tool."
      +  }
      +}
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties
      Added value: +{
      +  "batch_id": {
      +    "type": "string"
      +  },
      +  "error_count": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "next_steps_guidance": {
      +    "description": "Deterministic next-step instructions derived from this result. Not an authorization grant.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "results": {
      +    "items": {
      +      "$schema": "https://json-schema.org/draft/2020-12/schema",
      +      "additionalProperties": false,
      +      "properties": {
      +        "call_id": {
      +          "type": "string"
      +        },
      +        "customer_cost_micros_usd": {
      +          "description": "Actual customer charge settled by AIsaServices, in micro-USD. Omitted when the upstream response does not report it.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "data": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "error": {
      +          "anyOf": [
      +            {
      +              "$schema": "https://json-schema.org/draft/2020-12/schema",
      +              "additionalProperties": false,
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                },
      +                "retryable": {
      +                  "type": "boolean"
      +                },
      +                "status": {
      +                  "type": "integer"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "validation",
      +                    "authentication",
      +                    "payment",
      +                    "permission",
      +                    "rate_limit",
      +                    "upstream",
      +                    "timeout",
      +                    "internal"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "status",
      +                "retryable"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "request_id": {
      +          "type": "string"
      +        },
      +        "successful": {
      +          "type": "boolean"
      +        },
      +        "tool": {
      +          "type": "string"
      +        },
      +        "upstream_status": {
      +          "description": "HTTP status returned by AIsaServices when a request was dispatched.",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "call_id",
      +        "tool",
      +        "successful",
      +        "request_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "session_id": {
      +    "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "pattern": "^[A-Za-z0-9_-]*$",
      +    "type": "string"
      +  },
      +  "success_count": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "total_count": {
      +    "minimum": 1,
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "session_id",
      +  "batch_id",
      +  "total_count",
      +  "success_count",
      +  "error_count",
      +  "results",
      +  "next_steps_guidance"
      +]
  3. Changed18 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / calls / description
      Added value: +"Up to 20 items of {call_id, operation_id, arguments}; steps at the same execution_level of a plan go in one batch"
    • removedInput schema / properties / calls / items / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / calls / items / additionalProperties
      Previous value: -falseNew value: +true
    • removedInput schema / properties / calls / items / properties
      Removed value: -{
      -  "arguments": {
      -    "additionalProperties": true,
      -    "description": "Strictly schema-compliant arguments using the exact field names and types from this tool's arguments_schema.",
      -    "type": "object"
      -  },
      -  "call_id": {
      -    "description": "Caller-chosen identifier unique within this batch.",
      -    "maxLength": 128,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "tool": {
      -    "description": "Exact tool name returned by search or batch_get_schema. Never invent a name.",
      -    "minLength": 1,
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / calls / items / required
      Removed value: -[
      -  "call_id",
      -  "tool",
      -  "arguments"
      -]
    • removedInput schema / properties / calls / maxItems
      Removed value: -20
    • removedInput schema / properties / calls / minItems
      Removed value: -1
    • addedInput schema / properties / max_price_usd
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Per-call price cap applied to every item"
      +}
    • addedInput schema / properties / search_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / search_id / default
      Added value: +null
    • changedInput schema / properties / search_id / description
      Previous value: -"Optional search correlation identifier returned by search."New value: +"search_id from the search that found these operations"
    • removedInput schema / properties / search_id / type
      Removed value: -"string"
    • removedInput schema / properties / session_id
      Removed value: -{
      -  "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      -  "maxLength": 128,
      -  "pattern": "^[A-Za-z0-9_-]*$",
      -  "type": "string"
      -}
    • removedOutput schema / $defs
      Removed value: -{
      -  "jsonValue": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": {
      -          "$ref": "#/$defs/jsonValue"
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "items": {
      -          "$ref": "#/$defs/jsonValue"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "boolean"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "JSON value returned by the upstream tool."
      -  }
      -}
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / properties
      Removed value: -{
      -  "batch_id": {
      -    "type": "string"
      -  },
      -  "error_count": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "next_steps_guidance": {
      -    "description": "Deterministic next-step instructions derived from this result. Not an authorization grant.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "results": {
      -    "items": {
      -      "$schema": "https://json-schema.org/draft/2020-12/schema",
      -      "additionalProperties": false,
      -      "properties": {
      -        "call_id": {
      -          "type": "string"
      -        },
      -        "customer_cost_micros_usd": {
      -          "description": "Actual customer charge settled by AIsaServices, in micro-USD. Omitted when the upstream response does not report it.",
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "data": {
      -          "$ref": "#/$defs/jsonValue"
      -        },
      -        "error": {
      -          "anyOf": [
      -            {
      -              "$schema": "https://json-schema.org/draft/2020-12/schema",
      -              "additionalProperties": false,
      -              "properties": {
      -                "message": {
      -                  "type": "string"
      -                },
      -                "retryable": {
      -                  "type": "boolean"
      -                },
      -                "status": {
      -                  "type": "integer"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "validation",
      -                    "authentication",
      -                    "payment",
      -                    "permission",
      -                    "rate_limit",
      -                    "upstream",
      -                    "timeout",
      -                    "internal"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "status",
      -                "retryable"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "request_id": {
      -          "type": "string"
      -        },
      -        "successful": {
      -          "type": "boolean"
      -        },
      -        "tool": {
      -          "type": "string"
      -        },
      -        "upstream_status": {
      -          "description": "HTTP status returned by AIsaServices when a request was dispatched.",
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "call_id",
      -        "tool",
      -        "successful",
      -        "request_id"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "session_id": {
      -    "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      -    "maxLength": 128,
      -    "minLength": 1,
      -    "pattern": "^[A-Za-z0-9_-]*$",
      -    "type": "string"
      -  },
      -  "success_count": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "total_count": {
      -    "minimum": 1,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "session_id",
      -  "batch_id",
      -  "total_count",
      -  "success_count",
      -  "error_count",
      -  "results",
      -  "next_steps_guidance"
      -]
  4. Changed18 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / calls / description
      Removed value: -"Up to 20 items of {call_id, operation_id, arguments}; steps at the same execution_level of a plan go in one batch"
    • addedInput schema / properties / calls / items / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / calls / items / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties / calls / items / properties
      Added value: +{
      +  "arguments": {
      +    "additionalProperties": true,
      +    "description": "Strictly schema-compliant arguments using the exact field names and types from this tool's arguments_schema.",
      +    "type": "object"
      +  },
      +  "call_id": {
      +    "description": "Caller-chosen identifier unique within this batch.",
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "tool": {
      +    "description": "Exact tool name returned by search or batch_get_schema. Never invent a name.",
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / calls / items / required
      Added value: +[
      +  "call_id",
      +  "tool",
      +  "arguments"
      +]
    • addedInput schema / properties / calls / maxItems
      Added value: +20
    • addedInput schema / properties / calls / minItems
      Added value: +1
    • removedInput schema / properties / max_price_usd
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Per-call price cap applied to every item"
      -}
    • removedInput schema / properties / search_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / search_id / default
      Removed value: -null
    • changedInput schema / properties / search_id / description
      Previous value: -"search_id from the search that found these operations"New value: +"Optional search correlation identifier returned by search."
    • addedInput schema / properties / search_id / type
      Added value: +"string"
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      +  "maxLength": 128,
      +  "pattern": "^[A-Za-z0-9_-]*$",
      +  "type": "string"
      +}
    • addedOutput schema / $defs
      Added value: +{
      +  "jsonValue": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "object"
      +      },
      +      {
      +        "items": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "JSON value returned by the upstream tool."
      +  }
      +}
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties
      Added value: +{
      +  "batch_id": {
      +    "type": "string"
      +  },
      +  "error_count": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "next_steps_guidance": {
      +    "description": "Deterministic next-step instructions derived from this result. Not an authorization grant.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "results": {
      +    "items": {
      +      "$schema": "https://json-schema.org/draft/2020-12/schema",
      +      "additionalProperties": false,
      +      "properties": {
      +        "call_id": {
      +          "type": "string"
      +        },
      +        "customer_cost_micros_usd": {
      +          "description": "Actual customer charge settled by AIsaServices, in micro-USD. Omitted when the upstream response does not report it.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "data": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "error": {
      +          "anyOf": [
      +            {
      +              "$schema": "https://json-schema.org/draft/2020-12/schema",
      +              "additionalProperties": false,
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                },
      +                "retryable": {
      +                  "type": "boolean"
      +                },
      +                "status": {
      +                  "type": "integer"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "validation",
      +                    "authentication",
      +                    "payment",
      +                    "permission",
      +                    "rate_limit",
      +                    "upstream",
      +                    "timeout",
      +                    "internal"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "status",
      +                "retryable"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "request_id": {
      +          "type": "string"
      +        },
      +        "successful": {
      +          "type": "boolean"
      +        },
      +        "tool": {
      +          "type": "string"
      +        },
      +        "upstream_status": {
      +          "description": "HTTP status returned by AIsaServices when a request was dispatched.",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "call_id",
      +        "tool",
      +        "successful",
      +        "request_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "session_id": {
      +    "description": "Reuse the session_id returned by Search in all subsequent tool calls for this task. If omitted, a new session is created.",
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "pattern": "^[A-Za-z0-9_-]*$",
      +    "type": "string"
      +  },
      +  "success_count": {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "total_count": {
      +    "minimum": 1,
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "session_id",
      +  "batch_id",
      +  "total_count",
      +  "success_count",
      +  "error_count",
      +  "results",
      +  "next_steps_guidance"
      +]
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description goes well beyond them: it discloses that calls are billable, that a missing or failed quote is not free, that failures must not be silently retried, and that omitting session_id creates a new session. It also clarifies that the eligibility flag removes only the extra confirmation step, preventing an agent from over-reading it as blanket permission.

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

Conciseness4/5

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

Cost and authorization constraints are front-loaded before the operational details, which is the right ordering for a destructive, billable tool. Slight redundancy in restating the cost hazard three ways ("substantial charges", "a missing or failed quote is not free", the eligibility caveat) costs it a point, but almost every sentence carries a distinct rule.

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

Completeness5/5

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

For a destructive, open-world, non-idempotent batch executor with an output schema already describing returns, the description covers the remaining agent-relevant risk: cost gates, authorization limits, retry behavior, naming conventions, and session continuity. Nothing needed to invoke it safely is missing.

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?

Schema coverage is 67%, and the description adds real meaning on top: the exact-naming rule is extended with the concrete failure mode ("without a client prefix such as mcp__aisa__"), and the 1-20 batch limit plus the no-retry rule constrain how `calls` may be populated. The `search_id` correlation field is not explained in the description, leaving one gap.

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?

"Execute 1 to 20 independent published-tool calls" names the verb, the resource, and the batch bound in one clause, and it is explicitly distinguished from the quote step ("Never call before a successful batch_quote") and from a single-call sibling via the "1 to 20" batching scope. An agent can tell this apart from `batch_quote`, `use`, and `search` without opening a schema.

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

Usage Guidelines5/5

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

Gives hard preconditions (a prior successful batch_quote for the same tools and arguments, with auto_execute_eligible=true or explicit user authorization), states what auto_execute_eligible does NOT waive (user prohibition, narrower scope, tighter budget), and specifies re-quote triggers when tools, arguments, or scope change. When-to-use, when-not-to-use, and the alternative path are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources