Skip to main content
Glama

Edit sourcing query

edit_sourcing_query
Read-only

Apply one clear recruiter change to the latest reviewed sourcing query, keeping unaffected clauses. Returns the edited query and feedback whose status is possible, partial, or impossible. This does not search for people. Show the edited query to the user before sourcing it. Resolve any newly named employer with resolve_company and include its name and LinkedIn URL in editRequest. Requires OAuth.

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": {
      "workspaceId": "<workspaceId>",
      "pdlQuery": "<pdlQuery>",
      "editRequest": "<editRequest>"
    },
    "name": "edit_sourcing_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdlQueryYesThe exact sourcing query returned by build_sourcing_query or edit_sourcing_query. Pass it unchanged.
editRequestYesThe recruiter's requested change, in their words.
workspaceIdYesThe workspace id returned by list_workspaces. Use 'personal' for the personal workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the description's added value is what it says about auth ('Requires OAuth'), scope ('does not search for people'), clause-preservation behavior, and the three-state feedback vocabulary (possible/partial/impossible). It never clarifies whether an edit is persisted (it is read-only, so presumably returned only) or what happens when status is 'impossible' — minor gaps kept it below a 5.

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

Conciseness5/5

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

Front-loads the core action, then tacks on constraints and prerequisites in short imperative sentences. No sentence is filler; even the exclusion and the resolve_company step prevent concrete failure modes.

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?

With only 3 fully-documented params and no output schema, the description carries the remaining burden and does: it spells out the return payload, the flow around the call (show user, then source), and the auth requirement. An agent has everything needed to call this correctly.

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 description coverage is 100%, so the schema already documents all three params and the baseline would be 3. The description goes beyond it by tying pdlQuery to the 'latest reviewed' query that must be passed unchanged and by specifying that a newly resolved company's name and LinkedIn URL belong in editRequest.

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 ('apply one clear recruiter change to the latest reviewed sourcing query') plus the output ('the edited query and feedback'). Explicitly bounds scope with 'This does not search for people', which separates it cleanly from source_candidates and build_sourcing_query.

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 real usage rules: one change at a time, keep unaffected clauses, show the edited query to the user before sourcing, and resolve any newly named employer with resolve_company first. It also names the exclusion (no people search) and the OAuth prerequisite, so the agent knows both when and how to call it.

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