Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 3.32 KB

File metadata and controls

27 lines (19 loc) · 3.32 KB

ServerToolResponse

Response to a server tool request. The applicable fields depend on requestType:

For EXECUTION requests:

  • isGranted: whether tool execution is approved
  • reason: optional explanation

For AUTHENTICATION_SUGGESTION requests:

  • isGranted: whether auth completed successfully (true=connected, false=skipped)
  • authContext: contains serverId or actionPackId for identifying the authenticated entity
  • reason: optional explanation for skip

For VOTE_SUGGESTION requests:

  • voted: whether the user voted for this tool

Fields

Field Type Required Description
request_type models.ServerToolResponseRequestType ✔️ The type of request made to the user.
request_id str ✔️ Unique identifier for this request.
is_granted Optional[bool] Whether tool request is granted (indicates approval for execution, or completion for auth).
grant_scope Optional[models.GrantScope] Scope of the approval grant. Only applicable when isGranted is true and requestType is EXECUTION.
auth_context Optional[models.AuthContext] Context for authentication responses, containing identifiers for the entity being authenticated.