Skip to main content
Glama

Find what passes in front of a surface

track_occluders

Find what passes in front of a tracked surface, so a picture pinned to it stays behind a person, a hand or a car. It finds what query names on every frame of the track's source range, as segment_subject does, and keeps it where it covers the surface: what the camera sees over the surface is in front of it. It stores the mask on the track, and then keeps those pixels of the footage in front of the pinned picture. The answer gives the mask Asset ID, the times something covers the surface, and the pin to write. When nothing covers the surface, nothing is stored. Run it after track_plane, and again after you split or merge the track. Uses no extra credits: it is part of the message a minute of the track's range, billed by the second, as segment_subject. Read builtin-object-tracking first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trackId": "<trackId>",
      "query": "<query>",
      "at": "<at>",
      "projectId": "<projectId>"
    },
    "name": "track_occluders"
  }
}

Input Schema

NameRequiredDescriptionDefault
atYesA source second where it is in front of the surface and all of it shows, which you checked with preview_frame. null picks one itself.
queryYesWhat passes in front of the surface, in a few words: "person", "hand", "the red car". null is a person.
trackIdYesThe surface's object track, as track_plane answered it (track_...).
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only flag readOnlyHint=false and destructiveHint=false; the description goes well beyond by disclosing that a mask is stored on the track, the returned mask Asset ID and time ranges, and the billing model (no extra credits, billed per second of track range). The billing sentence is wordy and slightly ambiguous, which keeps this from a 5, but the state-change and cost disclosures are exactly what an agent needs for a non-read-only 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?

Purpose is front-loaded, followed by mechanics, ordering, cost, and return value in a logical progression with no filler. The credits sentence is convoluted and the reference to message-billing is hard to parse, costing a point on structure.

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

Completeness4/5

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

For a four-parameter mutation tool with no output schema, the description covers return contents (mask Asset ID, coverage times, pin to write), side effects, ordering, re-run conditions, and cost. Minor gaps remain around expected runtime and failure modes, but nothing critical to correct invocation is missing.

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 baseline is 3, but the description adds interpretive meaning: 'at' is framed as a frame the agent verified with preview_frame, and 'query' is 'what passes in front of the surface, in a few words'. The explanation of why the camera-visible region counts as 'in front' helps the agent phrase queries correctly.

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 ('Find what passes in front of a tracked surface') plus the concrete outcome — an occlusion mask stored on the track so a pinned picture stays behind a person, hand, or car. It explicitly contrasts itself with segment_subject ('as segment_subject does'), so an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit sequencing ('Run it after track_plane, and again after you split or merge the track') and a prerequisite read ('Read builtin-object-tracking first'). It also describes the null case — when nothing covers the surface, nothing is stored — which tells the agent not to expect output on every call.

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.