Skip to main content

Connection Guide

This guide explains the three connection methods for interacting with AGENTIC STAR agents and concepts common to all methods.

Three Connection Methods

You can interact with AGENTIC STAR agents using three different methods depending on your use case. Regardless of the method, the basic structure of requests sent to and responses received from agents is the same.

Chat API / SSEMCPA2A
ProtocolREST + SSEStreamable HTTP / JSON-RPCJSON-RPC
Endpoint/v1/chat/completions/v1/mcp/v1/a2a
Scopechat:execmcp:alla2a:all
DiscoveryNone (see API spec)Auto-retrieved via tools/listAuto-retrieved via Agent Card
Expected ClientsOwn application / HTTP clientClaude / MCP-compatible AI agentsA2A-compatible AI agents
Supported EditionsSaaS / MarketplaceSaaSSaaS
Documentation DetailsSee the User API ReferenceSee belowSee below
For Marketplace Edition Users

The only connection method available in the Marketplace edition is Chat API / SSE. MCP and A2A are exclusive to the SaaS edition.

How to Choose a Method

Which method should you choose?
  • Chat API / SSE — When integrating agent functionality into your own application. You control requests and responses directly.
  • MCP SaaS — When connecting from MCP-compatible AI agents like Claude to AGENTIC STAR. Agents automatically retrieve tool definitions.
  • A2A SaaS — When connecting from Google A2A-compatible agents to AGENTIC STAR. Agents automatically retrieve skills via Agent Card.

Common Request Parameters

Across all three connection methods, requests sent to agents are internally converted to the same format. The following parameters are available for all methods.

Per-method request keys

The parameter names below are conceptual common names. The actual keys and structure differ per method:

  • Chat API / SSE: messages[].content (OpenAI-compatible format)
  • MCP: prompt in tool arguments
  • A2A: text in message.parts[] with kind: "text"

For details, see each method's section (Chat API / MCP / A2A).

ParameterTypeRequiredDescription
prompt / textstringRequiredInstruction text to send to the agent
conversationIdstringSpecify to continue an existing conversation. If omitted, a new conversation is created.
agentModebooleantrue (default) = autonomous agent execution. false = direct LLM response.
agentLevelstring"default" (default) or "high_performance". Switches the LLM model used for agent reasoning.
filesarrayAttached files. For Chat API, pre-upload + fileId; for MCP, send with base64 encoding.

Response Model

Regardless of the connection method, agent responses include the following information. The format varies by protocol, and for some elements the delivery form (single field / split into events) also differs per method. See each method's section for details.

ElementDescription
textAgent response text
conversationIdConversation ID. Specify in your next request to continue the conversation.
deliverablesList of deliverable files generated by the agent (filename, path, MIME type, etc.)
executionStepsAgent execution trace (step details like tool calls and code execution)
interactionInteraction request to user (only when applicable)

Interactions

Interactions occur when the agent needs user input during task execution. Clients should present options or confirmations to users based on the interaction type and send responses with the same conversationId to continue the conversation.

TypeDescriptionClient Action
choicePresent options and ask the user to select oneSend selection as text
confirmationAsk the user for confirmation (approve/deny)Send approval/denial as text

For the specific SSE format, see Streaming Guide — Interactions.

Continuing Conversations

Interactions with agents are managed by conversationId. By specifying the conversationId from the response in your next request, you can maintain context for continuous dialogue. If you omit conversationId, a new conversation starts.

note

You cannot send multiple simultaneous requests to the same conversationId (HTTP 409 Conflict). Wait for the previous request to complete or cancel it before sending a new request.

Cancellation

You can cancel an in-progress agent execution. The cancellation method varies by connection method.

ProtocolCancellation Method
Chat API / SSEPOST /v1/chat/completions/{conversationId}/cancel
MCP (SaaS only)Call the cancel_chat tool
A2A (SaaS only)Send the tasks/cancel method

Chat API / SSE

An OpenAI-compatible Chat Completions API. Call directly from HTTP clients and receive responses in real-time via SSE (Server-Sent Events) streaming. For detailed specifications on requests and responses, see the User API Reference.

MCP (Model Context Protocol) SaaS

An interface for connecting MCP-compatible AI agents (like Claude) to AGENTIC STAR. Agents automatically retrieve tool definitions on connection and autonomously perform task execution, file retrieval, and cancellation in AGENTIC STAR.

Connection Specification

ItemValue
EndpointPOST /v1/mcp
ProtocolStreamable HTTP / JSON-RPC 2.0
AuthenticationBearer JWT (scope: mcp:all)
ModeStateless

Tool List

Tool NameScopeDescription
execute_chatmcp:allSend a task to the agent and retrieve execution results
get_file_contentmcp:allDownload deliverable files generated by the agent
cancel_chatmcp:allCancel an in-progress task

Connection Configuration Example

Add the following to your MCP client configuration file.

JSON
{
"mcpServers": {
"agenticstar": {
"url": "https://api.fd.agenticstar.tm.softbank.jp/api/v1/mcp",
"headers": {
"Authorization": "Bearer <access_token>"
}
}
}
}

A2A (Agent-to-Agent Protocol) SaaS

An interface for connecting Google A2A protocol-compatible agents to AGENTIC STAR. Client agents automatically retrieve skill information from Agent Card and perform task submission, streaming, and cancellation.

Connection Specification

ItemValue
Agent CardGET /.well-known/agent-card.json
EndpointPOST /v1/a2a
ProtocolJSON-RPC 2.0
AuthenticationBearer JWT (scope: a2a:all)

Skill List

Skill NameScopeDescription
execute_taska2a:allSend a task to the agent for autonomous execution (agentMode: true)
direct_llma2a:allQuery LLM directly (agentMode: false)

Supported Methods

MethodDescription
message/sendSend a message and wait for completion
message/streamSend a message and receive streaming via SSE
tasks/getRetrieve task status
tasks/cancelCancel a task
tasks/resubscribeReattach to task streaming after an SSE disconnect (resume in progress)

Specifying Execution Parameters

To pass agentMode / agentLevel from the Common Request Parameters via A2A, set them as flat keys under message.metadata (declared in capabilities.extensions of the Agent Card).

JSON
{
"message": {
"parts": [{ "kind": "text", "text": "..." }],
"metadata": {
"agentMode": true,
"agentLevel": "high_performance"
}
}
}

Both fields are optional. When omitted, the defaults agentMode: true / agentLevel: "default" are used.

Agent Card

A2A clients retrieve Agent Card from the following URL to automatically understand skills, authentication methods, and capabilities.

GET https://api.fd.agenticstar.tm.softbank.jp/.well-known/agent-card.json