{ "name": "RetrieveMerchantCustomAttribute", "fully_qualified_name": "SquareupApi.RetrieveMerchantCustomAttribute@0.1.0", "description": "Retrieve a merchant's custom attribute definition.\n\nThis tool retrieves custom attribute definitions related to a merchant from a Square seller account. It is useful when you need to access specific attribute definitions created within an account. The attribute definition must have a visibility setting of 'VISIBILITY_READ_ONLY' or 'VISIBILITY_READ_WRITE_VALUES' if created by another application.", "toolkit": { "name": "ArcadeSquareupApi", "description": null, "version": "0.1.0" }, "input": { "parameters": [ { "name": "custom_attribute_key", "required": true, "description": "The key of the custom attribute definition to retrieve. Use the qualified key if not the definition owner.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The key of the custom attribute definition to retrieve. If the requesting application\nis not the definition owner, you must use the qualified key." }, "inferrable": true, "http_endpoint_parameter_name": "key" }, { "name": "custom_attribute_version", "required": false, "description": "The version of the custom attribute definition required for consistent reads. It returns the specified or a higher version if available, or an error if higher than the current version.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The current version of the custom attribute definition, which is used for strongly consistent\nreads to guarantee that you receive the most up-to-date data. When included in the request,\nSquare returns the specified version or a higher version if one exists. If the specified version\nis higher than the current version, Square returns a `BAD_REQUEST` error." }, "inferrable": true, "http_endpoint_parameter_name": "version" } ] }, "output": { "description": "Response from the API endpoint 'RetrieveMerchantCustomAttributeDefinition'.", "available_modes": [ "value", "error", "null" ], "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "requirements": { "authorization": { "provider_id": "arcade-squareup", "provider_type": "oauth2", "id": null, "oauth2": { "scopes": [ "MERCHANT_PROFILE_READ" ] } }, "secrets": null, "metadata": null }, "deprecation_message": null, "metadata": { "object_type": "api_wrapper_tool", "version": "1.0.0", "description": "Tools that enable LLMs to interact directly with the squareup API." }, "http_endpoint": { "metadata": { "object_type": "http_endpoint", "version": "1.0.0", "description": "" }, "url": "https://connect.squareup.com/v2/merchants/custom-attribute-definitions/{key}", "http_method": "GET", "headers": {}, "parameters": [ { "name": "version", "tool_parameter_name": "custom_attribute_version", "description": "The current version of the custom attribute definition, which is used for strongly consistent\nreads to guarantee that you receive the most up-to-date data. When included in the request,\nSquare returns the specified version or a higher version if one exists. If the specified version\nis higher than the current version, Square returns a `BAD_REQUEST` error.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The current version of the custom attribute definition, which is used for strongly consistent\nreads to guarantee that you receive the most up-to-date data. When included in the request,\nSquare returns the specified version or a higher version if one exists. If the specified version\nis higher than the current version, Square returns a `BAD_REQUEST` error." }, "accepted_as": "query", "required": false, "deprecated": false, "documentation_urls": [] }, { "name": "key", "tool_parameter_name": "custom_attribute_key", "description": "The key of the custom attribute definition to retrieve. If the requesting application\nis not the definition owner, you must use the qualified key.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "The key of the custom attribute definition to retrieve. If the requesting application\nis not the definition owner, you must use the qualified key." }, "accepted_as": "path", "required": true, "deprecated": false, "documentation_urls": [] } ], "documentation_urls": [], "secrets": [ { "arcade_key": "auth_token", "parameter_name": "Authorization", "accepted_as": "header", "formatted_value": "Bearer {authorization}", "description": "The OAuth token to use for authentication.", "is_auth_token": true } ] } }