Snipe-IT ACTION
Create Hardware Asset
Creates a new hardware asset in Snipe-IT. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Snipe-IT account once, then configure and run Create Hardware Asset from your backend or agent.
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: "snipe_it-create-hardware",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
snipe_it: { authProvisionId: "apn_xxxxxxx" },
modelId: 10,
statusId: 10,
},
})
console.log(result)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": "snipe_it-create-hardware",
"configured_props": {
"snipe_it": { "authProvisionId": "apn_xxxxxxx" },
"modelId": 10,
"statusId": 10
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "snipe_it",
},
},
},
)
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: "snipe_it-create-hardware",
arguments: {
modelId: 10,
statusId: 10,
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
modelId Model | integer | Select the model for this asset Required Dynamic |
statusId Status | integer | Select the status label for this asset Required Dynamic |
assetTag Asset Tag | string | The asset tag for the asset Optional |
name Asset Name | string | The name of the asset Optional |
image Image | string | Base64 encoded image. Eg. data:@[mime];base64,[base64encodeddata]. Optional |
serial Serial Number | string | The serial number of the asset Optional |
purchaseDate Purchase Date | string | The purchase date of the asset (YYYY-MM-DD format) Optional |
purchaseCost Purchase Cost | string | The purchase cost of the asset Optional |
orderNumber Order Number | string | The order number of the asset Optional |
notes Notes | string | Notes about the asset Optional |
archived Archived | boolean | Whether the asset is archived Optional |
warrantyMonths Warranty Months | integer | The warranty period in months Optional |
depreciate Depreciate | boolean | Whether the asset is depreciated Optional |
supplierId Supplier | integer | Select the supplier for this asset Optional Dynamic |
requestable Requestable | boolean | Whether this asset can be requested by users Optional |
rtdLocationId RTD Location | integer | Select the default location for this asset Optional Dynamic |
lastAuditDate Last Audit Date | string | The date of the last audit for this asset (YYYY-MM-DD format) Optional |
locationId Location | integer | Select the location where this asset is located Optional Dynamic |
byod BYOD | boolean | Whether this asset is a BYOD device. Optional |
customFields Custom Fields | object | Custom fields for the asset Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- snipe_it-create-hardware
- Version
- 0.0.2
- App
- Snipe-IT
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗