# Grade and Authenticate Sneakers — What Are Those

> Grades and authenticates sneakers using provided images. See the documentation

- Key: `what_are_those-grade-sneakers-condition`
- Type: Action (Read-only)
- Version: 0.0.4
- App: What Are Those (`what_are_those`) — https://pipedream.com/apps/what-are-those.md
- This page (HTML): https://pipedream.com/apps/what-are-those/actions/grade-sneakers-condition
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/what_are_those/actions/grade-sneakers-condition/grade-sneakers-condition.mjs

## Description

Grades and authenticates sneakers using provided images. [See the documentation](https://documenter.getpostman.com/view/3847098/2sAY4rDQDs#13d527e8-5d8f-4511-857c-b40b8dd921b8)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `frontImage` | `string` | Yes | The frontimage to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `leftImage` | `string` | Yes | The leftimage to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `rightImage` | `string` | Yes | The right image to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `soleImage` | `string` | Yes | The sole image to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `insoleImage` | `string` | Yes | The insole image to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `sizeTagImage` | `string` | Yes | The size tag image to upload. Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.jpg). |
| `type` | `string` | No | The type parameter to see specific types of data |
| `syncDir` | `dir` | No | SyncDir |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "what_are_those",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "what_are_those-grade-sneakers-condition",
  arguments: {
    frontImage: "Front Image",
    leftImage: "Left Image",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "what_are_those-grade-sneakers-condition",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    what_are_those: { authProvisionId: "apn_xxxxxxx" },
    frontImage: "Front Image",
    leftImage: "Left Image",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "what_are_those-grade-sneakers-condition",
    "configured_props": {
      "what_are_those": { "authProvisionId": "apn_xxxxxxx" },
      "frontImage": "Front Image",
      "leftImage": "Left Image"
    }
  }'
```

---

- App: https://pipedream.com/apps/what-are-those.md · All apps: https://pipedream.com/apps
