sam_get_opportunity

Pack: samgov · Endpoint: https://gateway.pipeworx.io/samgov/mcp

Get full details for a federal contract opportunity by solicitation number. Returns description, contact info, deadlines, attachments, NAICS codes, and set-aside status.

Parameters

NameTypeRequiredDescription
solicitation_numberstringyesThe solicitation number to look up (e.g., “W912DY-24-R-0001”)
_apiKeystringyesSAM.gov API key

Example call

Arguments

{
  "solicitation_number": "W912DY-24-R-0001",
  "_apiKey": "your-samgov-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/samgov/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sam_get_opportunity","arguments":{"solicitation_number":"W912DY-24-R-0001","_apiKey":"your-samgov-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('sam_get_opportunity', {
  "solicitation_number": "W912DY-24-R-0001",
  "_apiKey": "your-samgov-api-key"
});

Response shape

FieldTypeDescription
titlestring | nullOpportunity title
solicitation_numberstring | nullUnique solicitation identifier
departmentstring | nullProcuring department/agency
sub_tierstring | nullSub-tier agency code
officestring | nullProcuring office name
posted_datestring | nullDate opportunity was posted
response_deadlinestring | nullProposal response deadline
typestring | nullProcurement type
set_asidestring | nullSmall business set-aside type if applicable
naics_codestring | nullPrimary NAICS code
classification_codestring | nullClassification code
activestring | nullActive status indicator
ui_linkstring | nullURL to opportunity details on SAM.gov
descriptionstring | nullFull opportunity description
point_of_contactarrayList of points of contact for the opportunity
resource_linksarrayURLs to opportunity documents and resources
archive_typestring | nullArchive type if applicable
archive_datestring | nullArchive date if applicable
organization_typestring | nullType of procuring organization
Full JSON Schema
{
  "type": "object",
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opportunity title"
    },
    "solicitation_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unique solicitation identifier"
    },
    "department": {
      "type": [
        "string",
        "null"
      ],
      "description": "Procuring department/agency"
    },
    "sub_tier": {
      "type": [
        "string",
        "null"
      ],
      "description": "Sub-tier agency code"
    },
    "office": {
      "type": [
        "string",
        "null"
      ],
      "description": "Procuring office name"
    },
    "posted_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date opportunity was posted"
    },
    "response_deadline": {
      "type": [
        "string",
        "null"
      ],
      "description": "Proposal response deadline"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Procurement type"
    },
    "set_aside": {
      "type": [
        "string",
        "null"
      ],
      "description": "Small business set-aside type if applicable"
    },
    "naics_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Primary NAICS code"
    },
    "classification_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Classification code"
    },
    "active": {
      "type": [
        "string",
        "null"
      ],
      "description": "Active status indicator"
    },
    "ui_link": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL to opportunity details on SAM.gov"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Full opportunity description"
    },
    "point_of_contact": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact person full name"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact person title"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact email address"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact phone number"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact type designation"
          }
        }
      },
      "description": "List of points of contact for the opportunity"
    },
    "resource_links": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "URLs to opportunity documents and resources"
    },
    "archive_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Archive type if applicable"
    },
    "archive_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Archive date if applicable"
    },
    "organization_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type of procuring organization"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "samgov": {
      "url": "https://gateway.pipeworx.io/samgov/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026