{ "name": "RetrieveOrderCustomAttributeDefinition", "fully_qualified_name": "SquareupApi.RetrieveOrderCustomAttributeDefinition@2.0.0", "description": "Retrieve a custom attribute definition for an order.\n\nThis tool retrieves an order-related custom attribute definition from a Square seller account. It should be called when you need to access specific custom attribute information related to orders. Custom attributes must have visibility settings of VISIBILITY_READ_ONLY or VISIBILITY_READ_WRITE_VALUES unless defined by the seller.", "toolkit": { "name": "ArcadeSquareupApi", "description": null, "version": "2.0.0" }, "input": { "parameters": [ { "name": "custom_attribute_key", "required": true, "description": "The key of the custom attribute definition you want to retrieve. This should match the key set in Square seller account.", "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." }, "inferrable": true, "http_endpoint_parameter_name": "key" }, { "name": "current_custom_attribute_version", "required": false, "description": "Specify the current version of the custom attribute for optimistic concurrency control.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol, include this optional field and specify the current version of the custom attribute." }, "inferrable": true, "http_endpoint_parameter_name": "version" } ] }, "output": { "description": "Response from the API endpoint 'RetrieveOrderCustomAttributeDefinition'.", "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": [ "ORDERS_READ" ] } }, "secrets": null, "metadata": null }, "deprecation_message": null, "metadata": { "object_type": "api_wrapper_tool", "version": "1.1.0", "description": "Tools that enable LLMs to interact directly with the squareup API." }, "http_endpoint": { "metadata": { "object_type": "http_endpoint", "version": "1.2.0", "description": "" }, "url": "https://connect.squareup.com/v2/orders/custom-attribute-definitions/{key}", "http_method": "GET", "headers": {}, "parameters": [ { "name": "version", "tool_parameter_name": "current_custom_attribute_version", "description": "To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol, include this optional field and specify the current version of the custom attribute.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol, include this optional field and specify the current version of the custom attribute." }, "accepted_as": "query", "required": false, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "key", "tool_parameter_name": "custom_attribute_key", "description": "The key of the custom attribute definition to retrieve.", "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." }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "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 } ], "request_body_spec": null, "use_request_body_schema_mode": false, "validate_request_body_schema": false } }