Skip to main content
Glama

Scan a list of links

scan_links

Use this when the user gives several posts or DJ set links at once and asks CrateWire to identify the tracks in them. It works in two calls. The first call, with links, is a preview: for each link it returns what CrateWire already found and what a new scan would use from this account's plan, and it starts nothing. To start the new scans, call scan_links again with the preview_id and confirm: true within 10 minutes. One call checks up to 10 posts and 5 sets, in list order. You may send up to 50 links: posts and sets past those first 10 and 5 are not checked and come back in a resend list to send again in a new call. Each link it checks, repeats in the same list aside, counts as one of the account's 60 link lookups a day. A link CrateWire already knows shows up to 10 of its tracks. New scans follow the same plan rules as scan_link. Do not use it to confirm scans the user has not agreed to, to read results later (use find_known_tracks or get_set_tracklist), or for story, profile or playlist links.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
linksNoThe full post and DJ set links to preview, up to 50; the first 10 posts and 5 sets are checked and no scan is used until you confirm, for example ["https://www.instagram.com/p/C1a2B3c4D5e/", "https://www.mixcloud.com/example-dj/sunday-set/"].
confirmNoSend true together with preview_id to start the previewed scans; this uses the account's plan allowance, for example true.
preview_idNoThe preview_id a preview returned, sent with confirm: true to start its scans, for example 3f2b8c1e-4d5a-4b6c-9e7f-0a1b2c3d4e5f.
accept_partialNoWith preview_id and confirm: true, for sets the preview flagged as partial: true scans only the part the remaining set minutes cover, for example true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / accept_partial / description
      Previous value: -"For sets the preview flagged as partial: scan only what your remaining minutes cover."New value: +"With preview_id and confirm: true, for sets the preview flagged as partial: true scans only the part the remaining set minutes cover, for example true."
    • changedInput schema / properties / confirm / description
      Previous value: -"true starts the previewed scans and uses your plan's allowance."New value: +"Send true together with preview_id to start the previewed scans; this uses the account's plan allowance, for example true."
    • changedInput schema / properties / links / description
      Previous value: -"Posts or set links to preview (nothing is used until you confirm)."New value: +"The full post and DJ set links to preview, up to 50; the first 10 posts and 5 sets are checked and no scan is used until you confirm, for example [\"https://www.instagram.com/p/C1a2B3c4D5e/\", \"https://www.mixcloud.com/example-dj/sunday-set/\"]."
    • changedInput schema / properties / preview_id / description
      Previous value: -"The id a preview returned, to start its scans."New value: +"The preview_id a preview returned, sent with confirm: true to start its scans, for example 3f2b8c1e-4d5a-4b6c-9e7f-0a1b2c3d4e5f."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes far beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) by disclosing the two-call preview/confirm protocol, the 10-minute window on preview_id, the daily quota of 60 link lookups with repeats counted, the per-call caps of 10 posts and 5 sets out of up to 50 links, and the resend list for overflow. It also clarifies that the preview 'starts nothing', which is exactly the nuance the annotations cannot express for a mixed read/write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the trigger, then the two-call flow, then limits and quota, then exclusions – a sensible order for an agent reading top-down. Dense with no filler sentences, but a few clauses are syntactically tangled, notably 'Each link it checks, repeats in the same list aside, counts as one of the account's 60 link lookups a day', which costs a re-read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter, quota-consuming, two-phase tool with no output schema, the description covers everything an agent needs: what each call returns (known tracks, plan cost, up to 10 tracks per known link), what triggers the actual scans, time limits, caps, overflow handling, and where to go for results later. No material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already carries the per-parameter descriptions and the baseline is 3. The description adds real semantics on top: confirm must be paired with preview_id and sent within 10 minutes, and accept_partial only applies to sets the preview flagged partial, gating a subset of the set rather than the whole. It does not explain the interaction between accept_partial and the daily quota, which keeps it short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('identify the tracks' in 'several posts or DJ set links at once'), scopes it to batch use, and later names the singular sibling scan_link whose plan rules it shares. An agent can tell this apart from scan_link and from the read-back siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit trigger condition ('when the user gives several posts or DJ set links at once') and closes with three named exclusions plus the correct alternatives (find_known_tracks, get_set_tracklist for later reads; story/profile/playlist links are out of scope). It also warns not to confirm without user agreement. The only gap is that it doesn't say when to prefer looping scan_link instead of batching.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources